cosmosdb-agent-kit copilot-instructions.md

cosmosdb-agent-kit copilot-instructions.md is an instructions file for GitHub Copilot from AzureCosmosDB/cosmosdb-agent-kit. It costs 587 tokens per session, scanned A, original, MIT.

A set of instructions for an AI coding agent working in the Azure Cosmos DB agent-kit repository. It explains the repository's purpose, important folders, and procedures for test-iteration and scenario issues.

In plain words
What is it for?
Use it when working on Cosmos DB best-practice skills, testing scenarios, build scripts, test iterations, or new scenarios in the agent-kit repository.
Why use it?
It gives the agent a consistent process for reading the right guidance, implementing API contracts, configuring tests, and preparing changes. The instructions are specific to this repository.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/azurecosmosdb/cosmosdb-agent-kit/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/AzureCosmosDB/cosmosdb-agent-kit

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cosmosdb-agent-kit copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/azurecosmosdb/cosmosdb-agent-kit/copilot-instructions.svg)](https://agentmods.dev/instructions/azurecosmosdb/cosmosdb-agent-kit/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/azurecosmosdb/cosmosdb-agent-kit/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/azurecosmosdb/cosmosdb-agent-kit/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 587 This file is loaded in full into every session.
When invoked 587 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00587 $0.00587
Opus 5 $0.00293 $0.00293
Sonnet 5 $0.00117 $0.00117
Haiku 4.5 $0.00059 $0.00059

Measured 5d ago against content hash 439d8c46fa30, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cosmosdb-agent-kit copilot-instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/copilot-instructions.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 61 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 61 lines · 587 tokens per session scan A 439d8c46fa30

Subscribe to this mod's changes

cosmosdb-agent-kit copilot-instructions.md is an instructions file published in the GitHub repository AzureCosmosDB/cosmosdb-agent-kit (54 stars, last pushed 12d ago), licensed MIT. It adds 587 tokens to every session, about $0.0029 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.