agent-context-doctor
Copilot instructions2 starsChanged 6 months agoMITView on GitHub
This file contains repository-wide custom instructions for GitHub Copilot. Generated sections are managed by agent-context-doctor. Agent Context Doctor is a Python CLI that audits, generates, syncs, repairs, and packages repository context files for AI coding agents. Run the full test suite before completing changes: Also run a CLI smoke test: Before ending a long session, update HANDOFF.md or run:
- Installs packages
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/agentctx.mdCursor rule
The file
We split this copilot-instructions.md into the rules it gives an agent
12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 43
Keep the package zero-runtime-dependency unless there is a strong reason to add one.
- Distinctive: line 44
Prefer small, focused functions over large command handlers.
- Distinctive: line 45
Keep CLI output stable and readable.
- Distinctive: line 46
Keep JSON output stable and script-friendly.
- Very specific: line 47
Keep scan human-oriented and verify CI-oriented.
- Very specific: line 48
Keep agentctx doctor --fix safe: no deletion and no overwriting user-authored content outside markers.
- Distinctive: line 49
Avoid network calls in runtime code.
- Distinctive: line 53
Run the full test suite before completing changes:
- Distinctive: line 68
Do not collect or upload repository contents.
- Distinctive: line 69
Do not commit secrets, API keys, credentials, or private generated files.
- Distinctive: line 70
Treat all scanned file contents as local-only data.
- Very specific: line 74
Before ending a long session, update HANDOFF.md or run:
≈ “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
GitHub Copilot Instructions
This file contains repository-wide custom instructions for GitHub Copilot.
Generated sections are managed by agent-context-doctor.
<!-- agentctx:source AGENTS.md --><!-- agentctx:hash 0b090331881e --><!-- agentctx:begin -->AGENTS.md
Project Overview
Agent Context Doctor is a Python CLI that audits, generates, syncs, repairs, and packages repository context files for AI coding agents.
Setup Commands
python -m pip install -e .[dev]Development Commands
pytest
agentctx scan
agentctx verify --min-score 90
agentctx sync --check
agentctx pack --stdout
agentctx badge
agentctx doctorProject Structure
src/agentctx/- source code for the CLI package.tests/- pytest test suite.docs/- additional documentation..github/workflows/ci.yml- GitHub Actions workflow.
Coding Guidelines
- Keep the package zero-runtime-dependency unless there is a strong reason to add one.
- Prefer small, focused functions over large command handlers.
- Keep CLI output stable and readable.
- Keep JSON output stable and script-friendly.
- Keep
scanhuman-oriented andverifyCI-oriented. - Keep
agentctx doctor --fixsafe: no deletion and no overwriting user-authored content outside markers. - Avoid network calls in runtime code.
Testing Instructions
Run the full test suite before completing changes:
pytestAlso run a CLI smoke test:
agentctx verify --min-score 90
agentctx sync --checkSecurity Notes
- Do not collect or upload repository contents.
- Do not commit secrets, API keys, credentials, or private generated files.
- Treat all scanned file contents as local-only data.
Handoff Notes
Before ending a long session, update HANDOFF.md or run:
agentctx handoff<!-- agentctx:end -->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.

