agentleFS
codecicadacodecicada/openspec-steward/AGENTS.md

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,…

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
  1. Very specific:

    Stage explicit paths: Never git add <dir> or git add -A: a directory add sweeps in unrelated files.

    line 15
  2. Distinctive:

    The repository is public: No file, commit message, pull request or release note names a consumer repository or states a fact about one.

    line 17
  3. Distinctive:

    Run all of these before pushing.

    line 46

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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> or git 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 update generates them. Regenerate them with the CLI version ci.yml pins. 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

pathwhat 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 follows docs/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 -->

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.