cosmosdb-agent-kit
Copilot instructions57 starsChanged 4 months agoMITView on GitHub
This file tells Copilot how to work with the cosmosdb-agent-kit repository. This repository contains AI coding agent skills (best practice rules) for Azure Cosmos DB, plus a testing framework that measures how well agents apply those skills when building apps. Follow the Agent Instructions section in the issue body exactly. The key steps are: 1. Read skills/cosmosdb-best-practices/AGENTS.md (the full rules — apply them all) 2. Read the scenario's SCENARIO.md and api-contract.yaml 3. Generate code that implements the contract exactly 4.…
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cosmosdb-best-practicesSkill
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
14 rules. About 0 are common, 5 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Follow the Agent Instructions section in the issue body exactly.
- Very specific: line 21
Read skills/cosmosdb-best-practices/AGENTS.md (the full rules — apply them all)
- Very specific: line 22
Read the scenario's SCENARIO.md and api-contract.yaml
- Very specific: line 24
Create iteration-config.yaml in the iteration folder
- Very specific: line 29
Follow the recipe in testing-v2/CREATE-SCENARIO.md exactly.
- Very specific: line 34
Follow the recipe in testing-v2/EVALUATE.md exactly.
- Distinctive: line 35
Read the test results from the PR comment above
- Very specific: line 36
Read the scenario's api-contract.yaml and the generated code
- Very specific: line 38
Create or update rules in skills/cosmosdb-best-practices/rules/
- Very specific: line 39
Run npm run build to regenerate AGENTS.md
- Very specific: line 41
Add a concise entry to CHANGELOG.md
- Distinctive: line 42
Commit everything to the PR branch
- Distinctive: line 58
All API field names: camelCase
- Distinctive: line 59
Test data: hardcoded/deterministic, never random
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Coding Agent Instructions
This file tells Copilot how to work with the cosmosdb-agent-kit repository.
Repository Purpose
This repository contains AI coding agent skills (best practice rules) for Azure Cosmos DB, plus a testing framework that measures how well agents apply those skills when building apps.
Key Directories
skills/cosmosdb-best-practices/— The Cosmos DB best practices skill (SKILL.md+rules/;AGENTS.mdis generated on demand, not committed)testing-v2/— The testing framework (scenarios, contracts, tests, harness)scripts/— Build scripts (compile.js compiles rules into AGENTS.md)
When Assigned to an Issue
"Run Test Iteration" issues
Follow the Agent Instructions section in the issue body exactly. The key steps are:
- Read
skills/cosmosdb-best-practices/AGENTS.md(the full rules — apply them all) - Read the scenario's
SCENARIO.mdandapi-contract.yaml - Generate code that implements the contract exactly
- Create
iteration-config.yamlin the iteration folder - Open a PR
"Create New Scenario" issues
Follow the recipe in testing-v2/CREATE-SCENARIO.md exactly. Use
testing-v2/scenarios/gaming-leaderboard/ as the format reference for all files.
When Asked to Evaluate Test Results (PR comment)
Follow the recipe in testing-v2/EVALUATE.md exactly. The key steps are:
- Read the test results from the PR comment above
- Read the scenario's
api-contract.yamland the generated code - Classify each failure (contract violation, missing rule, unclear rule, SDK quirk)
- Create or update rules in
skills/cosmosdb-best-practices/rules/ - Run
npm run buildto regenerate AGENTS.md - Update
testing-v2/IMPROVEMENTS-LOG.md - Add a concise entry to
CHANGELOG.md - Commit everything to the PR branch
Build Commands
# Compile rules into AGENTS.md (run after adding/changing rules)
npm run build
# Validate rule files
npm run validateConventions
- Rule files:
skills/cosmosdb-best-practices/rules/<prefix>-<description>.md - Rule prefixes: model-, partition-, query-, sdk-, index-, throughput-, global-, monitoring-, pattern-
- All API field names: camelCase
- Test data: hardcoded/deterministic, never random
- Iteration folders:
testing-v2/scenarios/<scenario>/iterations/iteration-<NNN>-<language>/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

