agentscribe
Copilot instructions3 starsChanged 4 months agoMITView on GitHub
Guidance for AI coding agents working in this repository. This file is the single source of truth. The tool-specific files (CLAUDE.md, .cursor/rules/, .github/copilot-instructions.md) are generated from it by agentscribe sync — never edit them by hand. agentscribe is a small CLI + library that generates tool-specific AI instruction files (CLAUDE.md, Cursor rules, Copilot instructions, ...) from a single AGENTS.md, and validates that source. The code lives under src/agentscribe/: - Target Python 3.9+. Every module starts with from __future__ import annotations…
- Reads credentials
- Installs packages
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/agentscribe.mdcCursor rule
The file
We split this copilot-instructions.md into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
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
- Very specific: line 38
Keep runtime dependencies at zero (the only exception is the tomli backport on Python < 3.11).
- Very specific: line 45
Run the full suite with pytest before considering a change done.
- Very specific: line 46
Add or update tests in tests/ for any behavior you change.
- Distinctive: line 47
Every CLI command and lint rule should have coverage.
- Very specific: line 51
Do not commit secrets, credentials, or .env files.
- Very specific: line 53
Do not hand-edit generated files (CLAUDE.md, .cursor/rules/agentscribe.mdc, .github/copilot-instructions.md).
- Distinctive: line 55
Do not introduce new third-party runtime dependencies.
≈ “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
<!-- Generated by agentscribe from AGENTS.md. Do not edit directly; edit AGENTS.md and run `agentscribe sync`. -->agentscribe
Guidance for AI coding agents working in this repository. This file is the single source of truth. The tool-specific files (
CLAUDE.md,.cursor/rules/,.github/copilot-instructions.md) are generated from it byagentscribe sync— never edit them by hand.
Overview
agentscribe is a small CLI + library that generates tool-specific AI instruction
files (CLAUDE.md, Cursor rules, Copilot instructions, ...) from a single
AGENTS.md, and validates that source. The code lives under src/agentscribe/:
config.py— load configuration fromagentscribe.tomlor[tool.agentscribe].source.py— parse the source and applyagentscribe:only/except/ignorescoping.targets.py— the registry of output files and how each is formatted.sync.py— plan, write, and drift-check target files.lint.py— conservative static checks over the source.detect.py/templates.py— poweragentscribe init.cli.py— argparse front end.
Setup & commands
| Task | Command |
| Install (editable, with dev deps) | pip install -e ".[dev]" |
| Run tests | pytest |
| Lint | ruff check . |
| Format | ruff format . |
| Run the tool | agentscribe <command> (e.g. agentscribe sync) |
Code style & conventions
- Target Python 3.9+. Every module starts with
from __future__ import annotationsso built-in generics (list[str]) are safe in annotations. - Keep runtime dependencies at zero (the only exception is the
tomlibackport on Python < 3.11). Do not add dependencies without strong justification. - Match the surrounding style; keep functions small and pure where possible.
- Generated output must stay deterministic: LF line endings, stable ordering.
Testing
- Run the full suite with
pytestbefore considering a change done. - Add or update tests in
tests/for any behavior you change. - Every CLI command and lint rule should have coverage.
Do not
- Do not commit secrets, credentials, or
.envfiles. The linter flags common token shapes; do not add real tokens even as examples. - Do not hand-edit generated files (
CLAUDE.md,.cursor/rules/agentscribe.mdc,.github/copilot-instructions.md); edit this file and runagentscribe sync. - Do not introduce new third-party runtime dependencies.
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.

