openspec-steward
AGENTS.md2 starsChanged 6 days agoMITView on GitHub
This file is for contributors, human or agent, working on this repository. How to use the plugin in another repository is in the README and docs/. - Every change goes through the steward flow, here too. Open it with /start-change, close it with /stop-change. The section at the end of this file gives the order. Archive comes before merge. - Merge only when a human asks, and only after the head is verified green by name. Merge with a rebase,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,266 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 repository11 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- openspecSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
- openspec-change-flowSkill
- openspec-evidenceSkill
- openspec-spec-driftSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is 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.
1
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 15
Stage explicit paths: Never git add <dir> or git add -A: a directory add sweeps in unrelated files.
- Distinctive: line 17
The repository is public: No file, commit message, pull request or release note names a consumer repository or states a fact about one.
- Distinctive: line 46
Run all of these before pushing.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
Working on openspec-steward
This file is for contributors, human or agent, working on this repository. How
to use the plugin in another repository is in the README and
docs/.
Rules
- Every change goes through the steward flow, here too. Open it with
/start-change, close it with/stop-change. The section at the end of this file gives the order. Archive comes before merge. - Merge only when a human asks, and only after the head is verified green by
name. Merge with a rebase, pinned to the verified head:
gh pr merge <n> --rebase --match-head-commit <SHA>. - Stage explicit paths. Never
git add <dir>orgit add -A: a directory add sweeps in unrelated files. - The repository is public. No file, commit message, pull request or release note names a consumer repository or states a fact about one. Say "a consumer repository".
- Never hand-edit the OpenSpec files in
.agents/skills/openspec*, or their links in.claude/skills/.openspec updategenerates them. Regenerate them with the CLI versionci.ymlpins. Two files in.claude/are hand-written:.claude/CLAUDE.md, which imports this one, and.claude/commands/release.md. - The package has no dependencies. Tools that only the tests need are
installed with
--no-save, at an exact version.
Map
| path | what it holds |
commands/ | the plugin's slash commands, shipped to consumers |
skills/ | the plugin's skills, shipped to consumers |
scripts/check-specs/ | openspec-check-specs: an I/O shell in index.mjs around pure checks in lib/ |
scripts/init/ | openspec-steward-init, which writes the rules and the section below |
scripts/archive-head/ | openspec-archive-head, which decides when an archive head may skip its tests |
scripts/gates/ | the harness that watches each /start-change and /stop-change refusal refuse |
scripts/plugin/ | Claude Code's own validator over the manifests |
scripts/pins/ | the test that holds the OpenSpec version pins to each other, and the check that holds the generated skills to the pinned CLI |
scripts/release/ | the test that holds the release version equal across its three files |
docs/ | how the plugin works and why, for its users |
openspec/ | this repository's own specifications and changes |
todo/ | deferred plans, each picked up with /start-change <slug> |
Gates
Run all of these before pushing. CI runs the same jobs on every pull request.
npm test # unit tests; not `node --test <dir>`
npm run test:bin # packs and installs the bins as a consumer gets them
npm run test:gates # the start and stop refusals
npm run test:plugin # the plugin validator
node scripts/check-specs/index.mjs --root .Maintaining
- Releasing: run
/release X.Y.Z, which followsdocs/releasing.md. - Moving a pinned tool:
docs/maintaining.md. - Planned maintenance work: the plans in
todo/.
<!-- openspec-steward:begin -->OpenSpec change flow
From /start-change to /stop-change: explore -> propose -> apply -> open PR
-> verified green -> archive -> verify the apply -> merge when a human asks.
Artifacts follow openspec/config.yaml; this repository's own approval rules also bind.
<!-- openspec-steward: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.

