SQL Server to Azure Cosmos DB migration skill for AI coding agents, powered by dsync and following the Agent Skills specification.
This skill guides AI coding agents through a complete SQL Server to Cosmos DB migration using dsync. It is designed to be Step 5 of a database modernization workflow, consuming outputs from prior assessment and planning steps.
| Step | Phase | Description |
|---|---|---|
| 1 | Prerequisites | Verify migration docs and SQL Server connectivity |
| 2 | Configuration | Generate dsync connector config from schema and access patterns |
| 3 | Execution | Run the dsync migration command |
| 4 | Validation | Verify row counts, data integrity, and Cosmos DB queryability |
This skill expects the following artifacts from prior workflow steps:
docs/cosmos-db-migration-assessment.md-- migration assessment reportdocs/access-patterns.md-- query and access pattern analysisdocs/volumetrics.md-- data volume and throughput estimatesdocs/schema_and_access_patterns_conversion_plan.md-- schema conversion plan- A live SQL Server connection string
npx skills add AdiomData/dsync-agent-kitgit clone https://github.com/AdiomData/dsync-agent-kit.git
cp -r dsync-agent-kit/skills/dsync-migration ~/.copilot/skills/cp -r skills/dsync-migration ~/.claude/skills/skills/dsync-migration/
├── SKILL.md # Skill definition (triggers, procedure, validation)
├── AGENTS.md # Compiled rules (what agents read)
├── README.md # Skill-level documentation
├── metadata.json # Version and metadata
└── rules/
├── _template.md
├── 01-prereq-check-inputs.md
├── 02-prereq-sql-connection.md
├── 03-config-generate-connector.md
├── 04-config-table-mapping.md
├── 05-config-partition-key.md
├── 06-run-execute-migration.md
├── 07-run-monitor-progress.md
├── 08-validate-row-counts.md
├── 09-validate-data-integrity.md
└── 10-validate-cosmos-queries.md
When an AI agent detects a SQL-to-Cosmos migration context, it:
- Activates based on
SKILL.mdtrigger conditions - Follows the numbered rules in sequence (01 through 10)
- Generates a dsync connector config from the migration docs and live SQL schema
- Produces the exact dsync command to execute the migration
- Validates the migration completed successfully
To rebuild AGENTS.md from individual rules:
npm run buildThis skill follows the Agent Skills open standard and is compatible with:
- Claude Code
- VS Code (GitHub Copilot)
- GitHub.com
- Gemini CLI
- Factory / Droid
- OpenCode
- OpenAI Codex
MIT