Agents
Copyable instructions for Rust, documentation, source control, task setup, and review.
These snippets are copyable AGENTS.md sections. They provide compact instructions and point back
to the canonical guides for detail.
Use snippets as a starting point, then adapt paths and commands to the target repository. Do not copy every snippet by default; choose the sections that match the repo's work.
For agentic workflows, prefer the smallest useful surface. A good default is core.md plus
apply-practice-guidance.md, then one task-specific snippet or generated rule domain. Use full
doctrine prompt packs only when a broad review, rewrite, or operating-manual pass is worth the
extra tokens and round trips.
Snippet areas
Baseline packs
Core instructions and rule packs for downstream projects.
Project areas
Snippets for Rust, docs, and source control.
Workflow guidance
Task setup, review, and handoff guidance for coding agents.
Adaptation checklist
- Use
templates/downstream/when the downstream repo should carry every reviewed rule. - Keep only snippets that apply to the repo when copying small profile snippets directly.
- Use
apply-practice-guidance.mdwhen a repo wants agents to choose a small context path before escalating to deeper guidance. - Use
full-software-doctrine.mdorfull-documentation-doctrine.mdwhen one coherent pasteable prompt is more important than token efficiency, latency, or modular loading. - Rewrite guide paths when the target repo stores guidance elsewhere.
- Replace validation commands with the repo's actual commands.
- Keep source-control instructions aligned with the repo's real workflow.
- Prefer short
AGENTS.mdfiles that point to deeper guides.
For broad adoption, prefer the downstream template over copying rules.md by hand:
python3 scripts/generate_downstream_template.py --output /path/to/target-repo
The template keeps AGENTS.md short and splits the full reviewed rule pack into generated domain
files under docs/development/rules/, so agents can load the relevant rule domains without losing
coverage. Treat this repo as the canonical source for the copied rule text; refresh downstream repos
from here when the shared rules change.