contexture
Copilot instructions2 starsChanged 6 days agoMITView on GitHub
Generated from the discipline corpus by skills/project-instructions/project-instructions.mjs. Auto-loaded on every Copilot request — kept lean (pointers + landmines, not full rule bodies). Per-language rules auto-load via .github/instructions/*.instructions.md when you edit matching files. This is the always-on discipline core — the irreducible loop + pointers every agent follows on every request. It is deliberately lean: the full architectural rules live in architectural-rules/<scope>/ and reach Copilot via per-scope applyTo instruction files that load only on file-match. Because this core loads on every…
- Reads credentials
In this repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- autonomizeSkill
- blueprintSkill
- brainstormSkill
- captureSkill
- checkpointSkill
- close-outSkill
- coordinateSkill
- cycleSkill
- deliverSkill
- design-proposalSkill
- discoverSkill
- dispatchSkill
- draft-planSkill
- envisionSkill
- executeSkill
- extract-conventionsSkill
- glossarySkill
- humanizeSkill
- human-viewSkill
- improve-promptSkill
- memory-auditSkill
- new-agentSkill
- new-agents-mdSkill
- new-hookSkill
- new-mcpSkill
- orchestrateSkill
- pr-authorSkill
- prepSkill
- pre-pushSkill
- pr-triageSkill
- recapSkill
- retrospect-coreSkill
- reviewSkill
- rulesSkill
- shortcutsSkill
- specSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- update-changelogSkill
- update-codemapSkill
- using-git-worktreesSkill
- visualise-codemapSkill
- visualSkill
- work-stateSkill
- wrapSkill
- write-testsSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Prep before code: Before writing, read the rules that apply to what you're touching — architectural-rules/<lang>/ for the language, …
- Distinctive: line 19
Capture corrections: When corrected on something repeatable, write it down (a rule or a note) so the next session/agent inherits it.
- Distinctive: line 20
One concern per commit: Don't bundle unrelated changes.
- Very specific: line 24
Read .claude/codemap.md before exploratory greps — it lists every file with a purpose line and exports.
- Very specific: line 26
If .claude/architecture.md exists in the workspace, read it for project-specific architecture.
≈ “Common” is an estimate: at least 1 in 5 of the 3,779 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
contexture — Copilot instructions
Generated from the discipline corpus by
skills/project-instructions/project-instructions.mjs. Auto-loaded on every Copilot request — kept lean (pointers + landmines, not full rule bodies). Per-language rules auto-load via.github/instructions/*.instructions.mdwhen you edit matching files.
This is the always-on discipline core — the irreducible loop + pointers every agent follows on every request. It is deliberately lean: the full architectural rules live in architectural-rules/<scope>/ and reach Copilot via per-scope applyTo instruction files that load only on file-match. Because this core loads on every request, it carries only the irreducible discipline + pointers — never full rule bodies. (Anti-bloat budget: target ~1k tokens.)
<!-- The hand-authored source of this core is architectural-rules/config-authoring/cross-tool-core.md; the projector copies it into AGENTS.md and .github/copilot-instructions.md. Do not hand-edit the generated copies — edit the source and re-run skills/project-instructions/project-instructions.mjs. -->Stance (how to engage)
Be objective, direct, honest — not supportive-by-default, not reflexively contrarian. Weigh trade-offs and give a reasoned position; never just accept or reject. Surface weak reasoning, hidden assumptions, and the real cost of a choice even when unasked. A helper is most useful when honest, not agreeable.
The working loop (the five-step discipline, projected as one-liners)
Plan before acting. For anything non-trivial, present a clear plan — goals, affected files, per-step verification — and get confirmation before changing code. One-sentence diffs skip the plan. (Full rule: [[planning-depth]].)
Prep before code. Before writing, read the rules that apply to what you're touching — architectural-rules/<lang>/ for the language, universal/ always. (Copilot: these auto-load per file type.)
Review after code. Audit changes against the rules before committing — dead code, boundary violations, drift.
Capture corrections. When corrected on something repeatable, write it down (a rule or a note) so the next session/agent inherits it.
One concern per commit. Don't bundle unrelated changes. Clear messages.
Orientation pointers (read these first, don't re-derive)
Read .claude/codemap.md before exploratory greps — it lists every file with a purpose line and exports. .claude/codemap.diagrams.md has the Mermaid view.
Architectural rules live in architectural-rules/ — universal/ always applies; <lang>/ applies when touching that language; config-authoring/ when editing skills/agents/rules/hooks.
If .claude/architecture.md exists in the workspace, read it for project-specific architecture.
Boundaries (the ✅ / ⚠️ / 🚫 block — projected verbatim)
✅ Always: read the codemap + applicable rules before coding; plan non-trivial work; one concern per commit; match existing style.
⚠️ Ask first: present a plan and wait for confirmation before non-trivial changes; before deleting pre-existing code you didn't write; before cross-cutting refactors.
🚫 Never: commit secrets / credentials / .env files; add AI attribution to commits or PRs (no Co-Authored-By, no "Generated with", no robot emoji); hardcode machine-specific paths or the owner's identity into shipped artefacts; force-push shared branches.
Scoped rules
Language- and domain-specific rules load automatically when you edit a matching file (via .github/instructions/<scope>.instructions.md applyTo globs). The full corpus is in architectural-rules/.
Skills
Reusable skills (/review, /spec, /capture, …) are auto-discovered as Agent Skills from .claude/skills/ — run node bootstrap/bootstrap.js once after cloning to generate that directory (the committed source is repo-root skills/). They run one at a time; the /spec→/draft-plan→/execute chain works step-by-step but does not auto-advance here (no harness orchestration outside Claude Code).
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.

