The Azure Cosmos DB team describes it as Spec Kit’s first database extension. Its reported tests show improved adherence to selected Cosmos DB practices when agents receive the guidance, but do not yet demonstrate a broader end-to-end application-building advantage. That makes this preview most relevant to teams that want reviewable database-design decisions, rather than a promise of better autonomous coding.
What changes in the development workflow
GitHub Spec Kit is database-agnostic. Its recommendations otherwise depend on the coding model’s existing knowledge and the context developers provide. The Cosmos DB extension supplies more targeted instructions through domain-specific commands and hooks around implementation.
A GitHub Spec Kit catalog pull request also records the addition of a cosmosdb community-extension entry and an Azure Cosmos DB documentation row. That provides a separate project record of the catalog submission, though it does not independently validate the extension’s performance claims.
Microsoft describes the core workflow as four stages:
| Stage | What the agent produces | What the developer should review |
|---|---|---|
/specify | A specification explaining what the application should do and why. | Whether the requirements describe the intended workload. |
/plan | Architecture and a data model. | Whether containers, partition keys, and access patterns fit the application’s reads and writes. |
/tasks | Ordered, verifiable units of implementation work. | Whether the work follows the approved plan. |
/implement | Code generated against those tasks. | Whether the resulting code and tests implement the design correctly. |
The useful intervention comes before code generation. Microsoft gives the example of reviewing whether a proposed partition key supports the application’s busiest queries during planning, when changing the design is generally simpler than reworking an implemented data layer.
The extension adds guidance on partitioning, request-unit costs, point reads, indexing, and resilient clients. Its code-generation commands cover patterns including point reads, partition-aware and parameterized queries, and managed-identity authentication. The practical benefit is having those considerations available inside the planning and implementation process, rather than relying on the developer to remember and supply each one separately.
Microsoft lists GitHub Copilot, Claude Code, Codex, Cursor, and Gemini CLI among compatible Spec Kit agents. The extension can also run alongside other extensions; it is not presented as a Copilot-only feature.
Version 0.2.0 changes how guidance reaches the agent
The preview’s most consequential implementation detail is how its hooks deliver instructions.
The before_implement advisor selects relevant Cosmos DB patterns and includes their best-practice rules directly in the implementation context. The after_implement review tells the agent to inspect the generated code, fix identified issues, and check again.
Microsoft says autonomous application tests exposed a weakness in the earlier approach: agents often skipped recommended Cosmos DB commands and wrote the data layer without using their guidance. Version 0.2.0 responds by putting the relevant rules directly into context and configuring both advisor and review hooks as non-optional.
This changes the dependency in the workflow. Instead of relying solely on an agent to act on a recommendation to invoke another command, the implementation step receives the selected rules directly. The post-implementation instruction also explicitly calls for a fix-and-recheck cycle.
“Non-optional” describes the hook configuration, however, not a guarantee that generated code is correct. Microsoft still calls for developers to review and test the output. The agent’s own review is an additional check, not independent verification of its work.
What Microsoft’s measurements actually support
Microsoft evaluated two different questions: whether generated code followed selected Cosmos DB practices, and whether agents built better complete applications. Those results need to be read separately.
For best-practice conformance, Microsoft compared generation with and without the guidance across models, languages, and complexity levels. The checks included:
- Client application-name configuration and point reads using both an item ID and partition key.
- Handling a 404 response as a missing item.
- Parameterized and partition-scoped queries.
- ETags, transactional batches, keyless authentication, and partition-key design.
Microsoft reports that the average pass rate increased by 0.10, or approximately 10 percentage points, with improvements in 19 of 24 test combinations. Results were also more consistent between runs. The largest reported gain was application-name configuration, at 79 percentage points, while individual best-practice command tests improved by 14–37 percentage points.
These are conformance measurements, not measurements of database speed, operating cost, or developer productivity. The large gain for a specific configuration check should not be interpreted as a corresponding improvement in application performance.
Microsoft also reports that tuning the advisor increased command-recommendation precision from 0.57 to 0.68. That result concerns selection of relevant commands, rather than correctness of the complete application.
The autonomous end-to-end results were less conclusive. According to Microsoft, the updated extension scored modestly higher on average than the previous version for the two models with usable results, but the uncertainty allowed for no improvement. It performed roughly on par with Spec Kit alone and below an agent working without Spec Kit in those tests. A third model yielded no usable scores because of agent runtime failures.
Those tests did not measure human review at each stage—the workflow Microsoft is encouraging developers to use. The supported conclusion is therefore narrow: supplying the guidance improved the checked practices, while the application tests exposed instruction-delivery problems and informed the 0.2.0 changes. They do not establish that adding the extension will improve every project’s final result.
Team conventions without maintaining a fork
Spec Kit presets let teams add their own conventions separately from the Cosmos DB extension. Microsoft describes support for wrapping or overriding command templates and combining the extension with other tools in a shared workflow.
For example, a platform team could add approved Azure regions and authentication requirements to the planning template. Naming conventions, preferred SDK patterns, and review steps can likewise become part of the instructions developers receive.
Keeping these customizations separate can make extension updates easier to adopt than maintaining a fork. Template overrides still need review when upstream commands change.
The boundary is important for enterprise teams: a preset supplies shared instructions; it does not enforce compliance. A generated plan that mentions an authentication requirement still needs review, as does the code intended to implement it.
How to evaluate the preview
Microsoft’s installation command targets version 0.2.0. Run it from a project already using Spec Kit’s specify CLI:
specify extension add cosmosdb --from [url]https://github.com/AzureCosmosDB/spec-kit-cosmosdb/archive/refs/tags/v0.2.0.zip[/url]
The announcement does not establish a minimum Spec Kit CLI version. Command names and behavior may also change during preview.
For an initial evaluation, Microsoft recommends a workload you already understand:
- Work through
/specifyand confirm that the requirements reflect the application you intend to build. - Review
/plan, paying particular attention to containers, partition keys, and the busiest read and write patterns. - Review
/tasksbefore proceeding to/implement. - Inspect the generated data layer and tests after the extension’s review-and-fix cycle.
- Report missing guidance, incorrect recommendations, or code that required correction, including the agent and model used.
The extension occupies a different role from Cosmos DB’s existing agent tools. The VS Code extension and optional Model Context Protocol mode in Cosmos DB Shell support exploring and querying data within granted permissions. Cosmos DB Agent Kit skills provide knowledge for everyday coding tasks. The Spec Kit extension brings that database focus into a documented planning-and-implementation workflow.
For teams already using Spec Kit, the preview offers a concrete way to make Cosmos DB decisions more visible before implementation. Evaluate it on the quality of those decisions and the resulting code—not on the assumption that additional workflow stages necessarily produce a better application.