canon-skills
AGENTS.md9 starsChanged 4 months agoMITView on GitHub
Universal instructions for AI coding agents. Loaded natively by Claude Code, Pi, and Codex CLI. See standards/efficiency.md for the full agent standards (code quality, security, git conventions, token efficiency). - explore → Haiku, thinking minimal — read-only, bounded search/mapping, no judgment calls. - plan creation → Fable or Opus, thinking medium/high — needs design judgment before scope locks in. - implement → Haiku/Sonnet, thinking medium — execution inside an approved plan. Without advisor configured on Sonnet+Opus, bump to Opus for…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-auditSkill
- bulk-readSkill
- canon-slidesSkill
- captureSkill
- context-checkSkill
- context-doctorSkill
- dead-code-cleanupSkill
- doc-auditSkill
- learnings-sweepSkill
- mikadoSkill
- mutation-testSkill
- output-validatorSkill
- promote-learningsSkill
- pr-reviewSkill
- repo-auditSkill
- repo-workflow-auditSkill
- sdlc-auditSkill
- skill-evalSkill
- skill-exportSkill
- sprintSkill
- wrapupSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
When dispatching a research/reporting-only subagent that has full tool access (e.g.
- Distinctive: line 15
If multiple interpretations exist, present them — don't pick silently.
- Distinctive: line 18
Test before declaring done.
- Very specific: line 51
Exception — sprint close gates: follow their own rule (may downgrade to the Admin > Model Tiers "Review & Eval" default, applied …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
canon: Agent Instructions
Universal instructions for AI coding agents. Loaded natively by Claude Code, Pi, and Codex CLI.
Approach
- Non-trivial work requires an open ticket before
sprint start. Trivial fixes (typo, single-line config) are exempt. Adding a new file, wiring into test or build infrastructure, modifying a hook, pipeline, or post-commit script, or touching more than one file with coordinated intent is normal tier — eval is mandatory. Abugfixtier (a single logic file plus its covering test) sits between trivial and normal: it is eval-only — keeps the binding evaluator but drops the advisory reviewer + heavy wrapup — and is a complete-time downgrade decided from the diff, never planned. Seeskills/sprint/SKILL.md's Workflow tiers. - Think before coding. Surface tradeoffs, don't hide confusion.
- Minimum code that solves the problem. Nothing speculative.
- Touch only what you must. Clean up only your own mess.
- When dispatching a research/reporting-only subagent that has full tool access (e.g.
general-purpose), explicitly instruct it not to edit or write any file. Default tool access includes Edit/Write — omitting this instruction risks unauthorized side effects on files it was only meant to read. - Subagent dispatches should return a structured report, not raw tool noise. Use
skills/sprint/reference/subagent-report.mdas the return-shape contract: Result, Output, Evidence, Learnings. Preserve context hygiene — snapshot the active working branch only, do not transform parent context into text, and exclude sibling/abandoned branches. - Define success criteria before starting. Verify when done.
- User decisions and the approved plan are settled: reopen them only on new evidence or when the user does — and always surface a mistake you find in earlier work.
- If multiple interpretations exist, present them — don't pick silently.
- Never end a turn after only stating what you are about to do; if a sentence describes a next action, perform it in the same turn. Exception: canon's defined approval checkpoints —
sprint start's "wait for explicit approval" (before code) andsprint complete's "wait for confirmation" (before close) — are deliberate stops; pausing for the user there is required, not a stall. - Be concise in output, thorough in reasoning.
- Test before declaring done.
- Editing
tools/sprint-check-app/(the board)? Readtools/sprint-check-app/CLAUDE.mdfirst — board-specific gotchas (Cockpit fetch scoping, id prefixes, Playwright setup). Harnesses don't all load a nested CLAUDE.md on their own.
Standards
See standards/efficiency.md for the full agent standards (code quality, security, git conventions, token efficiency).
<!-- MODEL-TIERS:BEGIN -->Model Tiers
Match model to the sprint work being done. plan creation and grill usually run inline
in the main session rather than as separate dispatches — the tier below still applies to
whichever session/dispatch does that work.
explore→ Haiku, thinkingminimal— read-only, bounded search/mapping, no judgment calls.plan creation→ Fable or Opus, thinkingmedium/high— needs design judgment before scope locks in.implement→ Haiku/Sonnet, thinkingmedium— execution inside an approved plan. Withoutadvisorconfigured on Sonnet+Opus, bump to Opus for high-risk sprints instead.review/grill→ Opus, thinkinghigh— adversarial, judgment-heavy; a weaker model would rubber-stamp.
Close-gate model rules (sprint reviewer/evaluator) live in skills/sprint/reference/complete.md, not here.
<!-- MODEL-TIERS:END -->Model Tiers: canon internals (not copied to projects)
The board's per-ticket Gate model: dropdown (tools/sprint-check-app/app.html) reads its live
option list from tools/sprint-check-app/model-tiers.json (Admin > Model Tiers, t-7e36) —
that file is a seeded, editable mirror of the Anthropic models named above, not a replacement for
this prose; the registry's OpenAI entries run close gates only per ticket, via Gate model: openai:<id> under Copilot CLI (t-ef27); the Admin OpenAI defaults stay recorded only.
Close-gate effort comes from canon's gate agent definitions (agents/canon-reviewer.md,
canon-evaluator.md: effort: high, a claude-sonnet-5 model floor, read-only tools with Bash/execute shells), not from this prose.
A dispatch can set only the model, never effort (t-c774).
Exception — sprint close gates follow their own rule (may downgrade to the Admin > Model
Tiers "Review & Eval" default, applied unconditionally to every interactive close since
2026-09-23; to Haiku on a demo: true ticket, evaluator only; or via an explicit user
Gate model: override, which always wins) — see the
"Model tier for gates" note in skills/sprint/reference/complete.md, not this block.
Cross-harness note. Fresh-context dispatch is confirmed working under Codex
(spawn_agent/wait_agent/close_agent). Per-agent model selection is reconciled, not a flat
"unsupported": the live-observed spawn_agent call (agent_type: "default") has no model
field — that part of the earlier live test holds. But Codex's own docs (learn.chatgpt.com,
checked 2026-09-22) describe a separate real path — a named custom subagent defined in a
~/.codex/agents/*.toml file with its own model field, which beats
agents.default_subagent_model when that named agent type is spawned. So a Haiku-style
downgrade IS achievable under Codex, but only via a predefined custom agent file, not an ad hoc
per-spawn choice on the generic "default" agent type. Until a custom agent file is actually
set up and tested live, an explicit Gate model: override or full-tier review remains the safe
default. For a Pi session,
close gates run on the pi session model, full stop — this file's general review → Opus tier
above is not the close-gate rule there; see complete.md's pi-dispatch section for the
harness-scoped recipe.
North-star (gate floor). Only structural risk may reduce close gates, and a sprint never drops below the binding evaluator. The one documented exception is a user-set demo: true light-close (the evaluator still runs). The full policy — demo mode, the model tier for gates, and the north-star amendments — lives in skills/sprint/reference/complete.md (see also DECISIONS.md 2026-07-25 / 07-30 / 08-02).
<!-- AI-SKILLS:BEGIN -->Active canon skills
Managed by
skills.sh— useadd/removeto change.
| Skill | Category | Source |
| sprint | dev | /Users/sunitjoshi/Developer/canon/skills/sprint/SKILL.md |
<!-- AI-SKILLS: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.

