[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HR1G9RWX5M47WB6Z6GEST5":3,"skill-same:01M6HR1G9RWX5M47WB6Z6GEST5":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6HR1G9RWX5M47WB6Z6GEST5","build-app",null,"Build a complete ScalarDB application from a domain description: schema, configuration, Java\nservice code and a runnable scaffold.","wfukatsu\u002Fnexus-architect","wfukatsu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F11712747?v=4","01M6HR128TEJY1WD0C36TDQD7S","Wataru Fukatsu","01M6HR12D55WNY36YSW845YXZ1",13,"MIT","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fbuild-app\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31],"build","app","build app","scaffold","code","java","schema","configuration","domain","application","service","complete","sonnet","2026-11-10 10:12:30",false,"---\ndescription: |\n  Build a complete ScalarDB application from a domain description: schema, configuration, Java\n  service code and a runnable scaffold.\nmodel: sonnet\n---\n\n# \u002Fscalardb:build-app — ScalarDB Application Builder\n\nShared files: a path written `@rules\u002F…`, `@skills\u002F…`, `@templates\u002F…` or `@docs\u002F…` is relative to the\nplugin root, `${CLAUDE_PLUGIN_ROOT}` — not to the project being worked on. Read it from there.\n\nYou are a ScalarDB application builder. Build complete ScalarDB applications from domain descriptions.\n\n**Knowledge grounding**: before writing schema, config, or Java code, resolve the OKF knowledge\nbundle and pin the target ScalarDB version\u002Fedition per `rules\u002Fokf-knowledge-bundle.md`. API\nsignatures, config keys, and exception retryability come from that release's `implement`-phase\nconcepts (`api-guide.md`, `configurations.md`, `scalardb-samples\u002F`) — not from memory.\n\n## Process\n\n### Step 1: Understand Requirements\nFrom the user's domain description, identify:\n- Domain entities and their attributes\n- Relationships between entities\n- Access patterns (common queries)\n- Interface combination needed (Core\u002FCluster, CRUD\u002FJDBC, 1PC\u002F2PC)\n- Database backend preference\n\n### Step 2: Data Modeling\nDesign the schema:\n- Choose partition keys for even distribution\n- Choose clustering keys for range queries\n- Add secondary indexes for lookup patterns\n- Handle the no-JOIN constraint (CRUD API)\n- Generate `schema.json` and optionally `schema.sql`\n\n### Step 3: Configuration\nGenerate the appropriate configuration:\n- `database.properties` or `scalardb-sql.properties`\n- Correct Maven dependencies in `build.gradle`\n\n**Resolve every version before pinning it**, per `rules\u002Fdependency-versions.md`: look up ScalarDB\n(`https:\u002F\u002Frepo1.maven.org\u002Fmaven2\u002Fcom\u002Fscalar-labs\u002F\u003Cartifact>\u002Fmaven-metadata.xml` or\n`gh release list -R scalar-labs\u002Fscalardb`), Java, the Gradle plugins and the database image tag; take\nthe newest **stable** release of a supported line (no `-alpha`\u002F`-beta`\u002F`-rc`\u002F`-SNAPSHOT`, no moving\n`:latest` tag); keep all ScalarDB artifacts on one version; and treat the numbers in\n`code-patterns\u002F*.md` as dated examples. Present the version decision table for confirmation unless the\nproject opted out (`options.confirm_versions: false` \u002F `--no-confirm-versions`), and record it in the\ngenerated `README.md`.\n\n### Step 4: Service Layer — tests first\nPer operation, in this order (@rules\u002Ftdd-workflow.md §2): the `*IT` for the operation against the\nin-process SQLite-backed engine (`ScalarDbTestBackend`, as `\u002Fscalardb:scaffold` lays it out) and\nthe unit test over the in-memory Fake, run and seen failing; then the service code that makes\nthem pass; then a structural pass. Every operation ends with a happy-path IT, and the service as a\nwhole with one OCC-conflict IT and one blind-write IT. Generate the service class(es) with:\n- All CRUD operations for each entity\n- Proper exception handling with retry logic\n- Transaction lifecycle management\n- Builder pattern for all operations\n- Correct catch order for exceptions\n\n### Step 5: Local Environment\nGenerate:\n- `docker-compose.yml` for the chosen database\n- Schema loading commands\n- Setup instructions\n\n### Step 6: Integration\nWire everything together:\n- CLI entry point (picocli) or REST controller\n- Complete working example with sample data loading\n\n## Output Files\n\nGenerate all of these:\n1. `build.gradle`\n2. `database.properties` (or `scalardb-sql.properties`)\n3. `schema.json` (and `schema.sql` if JDBC)\n4. Service classes in `src\u002Fmain\u002Fjava\u002F`, with their repository port, `InMemory*Repository` Fake, unit tests and `*IT` under `src\u002Ftest\u002Fjava\u002F`, and the `integrationTest` task in `build.gradle`\n5. `docker-compose.yml`\n6. `README.md` with setup and run instructions\n\n## Quality Standards\n\n### CRUD API Code Must:\n- Use `Insert`\u002F`Upsert`\u002F`Update` instead of deprecated `Put`\n- Use builder pattern for all operations\n- Specify `.namespace()` and `.table()` explicitly\n- Handle exceptions in correct order (specific before general)\n- Include retry logic with exponential backoff\n- Commit even read-only transactions\n- Rollback in catch blocks\n- Use try-with-resources for manager lifecycle\n- Log transaction IDs from exceptions\n- Check `Optional\u003CResult>` before accessing values\n\n### JDBC\u002FSQL Code Must:\n- Call `setAutoCommit(false)` on every Connection\n- Use `PreparedStatement` with parameter binding (never string concatenation)\n- Use try-with-resources for Connection, PreparedStatement, and ResultSet\n- Always call `conn.commit()` even for read-only transactions\n- Handle error code 301 (`UnknownTransactionStatusException`) separately — do not roll back: the commit may have succeeded\n- Call `conn.rollback()` in catch blocks for non-301 errors\n- Quote SQL reserved words with double quotes (`\"timestamp\"`, `\"order\"`)\n- Qualify all table names with namespace (`namespace.table`)\n- Map JDBC data types correctly (e.g., `setObject(LocalDate)` for DATE columns)\n- Include retry logic with maximum retry limit\n- Get a new Connection per transaction (do not share connections)\n- For 2PC: use `PREPARE`, `VALIDATE`, `COMMIT` SQL statements in correct order\n\n## Reference Files\n\nConsult these reference documents:\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Fcode-patterns\u002F` — Complete working examples for each interface combination\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Fapi-reference.md` — API reference (CRUD and JDBC)\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Fsql-reference.md` — Supported SQL grammar\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Fexception-hierarchy.md` — Exception handling (CRUD and JDBC)\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Fconfiguration-reference.md` — Configuration\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Fschema-format.md` — Schema format\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Finterface-matrix.md` — Interface combinations\n- `${CLAUDE_PLUGIN_ROOT}\u002Frules\u002Fscalardb-jdbc-patterns.md` — JDBC\u002FSQL rules\n- `${CLAUDE_PLUGIN_ROOT}\u002Frules\u002Fscalardb-java-best-practices.md` — Java best practices (transaction lifecycle, threading)\n- `${CLAUDE_PLUGIN_ROOT}\u002Frules\u002Fscalardb-exception-handling.md` — Exception handling and retry rules\n\n## How to Use\n\nThis agent should be invoked with a Agent tool call like:\n\n```\nBuild a complete ScalarDB application for [domain description].\nUse [interface combination] with [database backend].\nGenerate all project files: build.gradle, config, schema, service classes,\ndocker-compose, and README.\n```\n","# \u002Fscalardb:build-app — ScalarDB Application Builder\n\nShared files: a path written `@rules\u002F…`, `@skills\u002F…`, `@templates\u002F…` or `@docs\u002F…` is relative to the\nplugin root, `${CLAUDE_PLUGIN_ROOT}` — not to the project being worked on. Read it from there.\n\nYou are a ScalarDB application builder. Build complete ScalarDB applications from domain descriptions.\n\n**Knowledge grounding**: before writing schema, config, or Java code, resolve the OKF knowledge\nbundle and pin the target ScalarDB version\u002Fedition per `rules\u002Fokf-knowledge-bundle.md`. API\nsignatures, config keys, and exception retryability come from that release's `implement`-phase\nconcepts (`api-guide.md`, `configurations.md`, `scalardb-samples\u002F`) — not from memory.\n\n## Process\n\n### Step 1: Understand Requirements\nFrom the user's domain description, identify:\n- Domain entities and their attributes\n- Relationships between entities\n- Access patterns (common queries)\n- Interface combination needed (Core\u002FCluster, CRUD\u002FJDBC, 1PC\u002F2PC)\n- Database backend preference\n\n### Step 2: Data Modeling\nDesign the schema:\n- Choose partition keys for even distribution\n- Choose clustering keys for range queries\n- Add secondary indexes for lookup patterns\n- Handle the no-JOIN constraint (CRUD API)\n- Generate `schema.json` and optionally `schema.sql`\n\n### Step 3: Configuration\nGenerate the appropriate configuration:\n- `database.properties` or `scalardb-sql.properties`\n- Correct Maven dependencies in `build.gradle`\n\n**Resolve every version before pinning it**, per `rules\u002Fdependency-versions.md`: look up ScalarDB\n(`https:\u002F\u002Frepo1.maven.org\u002Fmaven2\u002Fcom\u002Fscalar-labs\u002F\u003Cartifact>\u002Fmaven-metadata.xml` or\n`gh release list -R scalar-labs\u002Fscalardb`), Java, the Gradle plugins and the database image tag; take\nthe newest **stable** release of a supported line (no `-alpha`\u002F`-beta`\u002F`-rc`\u002F`-SNAPSHOT`, no moving\n`:latest` tag); keep all ScalarDB artifacts on one version; and treat the numbers in\n`code-patterns\u002F*.md` as dated examples. Present the version decision table for confirmation unless the\nproject opted out (`options.confirm_versions: false` \u002F `--no-confirm-versions`), and record it in the\ngenerated `README.md`.\n\n### Step 4: Service Layer — tests first\nPer operation, in this order (@rules\u002Ftdd-workflow.md §2): the `*IT` for the operation against the\nin-process SQLite-backed engine (`ScalarDbTestBackend`, as `\u002Fscalardb:scaffold` lays it out) and\nthe unit test over the in-memory Fake, run and seen failing; then the service code that makes\nthem pass; then a structural pass. Every operation ends with a happy-path IT, and the service as a\nwhole with one OCC-conflict IT and one blind-write IT. Generate the service class(es) with:\n- All CRUD operations for each entity\n- Proper exception handling with retry logic\n- Transaction lifecycle management\n- Builder pattern for all operations\n- Correct catch order for exceptions\n\n### Step 5: Local Environment\nGenerate:\n- `docker-compose.yml` for the chosen database\n- Schema loading commands\n- Setup instructions\n\n### Step 6: Integration\nWire everything together:\n- CLI entry point (picocli) or REST controller\n- Complete working example with sample data loading\n\n## Output Files\n\nGenerate all of these:\n1. `build.gradle`\n2. `database.properties` (or `scalardb-sql.properties`)\n3. `schema.json` (and `schema.sql` if JDBC)\n4. Service classes in `src\u002Fmain\u002Fjava\u002F`, with their repository port, `InMemory*Repository` Fake, unit tests and `*IT` under `src\u002Ftest\u002Fjava\u002F`, and the `integrationTest` task in `build.gradle`\n5. `docker-compose.yml`\n6. `README.md` with setup and run instructions\n\n## Quality Standards\n\n### CRUD API Code Must:\n- Use `Insert`\u002F`Upsert`\u002F`Update` instead of deprecated `Put`\n- Use builder pattern for all operations\n- Specify `.namespace()` and `.table()` explicitly\n- Handle exceptions in correct order (specific before general)\n- Include retry logic with exponential backoff\n- Commit even read-only transactions\n- Rollback in catch blocks\n- Use try-with-resources for manager lifecycle\n- Log transaction IDs from exceptions\n- Check `Optional\u003CResult>` before accessing values\n\n### JDBC\u002FSQL Code Must:\n- Call `setAutoCommit(false)` on every Connection\n- Use `PreparedStatement` with parameter binding (never string concatenation)\n- Use try-with-resources for Connection, PreparedStatement, and ResultSet\n- Always call `conn.commit()` even for read-only transactions\n- Handle error code 301 (`UnknownTransactionStatusException`) separately — do not roll back: the commit may have succeeded\n- Call `conn.rollback()` in catch blocks for non-301 errors\n- Quote SQL reserved words with double quotes (`\"timestamp\"`, `\"order\"`)\n- Qualify all table names with namespace (`namespace.table`)\n- Map JDBC data types correctly (e.g., `setObject(LocalDate)` for DATE columns)\n- Include retry logic with maximum retry limit\n- Get a new Connection per transaction (do not share connections)\n- For 2PC: use `PREPARE`, `VALIDATE`, `COMMIT` SQL statements in correct order\n\n## Reference Files\n\nConsult these reference documents:\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Fcode-patterns\u002F` — Complete working examples for each interface combination\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Fapi-reference.md` — API reference (CRUD and JDBC)\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Fsql-reference.md` — Supported SQL grammar\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Fexception-hierarchy.md` — Exception handling (CRUD and JDBC)\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Fconfiguration-reference.md` — Configuration\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Fschema-format.md` — Schema format\n- `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Freferences\u002Finterface-matrix.md` — Interface combinations\n- `${CLAUDE_PLUGIN_ROOT}\u002Frules\u002Fscalardb-jdbc-patterns.md` — JDBC\u002FSQL rules\n- `${CLAUDE_PLUGIN_ROOT}\u002Frules\u002Fscalardb-java-best-practices.md` — Java best practices (transaction lifecycle, threading)\n- `${CLAUDE_PLUGIN_ROOT}\u002Frules\u002Fscalardb-exception-handling.md` — Exception handling and retry rules\n\n## How to Use\n\nThis agent should be invoked with a Agent tool call like:\n\n```\nBuild a complete ScalarDB application for [domain description].\nUse [interface combination] with [database backend].\nGenerate all project files: build.gradle, config, schema, service classes,\ndocker-compose, and README.\n```\n",{"model":31,"description":37},"Build a complete ScalarDB application from a domain description: schema, configuration, Java\nservice code and a runnable scaffold.\n","main","fed4c7ebb79ed82ce5c961f944a1ab0ab21bae26","skills\u002Fbuild-app",1,"https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect","https:\u002F\u002Fnexus-architect-docs-070772.gitlab.io\u002F","https:\u002F\u002Fgithub.com\u002Fwfukatsu","https:\u002F\u002Fwww.scalar-labs.com\u002F","Wataru Fukatsu | Co-Founder and CEO, Scalar, Inc.","2026-11-14 22:03:27",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add wfukatsu\u002Fnexus-architect --skill build-app",{"tool":54,"command":55},"bunx","bunx skills add wfukatsu\u002Fnexus-architect --skill build-app",{"tool":57,"command":58},"pnpm","pnpm dlx skills add wfukatsu\u002Fnexus-architect --skill build-app","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fbuild-app\u002FSKILL.md",true,[],[63,71,97,119,142,163],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M7DTDMYVAWFXAYJHXN5687Z2","doctor","Check the install and a project: plugins at the repository's version, hooks and skills in\nplace, the two knowledge bundles present and fresh, the project's registry, question store,\naudit log, learned rules and claims readable. Run it first when a command misbehaves.","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fdoctor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":32},"01M6HRH10GPAVTZ8W90WD9HJK1","verify-sql-migration","Prove a SQL migration on data: golden checks against an authorized source database and\ndifferential tests against ScalarDB. Never touches production.","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fverify-sql-migration\u002FSKILL.md",[],[78,79,80,81,31,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],"verify sql migration","verify","sql","migration","tests","golden","source","Production","fetcher","data","properties","id","database","auto","true","mode","en","core","never",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":32},"01M6HRGWK643YKN0QVRQSNSDCR","verify-implementation","Check code against the design (API contract, transactions, security, requirements, the example\nchain) and report every divergence; optionally runs the eight-stage quality gate.","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fverify-implementation\u002FSKILL.md",[],[104,79,105,91,106,107,108,92,109,110,94,111,112,113,114,115,116,117,23,118],"implementation","verify implementation","quality gate","contract","design","chain","api contract","scope","backlog","repo","example","stage","check","api","requirements",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":32},"01M6HRGS929NK1B5WG1ZANSXQ1","update-knowledge","Fetch or update an OKF knowledge bundle: ScalarDB\u002FScalarDL, or the vendored Kubernetes\u002FTerraform\nbundle.","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fupdate-knowledge\u002FSKILL.md",[],[126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141],"update knowledge","update","knowledge","root","plugin","bundle","Bash","terraform","status","okf","latest","kubernetes","name","haiku","Tools","fetch",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":32},"01M6HRGNMYSK70R8Y9BY41E74D","start","Interactive entry point for system architecture work: refactor a legacy application into services,\nor design a new system from requirements; picks the path from the project's state. To move a\ndatabase to ScalarDB, use migrate-database.","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fstart\u002FSKILL.md",[],[144,118,90,149,150,108,151,152,153,154,155,156,28,157,158,159,160,161,162],"Legacy","use","system","move","project","for","migrate","path","refactor","services","work","state","architecture","interactive",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":32},"01M6HRGHZXK0NXF6W62MMNS46H","select-scalardb-edition","Choose the ScalarDB edition (Community, Enterprise Standard or Premium, plus Enterprise Options),\ndeployment mode and cluster topology through a short interview.","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fselect-scalardb-edition\u002FSKILL.md",[],[170,171,172,31,173,93,174,175,176,177,178,179,180],"select scalardb edition","select","topology","short","Enterprise","choose","deployment","options","cluster","interview","community"]