[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HR8B75RZRVH6CSBBN0BNDT":3,"skill-same:01M6HR8B75RZRVH6CSBBN0BNDT":66},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6HR8B75RZRVH6CSBBN0BNDT","migrate-database",null,"Move an existing Oracle, MySQL or PostgreSQL database to ScalarDB: schema analysis, migration\ndocuments, stored procedures and triggers converted to Java. Use for any database-to-ScalarDB\nmigration.","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\u002Fmigrate-database\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"migrate database","database","migrate","use","Existing","for","sonnet","move","triggers","migration","schema","oracle","analysis","java","postgresql","mysql","documents","2026-11-10 10:12:30",false,"---\ndescription: |\n  Move an existing Oracle, MySQL or PostgreSQL database to ScalarDB: schema analysis, migration\n  documents, stored procedures and triggers converted to Java. Use for any database-to-ScalarDB\n  migration.\nmodel: sonnet\n---\n# Command: migrate-database (Unified Migration Entry Point)\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\n## Purpose\n\nUnified entry point for all database-to-ScalarDB migrations. Asks the user which database type they want to migrate, then delegates to the appropriate database-specific command which handles everything: configuration detection, parameter collection, schema analysis, and migration documentation generation.\n\n**Knowledge grounding**: the delegated workflows must verify ScalarDB capabilities (supported\ndatabases, data types, transaction guarantees, edition-gated features) against the version-pinned\nOKF knowledge bundle per @rules\u002Fokf-knowledge-bundle.md — pin the target ScalarDB version first\nand cite the concept's `resource` URL, not memory.\n\n**Application SQL**: this router migrates schemas, stored procedures and triggers. The SQL the application\nruns — MyBatis mappers, JDBC and Spring JDBC calls, JPA native queries, batch scripts — is migrated statement by\nstatement by `\u002Farchitect:design-sql-migration` → `\u002Farchitect:implement-sql-migration` →\n`\u002Farchitect:verify-sql-migration`; point the user there when the question is about queries rather than tables.\n\n---\n\n## Execution Instructions\n\nFollow these steps in order, without skipping either: the first decides which database-specific skill the second delegates to.\n\n---\n\n### STEP 1: Ask Which Database to Migrate\n\nUse the `AskUserQuestion` tool to determine the source database:\n\n```json\n{\n  \"questions\": [\n    {\n      \"question\": \"Which database do you want to migrate to ScalarDB?\",\n      \"header\": \"Database\",\n      \"options\": [\n        {\"label\": \"Oracle\", \"description\": \"Migrate Oracle schema to ScalarDB\"},\n        {\"label\": \"MySQL\", \"description\": \"Migrate MySQL schema to ScalarDB\"},\n        {\"label\": \"PostgreSQL\", \"description\": \"Migrate PostgreSQL schema to ScalarDB\"}\n      ],\n      \"multiSelect\": false\n    }\n  ]\n}\n```\n\nSave the user's response.\n\n---\n\n### STEP 2: Delegate to the Database-Specific Skill\n\nBased on the user's selection, invoke the corresponding skill using the `Skill` tool:\n\n| User Selection | Skill to Invoke |\n|----------------|-----------------|\n| **Oracle** | `Skill: architect:migrate-oracle` |\n| **MySQL** | `Skill: architect:migrate-mysql` |\n| **PostgreSQL** | `Skill: architect:migrate-postgresql` |\n\nThe delegated command handles the entire workflow autonomously:\n\n**Phase A: Interactive Configuration (Steps 1-6) — Main Context**\n1. Reads or detects missing `.claude\u002Fconfiguration\u002Fdatabases.env`\n2. Collects connection parameters (Batch 1 of 2) via `AskUserQuestion`\n3. Collects authentication & options (Batch 2 of 2) via `AskUserQuestion`\n4. Maps user responses to configuration values\n5. Writes or updates `databases.env`\n6. Ensures output directory exists\n\n**Phase B: Subagent Processing — Isolated Contexts**\n\n*Oracle (Steps 7-11 — 6 subagents):*\n\n| Step | Subagent | Type | What It Does |\n|------|----------|------|--------------|\n| 7 | Connection Tester | Bash | Verifies DB is reachable via SQL*Plus |\n| 8 | Schema Extractor | Bash | Runs `oracle_db_extractor.py` |\n| 9 | Report Generator | general-purpose | Reads JSON + template, writes schema report |\n| 10 | Migration Analyst + AQ Migrator + SP\u002FTrigger Migrator | general-purpose ×3 | Parallel: migration docs + AQ Java code + SP\u002Ftrigger Java code |\n| 11 | *(main context)* | — | Displays combined summary + metrics table |\n\n*MySQL \u002F PostgreSQL (Steps 7-11 — 5 subagents):*\n\n| Step | Subagent | Type | What It Does |\n|------|----------|------|--------------|\n| 7 | Connection Tester | Bash | Verifies DB is reachable via Python connector |\n| 8 | Schema Extractor | Bash | Runs `*_db_extractor.py` |\n| 9 | Report Generator | general-purpose | Reads JSON + template, writes schema report |\n| 10 | Migration Analyst + SP Migrator | general-purpose x2 | Parallel: migration docs + Java code |\n| 11 | *(main context)* | — | Displays combined summary |\n\nError cascading applies: if any subagent fails, later subagents are not spawned.\n\nPerform no further steps after invoking the skill: the delegated command produces the final output, and anything added here would repeat or contradict it.\n\n---\n\n### STEP 3: Error Handling\n\n- **User selects \"Other\" with an unrecognized database type:**\n  Inform the user: \"Currently, only Oracle, MySQL, and PostgreSQL are supported for ScalarDB migration. Please choose one of the three supported databases.\"\n  Then re-ask the question from Step 1.\n\n- **User cancels or does not respond:**\n  Stop execution and inform the user they can restart with `\u002Farchitect:migrate-database` or use a direct command (`\u002Farchitect:migrate-oracle`, `\u002Farchitect:migrate-mysql`, `\u002Farchitect:migrate-postgresql`).\n\n---\n\n## Related Commands\n\n| Command | Description |\n|---------|-------------|\n| `\u002Farchitect:migrate-oracle` | Direct Oracle migration (skips database selection) |\n| `\u002Farchitect:migrate-mysql` | Direct MySQL migration (skips database selection) |\n| `\u002Farchitect:migrate-postgresql` | Direct PostgreSQL migration (skips database selection) |\n\n## Related Files\n\n- **Config**: `.claude\u002Fconfiguration\u002Fdatabases.env`\n- **Output**: `.claude\u002Foutput\u002F` (generated reports)\n- **Subagent Prompts**: `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Fsubagents\u002F{oracle,mysql,postgresql}\u002F`\n","# Command: migrate-database (Unified Migration Entry Point)\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\n## Purpose\n\nUnified entry point for all database-to-ScalarDB migrations. Asks the user which database type they want to migrate, then delegates to the appropriate database-specific command which handles everything: configuration detection, parameter collection, schema analysis, and migration documentation generation.\n\n**Knowledge grounding**: the delegated workflows must verify ScalarDB capabilities (supported\ndatabases, data types, transaction guarantees, edition-gated features) against the version-pinned\nOKF knowledge bundle per @rules\u002Fokf-knowledge-bundle.md — pin the target ScalarDB version first\nand cite the concept's `resource` URL, not memory.\n\n**Application SQL**: this router migrates schemas, stored procedures and triggers. The SQL the application\nruns — MyBatis mappers, JDBC and Spring JDBC calls, JPA native queries, batch scripts — is migrated statement by\nstatement by `\u002Farchitect:design-sql-migration` → `\u002Farchitect:implement-sql-migration` →\n`\u002Farchitect:verify-sql-migration`; point the user there when the question is about queries rather than tables.\n\n---\n\n## Execution Instructions\n\nFollow these steps in order, without skipping either: the first decides which database-specific skill the second delegates to.\n\n---\n\n### STEP 1: Ask Which Database to Migrate\n\nUse the `AskUserQuestion` tool to determine the source database:\n\n```json\n{\n  \"questions\": [\n    {\n      \"question\": \"Which database do you want to migrate to ScalarDB?\",\n      \"header\": \"Database\",\n      \"options\": [\n        {\"label\": \"Oracle\", \"description\": \"Migrate Oracle schema to ScalarDB\"},\n        {\"label\": \"MySQL\", \"description\": \"Migrate MySQL schema to ScalarDB\"},\n        {\"label\": \"PostgreSQL\", \"description\": \"Migrate PostgreSQL schema to ScalarDB\"}\n      ],\n      \"multiSelect\": false\n    }\n  ]\n}\n```\n\nSave the user's response.\n\n---\n\n### STEP 2: Delegate to the Database-Specific Skill\n\nBased on the user's selection, invoke the corresponding skill using the `Skill` tool:\n\n| User Selection | Skill to Invoke |\n|----------------|-----------------|\n| **Oracle** | `Skill: architect:migrate-oracle` |\n| **MySQL** | `Skill: architect:migrate-mysql` |\n| **PostgreSQL** | `Skill: architect:migrate-postgresql` |\n\nThe delegated command handles the entire workflow autonomously:\n\n**Phase A: Interactive Configuration (Steps 1-6) — Main Context**\n1. Reads or detects missing `.claude\u002Fconfiguration\u002Fdatabases.env`\n2. Collects connection parameters (Batch 1 of 2) via `AskUserQuestion`\n3. Collects authentication & options (Batch 2 of 2) via `AskUserQuestion`\n4. Maps user responses to configuration values\n5. Writes or updates `databases.env`\n6. Ensures output directory exists\n\n**Phase B: Subagent Processing — Isolated Contexts**\n\n*Oracle (Steps 7-11 — 6 subagents):*\n\n| Step | Subagent | Type | What It Does |\n|------|----------|------|--------------|\n| 7 | Connection Tester | Bash | Verifies DB is reachable via SQL*Plus |\n| 8 | Schema Extractor | Bash | Runs `oracle_db_extractor.py` |\n| 9 | Report Generator | general-purpose | Reads JSON + template, writes schema report |\n| 10 | Migration Analyst + AQ Migrator + SP\u002FTrigger Migrator | general-purpose ×3 | Parallel: migration docs + AQ Java code + SP\u002Ftrigger Java code |\n| 11 | *(main context)* | — | Displays combined summary + metrics table |\n\n*MySQL \u002F PostgreSQL (Steps 7-11 — 5 subagents):*\n\n| Step | Subagent | Type | What It Does |\n|------|----------|------|--------------|\n| 7 | Connection Tester | Bash | Verifies DB is reachable via Python connector |\n| 8 | Schema Extractor | Bash | Runs `*_db_extractor.py` |\n| 9 | Report Generator | general-purpose | Reads JSON + template, writes schema report |\n| 10 | Migration Analyst + SP Migrator | general-purpose x2 | Parallel: migration docs + Java code |\n| 11 | *(main context)* | — | Displays combined summary |\n\nError cascading applies: if any subagent fails, later subagents are not spawned.\n\nPerform no further steps after invoking the skill: the delegated command produces the final output, and anything added here would repeat or contradict it.\n\n---\n\n### STEP 3: Error Handling\n\n- **User selects \"Other\" with an unrecognized database type:**\n  Inform the user: \"Currently, only Oracle, MySQL, and PostgreSQL are supported for ScalarDB migration. Please choose one of the three supported databases.\"\n  Then re-ask the question from Step 1.\n\n- **User cancels or does not respond:**\n  Stop execution and inform the user they can restart with `\u002Farchitect:migrate-database` or use a direct command (`\u002Farchitect:migrate-oracle`, `\u002Farchitect:migrate-mysql`, `\u002Farchitect:migrate-postgresql`).\n\n---\n\n## Related Commands\n\n| Command | Description |\n|---------|-------------|\n| `\u002Farchitect:migrate-oracle` | Direct Oracle migration (skips database selection) |\n| `\u002Farchitect:migrate-mysql` | Direct MySQL migration (skips database selection) |\n| `\u002Farchitect:migrate-postgresql` | Direct PostgreSQL migration (skips database selection) |\n\n## Related Files\n\n- **Config**: `.claude\u002Fconfiguration\u002Fdatabases.env`\n- **Output**: `.claude\u002Foutput\u002F` (generated reports)\n- **Subagent Prompts**: `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fcommon\u002Fsubagents\u002F{oracle,mysql,postgresql}\u002F`\n",{"model":25,"description":41},"Move an existing Oracle, MySQL or PostgreSQL database to ScalarDB: schema analysis, migration\ndocuments, stored procedures and triggers converted to Java. Use for any database-to-ScalarDB\nmigration.\n","main","fed4c7ebb79ed82ce5c961f944a1ab0ab21bae26","skills\u002Fmigrate-database",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":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add wfukatsu\u002Fnexus-architect --skill migrate-database",{"tool":58,"command":59},"bunx","bunx skills add wfukatsu\u002Fnexus-architect --skill migrate-database",{"tool":61,"command":62},"pnpm","pnpm dlx skills add wfukatsu\u002Fnexus-architect --skill migrate-database","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fmigrate-database\u002FSKILL.md",true,[],[67,75,99,122,145,163],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"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":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":36},"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",[],[82,83,84,28,25,85,86,87,88,89,90,91,92,20,93,94,95,96,97,98],"verify sql migration","verify","sql","tests","golden","source","Production","fetcher","data","properties","id","auto","true","mode","en","core","never",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":36},"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",[],[106,83,107,93,108,109,110,94,111,112,96,113,114,115,116,117,118,119,120,121],"implementation","verify implementation","quality gate","contract","design","chain","api contract","scope","backlog","repo","example","stage","check","api","code","requirements",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":36},"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",[],[129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144],"update knowledge","update","knowledge","root","plugin","bundle","Bash","terraform","status","okf","latest","kubernetes","name","haiku","Tools","fetch",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":36},"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",[],[147,121,20,152,22,110,153,26,154,24,21,155,156,157,158,159,160,161,162],"Legacy","system","project","path","application","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":36},"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,25,173,95,174,175,176,177,178,179,180],"select scalardb edition","select","topology","short","Enterprise","choose","deployment","options","cluster","interview","community"]