agentleFS
assisjpassisjp/specflow/CLAUDE.md

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

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

    Every promoted skill also gets a human-facing page at docs/<bucket>/<name>.md, mirroring the two promoted bucket folders.

    line 31
  2. Very specific:

    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.

    line 48
  3. Very specific:

    Keep .claude-plugin/plugin.json and .codex-plugin/plugin.json versions in sync with package.json.

    line 52
  4. Very specific:

    After touching either manifest, run claude plugin validate .

    line 53
  5. Very specific:

    After touching the Codex manifest or marketplace, run python3 …

    line 54
  6. Very specific:

    After changing a promoted skill, run node scripts/check.mjs.

    line 55
  7. Very specific:

    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 …

    line 62
  8. Very specific:

    All shipped artifacts — SKILL.md, README.md, docs — are written in English.

    line 76

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

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

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 work
  • productivity/ — non-code workflow tools
  • in-progress/ — drafts not ready to ship
  • misc/ — kept but not promoted
  • personal/ — tied to one person's setup
  • deprecated/ — 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:

  1. A folder skills/<bucket>/<name>/ containing SKILL.md, where the folder name equals the name: in the frontmatter.
  2. An entry in the top-level README.md, with the skill name linked to its SKILL.md, grouped under User-invoked or Model-invoked.
  3. An entry in .claude-plugin/plugin.json's skills array (./skills/<bucket>/<name>).
  4. An agents/openai.yaml with Codex UI metadata. User-invoked skills set policy.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.md and docs/adr/ are owned by domain-modeling. No other skill creates or edits them.
  • The verification block — in the repo's agent-context file (AGENTS.md or CLAUDE.md, per ADR 0003) — is owned by repo-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 under docs/specs/ (owned by to-spec), local tickets under docs/tickets/ (owned by to-tickets), evidence under docs/evidence/ (owned by spec-execution, and only when there is no tracker to attach it to). Ownership governs the body: spec-execution may 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 — only session-handoff writes there (.scratch/handoffs/), and it guarantees the .gitignore entry 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.json and .codex-plugin/plugin.json versions in sync with package.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.mjs verifies a docs page exists, not that its content matches the SKILL.md — content drift is a bug class CI cannot catch. Every version bump that touches a SKILL.md must re-read the corresponding docs/<bucket>/<name>.md and 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).

  1. Real issue → spec-execution returns it → the label is created, applied, and a comment names the non-verifiable part.
  2. 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.
  3. The republisher rewrites in place → the label is gone, a "rewritten" comment is there, and the issue number is unchanged so blocking edges survive.
  4. The same cycle with a ticket, where the clear belongs to to-tickets and not to-spec (the 0.9.3 ownership split). Note that to-tickets is 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 follow to-tickets' text still in context — substantively the same act, but the ownership split then holds by accident of context rather than by construction.
  5. guide with the marked issue → routes to grill, not spec-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.

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.