specflow
CLAUDE.md17 starsChanged 4 months agoMITView on GitHub
specflow supports Claude Code and Codex from one skill source. Claude Code ships it as a single-plugin marketplace; Codex discovers the same skills directly. These rules keep both integrations consistent as skills are added. IMPORTANT: follow them exactly. AGENTS.md is the Codex entry point and directs Codex here for the full shared rules. Skills live under skills/ in bucket folders: engineering/ and productivity/ are the promoted buckets — the plugin ships exactly that set. A skill in engineering/ or productivity/…
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- code-reviewSkill
- domain-modelingSkill
- repo-hardeningSkill
- spec-executionSkill
- tddSkill
- to-specSkill
- to-ticketsSkill
- grillSkill
- guideSkill
- session-handoffSkill
The file
We split this CLAUDE.md into the rules it gives an agent
8 rules. About 0 are common, 0 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Every promoted skill also gets a human-facing page at docs/<bucket>/<name>.md, mirroring the two promoted bucket folders.
- Very specific: line 48
A refusal names its exit: When a skill refuses to proceed, it must name the skill that unblocks the user, not just state the refusal.
- Very specific: line 52
Keep .claude-plugin/plugin.json and .codex-plugin/plugin.json versions in sync with package.json.
- Very specific: line 53
After touching either manifest, run claude plugin validate .
- Very specific: line 54
After touching the Codex manifest or marketplace, run python3 …
- Very specific: line 55
After changing a promoted skill, run node scripts/check.mjs.
- Very specific: line 62
Start from a repo that has never returned a source, so the returned label does not exist — that precondition is what hid a real bug through …
- Very specific: line 76
All shipped artifacts — SKILL.md, README.md, docs — are written in English.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
specflow — repository conventions
specflow supports Claude Code and Codex from one skill source. Claude Code ships it as a single-plugin marketplace; Codex discovers the same skills directly. These rules keep both integrations consistent as skills are added. IMPORTANT: follow them exactly. AGENTS.md is the Codex entry point and directs Codex here for the full shared rules.
Buckets
Skills live under skills/ in bucket folders:
engineering/— code and codebase workproductivity/— non-code workflow toolsin-progress/— drafts not ready to shipmisc/— kept but not promotedpersonal/— tied to one person's setupdeprecated/— no longer used
engineering/ and productivity/ are the promoted buckets — the plugin ships exactly that set.
What every promoted skill needs
A skill in engineering/ or productivity/ MUST have all three, kept in sync:
- A folder
skills/<bucket>/<name>/containingSKILL.md, where the folder name equals thename:in the frontmatter. - An entry in the top-level
README.md, with the skill name linked to itsSKILL.md, grouped under User-invoked or Model-invoked. - An entry in
.claude-plugin/plugin.json'sskillsarray (./skills/<bucket>/<name>). - An
agents/openai.yamlwith Codex UI metadata. User-invoked skills setpolicy.allow_implicit_invocation: false; model-invoked skills leave it enabled.
Skills in in-progress/, misc/, personal/, and deprecated/ MUST NOT appear in README.md or plugin.json.
Docs pages
Every promoted skill also gets a human-facing page at docs/<bucket>/<name>.md, mirroring the two promoted bucket folders. When you add, rename, or change a promoted skill's behaviour, create or re-sync its docs page. Non-promoted skills get no docs page.
Invocation
Every SKILL.md is either user-invoked or model-invoked. Retain Claude Code's existing disable-model-invocation: true field for user-invoked skills. Mirror it in Codex's agents/openai.yaml policy: allow_implicit_invocation: false is user-invoked (still explicitly available as $skill-name in Codex), while the default true is model-invoked. Keep the shared required frontmatter (name and description) present in every skill; do not remove Claude-specific fields from an existing skill. specflow's skills are user-invoked by default: the flow is deliberate, and each step is chosen, not triggered.
Ownership of shared files
Several skills write to shared files. To avoid one clobbering another:
CONTEXT.mdanddocs/adr/are owned bydomain-modeling. No other skill creates or edits them.- The verification block — in the repo's agent-context file (
AGENTS.mdorCLAUDE.md, per ADR 0003) — is owned byrepo-hardening, which edits only between its own<!-- repo-hardening:start -->/:end -->markers. - Durable local artifacts are versioned and committed, never in
.scratch/(ADR 0006): specs underdocs/specs/(owned byto-spec), local tickets underdocs/tickets/(owned byto-tickets), evidence underdocs/evidence/(owned byspec-execution, and only when there is no tracker to attach it to). Ownership governs the body:spec-executionmay append a dated implementation note to a spec or ticket it is implementing — the local stand-in for a tracker comment — because appending clobbers nothing the publisher wrote. Rewriting that body remains the publisher's alone. .scratch/is ephemeral and git-ignored — onlysession-handoffwrites there (.scratch/handoffs/), and it guarantees the.gitignoreentry first.
Refusals
A refusal names its exit. When a skill refuses to proceed, it must name the skill that unblocks the user, not just state the refusal. Model: spec-execution step 1 — "If no block exists: stop. Suggest running repo-hardening first."
Versioning & validation
- Keep
.claude-plugin/plugin.jsonand.codex-plugin/plugin.jsonversions in sync withpackage.json. Claude uses its plugin version to decide when installed users see an update; the Codex plugin manifest uses the same release version. - After touching either manifest, run
claude plugin validate . --strict. - After touching the Codex manifest or marketplace, run
python3 /Users/joaopauloassis/.codex/skills/.system/plugin-creator/scripts/validate_plugin.py .when PyYAML is available. - After changing a promoted skill, run
node scripts/check.mjs; it validates the Claude manifest wiring, Codex's portable skill metadata, and the Codex plugin/marketplace manifests. - Docs-sync ritual.
scripts/check.mjsverifies a docs page exists, not that its content matches theSKILL.md— content drift is a bug class CI cannot catch. Every version bump that touches aSKILL.mdmust re-read the correspondingdocs/<bucket>/<name>.mdand re-sync it in the same commit.
Release checklist — the tracker backend (manual, once per minor)
scripts/eval-marker-protocol.mjs covers the returned-marker gate's local backend end to end. The tracker backend is deliberately not in CI: it needs a network, gh auth and a real issue, and a reliability plugin whose CI fails on GitHub API rate limits is worse than an honest gap. Run this by hand in a throwaway repo instead, once per minor:
Start from a repo that has never returned a source, so the returned label does not exist — that precondition is what hid a real bug through four earlier attempts (0.9.8).
- Real issue →
spec-executionreturns it → the label is created, applied, and a comment names the non-verifiable part. - Re-run against the still-marked issue → it refuses, and does not re-mark: one label, one comment, unchanged (a state, not a counter — ADR 0008). Run this leg between the return and the republish; do not re-mark a healed source just to watch the refusal, and if that window is missed, record it as not run rather than staging it.
- The republisher rewrites in place → the label is gone, a "rewritten" comment is there, and the issue number is unchanged so blocking edges survive.
- The same cycle with a ticket, where the clear belongs to
to-ticketsand notto-spec(the 0.9.3 ownership split). Note thatto-ticketsis user-invoked: the model cannot re-enter it, so in a fresh session the human must run the republisher. Inside one session the model may instead followto-tickets' text still in context — substantively the same act, but the ownership split then holds by accident of context rather than by construction. guidewith the marked issue → routes togrill, notspec-execution.
Last full run: 0.9.15, 2026-07-25 — all five legs proven against the real API across two fresh private repos. Leg 2 was closed last, on a second repo where the returned label again did not exist, so the create-then-apply path (0.9.8) was exercised twice by independent routes. The local backend's full cycle — including a refusal read by a session that had never seen the conversation — is proven separately against real files.
What CI does pin on the tracker side is nomenclature, not behaviour: the eval derives the label token from prose shared by all four gate skills and checks it against the local line token, so the two backends cannot drift apart by name. Only the API round-trip is manual.
Language
All shipped artifacts — SKILL.md, README.md, docs — are written in English.
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.

