agentleFS
AzureCosmosDBAzureCosmosDB/cosmosdb-agent-kit/.github/copilot-instructions.md

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.…

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
  1. Distinctive:

    Follow the Agent Instructions section in the issue body exactly.

    line 20
  2. Very specific:

    Read skills/cosmosdb-best-practices/AGENTS.md (the full rules — apply them all)

    line 21
  3. Very specific:

    Read the scenario's SCENARIO.md and api-contract.yaml

    line 22
  4. Very specific:

    Create iteration-config.yaml in the iteration folder

    line 24
  5. Very specific:

    Follow the recipe in testing-v2/CREATE-SCENARIO.md exactly.

    line 29
  6. Very specific:

    Follow the recipe in testing-v2/EVALUATE.md exactly.

    line 34
  7. Distinctive:

    Read the test results from the PR comment above

    line 35
  8. Very specific:

    Read the scenario's api-contract.yaml and the generated code

    line 36
  9. Very specific:

    Create or update rules in skills/cosmosdb-best-practices/rules/

    line 38
  10. Very specific:

    Run npm run build to regenerate AGENTS.md

    line 39
  11. Very specific:

    Add a concise entry to CHANGELOG.md

    line 41
  12. Distinctive:

    Commit everything to the PR branch

    line 42
  13. Distinctive:

    All API field names: camelCase

    line 58
  14. Distinctive:

    Test data: hardcoded/deterministic, never random

    line 59

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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.md is 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:

  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. Create iteration-config.yaml in the iteration folder
  5. 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:

  1. Read the test results from the PR comment above
  2. Read the scenario's api-contract.yaml and the generated code
  3. Classify each failure (contract violation, missing rule, unclear rule, SDK quirk)
  4. Create or update rules in skills/cosmosdb-best-practices/rules/
  5. Run npm run build to regenerate AGENTS.md
  6. Update testing-v2/IMPROVEMENTS-LOG.md
  7. Add a concise entry to CHANGELOG.md
  8. 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 validate

Conventions

  • 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>/

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.