manifest-dev
CLAUDE.md73 starsChanged 6 months agoMITView on GitHub
manifest-dev marketplace — manifest-driven workflows for Claude Code. /define interviews and writes a Manifest; /do executes it and makes every Acceptance Criterion and Global Invariant hold on fresh evidence. Ships skills, not custom agents. This repo is public. Everything committed or posted to it — docs, ADRs, READMEs, PR titles and descriptions, commit messages, issue text — must stand on its own merits. Keep out what a reader would be worse off for seeing: credentials and secrets, the contents of…
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- harden-task-fileSkill
- learn-from-sessionSkill
- sync-claude-code-pluginsSkill
- sync-toolsSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
16 rules. About 0 are common, 11 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Read before building plugins:
- Very specific: line 79
Naming convention: Use kebab-case (-) for all file and skill names (e.g., bug-fixer.md, clean-slop).
- Distinctive: line 123
When a skill needs to invoke another skill, use clear directive language:
- Distinctive: line 143
Agent audit: Read the skill/prompt the agent follows, identify every capability mentioned (explicit or implicit), verify all are declared …
- Very specific: line 163
When updating plugin files, bump that plugin's .claude-plugin/plugin.json:
- Distinctive: line 174
When adding agents or skills:
- Distinctive: line 175
Create the component file in the appropriate directory
- Distinctive: line 177
Update affected plugin's README.md and repo root README.md
- Very specific: line 178
Update plugin.json description/keywords if the new component adds significant capability
- Distinctive: line 185
README Guidelines: Keep READMEs high-level (overview, what it does, how to use).
- Distinctive: line 208
Read existing files for structural patterns — define's set (gates + Defaults) and figure-out's set (Blind-spot probes + Forced trade-offs) …
- Very specific: line 209
Update the relevant skill's own inline index in its SKILL.md (define/SKILL.md and/or figure-out/SKILL.md).
- Distinctive: line 210
If creating a base file, update overlay files to remove content that moved to the base.
- Very specific: line 215
Prefer cp and mv bash commands over the Write tool when duplicating or moving files.
- Distinctive: line 243
When the structural fix is out of reach of the change at hand, fix the instance and name the design that would close the class — don't ship …
- Distinctive: line 244
After fixing a bug, sweep for sibling instances of the same defect pattern before calling it done — the class includes the copies that …
≈ “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
CLAUDE.md
Project Overview
manifest-dev marketplace — manifest-driven workflows for Claude Code. /define interviews and writes a Manifest; /do executes it and makes every Acceptance Criterion and Global Invariant hold on fresh evidence. Ships skills, not custom agents.
Public Repository Discipline
This repo is public. Everything committed or posted to it — docs, ADRs, READMEs, PR titles and descriptions, commit messages, issue text — must stand on its own merits. Keep out what a reader would be worse off for seeing: credentials and secrets, the contents of private planning or strategy documents, anything personal, and links into chat sessions or transcripts nobody outside can open. Also skip commentary on the repo's own adoption or popularity (star counts, usage levels, traction) — a positioning choice, not a secrecy one.
Set the bar there and no lower. Incidental working detail is fine and not worth policing: a branch name, a local path, the name of a workflow mode, a note on how a change was produced. Treating those as exposure costs more than it protects. ADRs state decisions with their technical grounds, not the deliberation history behind them. Temporary ops documents are allowed when clearly marked, but must read as neutral, forward-looking operations content.
Development Commands
# Lint, format, typecheck, test
ruff check --fix claude-plugins/ tests/ && black claude-plugins/ tests/ && mypy && python3 -m pytest tests/
# Test plugin locally
/plugin marketplace add /path/to/manifest-dev
/plugin install manifest-dev@manifest-devtests/ asserts properties of the shipped prompts themselves — that gate examples use the current
schema, that mode mechanics stay out of the spine, and two host-neutrality invariants over every
shipped Markdown file: no file names a host primitive (a plugin qualifier outside an HTML comment,
a Claude Code tool name, CLAUDE.md outside a detection or comparison, "subagent" outside a
research digest), and every skill a shipped skill names ships beside it — never marked
metadata.internal, and user-invocable: false when it exists only to be called. Adding a skill,
a dimension, or a delegation site can therefore turn the suite red without any Python changing,
and that red is the signal working as intended. The same suite fails when dist/codex drifts from
the source tree it copies.
claude-plugins/manifest-dev/evals/ is a behavioral eval suite for figure-out, run with
claude plugin eval . --ablation with-without --judge-model sonnet --allow-tools Write Bash
from the plugin directory. It measures uplift — every case runs with the plugin and without
it, and the headline number is Δ, not pass rate — so a case both arms pass teaches nothing and is
removed. tests/ is a property suite that must stay green; the eval suite is a measurement whose
numbers go stale whenever a prompt it covers is edited, and its evals/README.md carries the
baseline, the held-out split, and — most importantly before trusting any result from it — how
much run-to-run noise it has. Read that section before using a Δ to justify a prompt change.
Foundational Documents
Read before building plugins:
- @NORTH_STAR.md - The project's standing direction: who it's for, the promise, what winning means
- @CONTEXT.md - Project language (Manifest, Deliverable, etc.) and relationships
- docs/LLM_CODING_CAPABILITIES.md - LLM strengths/limitations, informs workflow design
Project Surfaces
This project keeps its direction, vocabulary, and decision memory in the repo — shared ground for every contributor and agent, regardless of tooling.
The North Star is the standing direction. NORTH_STAR.md is imported above, so it is already in context; anchor on it scope, priority, outward-facing claims, and any call the work's own contract does not settle — a mid-run pivot, whether to act on a review comment, what to leave alone. Each position carries a dated state (evidence / hypothesis / ruled / empty): new evidence may lower a state, but a position changes only by the owner's call, recorded as a decision record. The full form is docs/NORTH_STAR_CONVENTIONS.md — it is self-contained.
The glossary is not optional reading. CONTEXT.md is imported above, so it is already in context. Where a harness does not support imports, read it at the start of every session before doing anything else. It exists to stop silent misreading, and nobody looks up a term they already believe they understand — which is why it is resident rather than referenced.
Read docs/adr/ before re-deciding something. Open the index at docs/adr/README.md when you are about to settle a question the project may already have settled, and when a change you are making contradicts or narrows an existing decision. Those two moments are the whole reason the corpus exists; outside them, leave it closed.
Writing a decision record is one act, not three — the record, the restatus, and the index, in one change. Step two is the one that gets dropped, and dropping any of them leaves the corpus asserting something untrue. Open docs/adr/CONVENTIONS.md before you start: it carries the bar, the template, and what each step actually requires.
Repository Structure
.claude-plugin/marketplace.json- Registry of all pluginsclaude-plugins/- Individual plugins, each with.claude-plugin/plugin.jsonpyproject.toml- Python tooling config (ruff, black, mypy)
Plugin skills load through the installed plugins. Edit their source under claude-plugins/; test local changes by installing this checkout as a plugin marketplace. dist/ is packaging: OpenCode and Pi read claude-plugins/*/skills, while dist/codex is regenerated by python3 scripts/sync_dist.py and checked for drift by the test suite.
Repository-local maintenance skills live under .claude/skills/ with matching .agents/skills/ symlinks. Published plugin skills have no entry in either local directory. tests/test_local_skill_symlinks.py checks this boundary and the maintenance links.
Plugin Components
Each plugin can contain:
agents/- Specialized agent definitions (markdown)skills/- Skills withSKILL.mdfiles (replaces deprecated commands)
Naming convention: Use kebab-case (-) for all file and skill names (e.g., bug-fixer.md, clean-slop).
Skills
Skills are the primary way to extend Claude Code. Each skill lives in skills/{skill-name}/SKILL.md.
Invocation modes:
- Auto-invoked: Claude discovers and invokes skills based on semantic matching with the description
- User-invoked: Users can explicitly invoke via
/skill-name(controlled byuser-invocablefrontmatter, defaults totrue) - Programmatic: Other skills can invoke skills by referencing them (e.g., "invoke the spec skill with arguments")
Skill frontmatter:
---
name: skill-name # Required: lowercase, hyphens, max 64 chars
description: '...' # Required: max 1024 chars, drives auto-discovery
user-invocable: true # Optional: show in slash command menu (default: true)
---Keep description on one physical line, however long it gets. Claude Code reads frontmatter leniently; Pi parses it with a strict YAML parser and drops the skill when the value does not parse — a startup warning names the file, but the skill is simply absent, and a Pi prompt template with the same fault is dropped with no diagnostic at all. A quoted value wrapped across lines parses only if its continuation lines are indented past the key, so a hard-wrapped description looks fine locally and disappears elsewhere, once per distribution copy. Two more shapes break the same way: an apostrophe inside a single-quoted value ends it early (double it — ''), and in an unquoted value : is read as a nested mapping while # opens a comment that silently truncates the value.
tests/test_skill_frontmatter.py fails any shipped SKILL.md — and any Pi prompt template, which loads through the same parser — carrying one of these. It enforces the convention rather than the YAML spec: a validly indented continuation and a block scalar both parse everywhere and are still refused, because one physical line is the rule. It also takes a closed key vocabulary — name, description, user-invocable, argument-hint, metadata — since an unrecognised key at column 0 is nearly always a wrapped value; adding a frontmatter key a CLI supports means adding it to KNOWN_KEYS in the same change.
A flag or a mode means progressive disclosure. When a skill grows a flag or a mode, what every invocation needs stays inline in SKILL.md, and that mode's mechanics move to a companion file under references/ loaded only when the mode resolves. Otherwise the default invocation — the one nobody passes a flag for, and the one most sessions run — carries the whole file to use a fraction of it.
The trigger stays in the loading layer. SKILL.md says which mode applies and what that mode loads; the deferred file never carries its own trigger, since it can only be read after the load the trigger was meant to gate. State it where a reader already looks for it — a Modes or What loads table beside the flags, the way figure-out/SKILL.md does.
Extraction is for bulk, not tidiness. A mode whose mechanics run to a paragraph stays inline: an indirection costs a load and a reader's place, and it can strand a trigger too subtle to survive the hop. Extract when a default invocation would otherwise carry substantial content it never reads — and when the alternative is restating one rule in two files that drift, prefer the restatement only where the files genuinely cannot reach each other. See docs/adr/20260703-progressive-disclosure-triggers-live-in-loading-layer.md.
A shipped skill stands alone — CONTEXT.md is not loaded where it runs. The glossary is resident in this repo's sessions because the context file imports it. A skill installed in someone else's project has none of that: it gets its own SKILL.md, whatever references its loading layer names, and nothing else. So every term a skill's behavior depends on is defined where the skill first uses it, and no shipped file defers a definition to the glossary, to another skill, or to a section a reader may never reach. figure-out's canonicalization of fog at first use is the pattern; a forward reference inside one always-loaded file is the mild version of the same fault and still worth a gloss.
Keep the two vocabularies apart. The workflow's own terms — Manifest, Deliverable, Acceptance Criterion, Global Invariant, Ticket — are the product's language and travel with it, defined at use wherever the exact meaning binds. The words this repo uses to reason about its prompts — Spine, Altitude, Re-host, Door, House — are maintainer vocabulary: they belong in CONTEXT.md, ADRs, and this file, not in anything under claude-plugins/ or dist/. A skill neither speaks them nor defines them.
None of this touches the user's own context file. Reading it, seeding it, and capturing into it are real skill behaviors — init-context installs one and figure-out's docs mode writes to it. Those name the project context file resolved by detection, never a fixed filename, and the file they mean is the user's, never this repo's.
Tool Definitions
Skills: Omit tools frontmatter to inherit all tools from the invoking context (recommended default).
Agents: Agents run in isolation and don't inherit tools from the invoking context. Declaring tools in frontmatter is optional — when omitted, the agent receives its default tool set.
Invoking Skills from Skills
When a skill needs to invoke another skill, use clear directive language:
Invoke the <plugin>:<skill> skill with: "<arguments>"Examples:
Invoke the manifest-dev:define skill with: "$ARGUMENTS"Invoke the manifest-dev:figure-out skill
Why: Vague language like "consider using the X skill" is ambiguous -- Claude may just read the skill file instead of invoking it. Clear directives like "Invoke the X skill" ensure the skill is actually called.
Common agent capabilities to declare in frontmatter:
- Running commands -> needs command execution tools
- Tracking progress -> needs todo/task management tools
- Writing files (logs, notes) -> needs file writing tools
- Invoking other skills -> needs skill invocation tools
- Spawning sub-agents -> needs agent spawning tools
- Searching files -> needs file search tools
Agent audit: Read the skill/prompt the agent follows, identify every capability mentioned (explicit or implicit), verify all are declared in frontmatter.
See each plugin's README for architecture details.
ADR Convention Ownership
docs/adr/CONVENTIONS.md is this project's ADR convention and governs here — the bar, the template and its Area field, naming, lifecycle, immutability, cross-references, and the index rebuild rules. Edit that file when the practice should change.
claude-plugins/manifest-dev/skills/figure-out/references/ADR_FORMAT.md is the plugin's shipped default, carrying the same content for projects that have no conventions file of their own; it also states the precedence rule. The two are kept in step — change one, change the other. figure-out's WITH_DOCS.md owns only cadence: when a session offers to record a decision. A project's conventions file has no say in cadence, and the plugin has no say in a project's conventions.
The same split holds for the North Star: docs/NORTH_STAR_CONVENTIONS.md is this project's convention and governs; claude-plugins/manifest-dev/skills/init-context/references/NORTH_STAR_FORMAT.md is the plugin's shipped default carrying the same content plus the installer-facing emission templates, and states the precedence rule. The two are kept in step — change one, change the other. Cadence (when a session offers a North Star update) stays with figure-out's docs mode.
Distributed skill files stay repo-agnostic — maintainer/governance notes like this one belong here, not in skill references or in docs/adr/CONVENTIONS.md or docs/NORTH_STAR_CONVENTIONS.md, which the init skill emits into other people's repositories.
Slicing Discipline Ownership
The rule that a slice must be exercisable end-to-end on its own — put in front of its real use rather than inspected as present — lives in two shipped skills: /define's Deliverable cutting and ticket-up's Ticket cutting (stated in both its SKILL.md and references/TICKET_CONVENTION.md). The duplication is deliberate: a shipped skill stands alone, and ticket-up authors Tickets from direct requests and figure-out handoffs that never pass through /define, so it cannot defer the rule there. Change one, change the others — a sharpening that lands in only one home leaves the other paths cutting by layer, which is the defect the rule exists to prevent. What the rule governs is where a cut falls, never how many Deliverables or Tickets come out; count stays with each skill's own unit test.
Versioning
When updating plugin files, bump that plugin's .claude-plugin/plugin.json:
- Patch (0.0.x): Bug fixes, typos
- Minor (0.x.0): New features, new skills/agents
- Major (x.0.0): Breaking changes
Pi has its own source-owned package version in the repo-root package.json (@doodledood/manifest-dev-pi). Bump it when changing Pi package metadata, the prompt templates under dist/pi/, or the skill directories it points at (including adding or removing a skill). The Codex plugin manifests under dist/codex/plugins/*/.codex-plugin/plugin.json carry the same version as their source plugin, and dist/opencode/plugin/package.json carries manifest-dev's.
README-only changes don't require version bumps.
Adding New Components
When adding agents or skills:
- Create the component file in the appropriate directory
- Bump plugin version (minor for new features)
- Update affected plugin's
README.mdand repo rootREADME.md - Update
plugin.jsondescription/keywords if the new component adds significant capability
README sync checklist (when adding/renaming/removing components):
README.md(root) - Available Plugins section, directory structureclaude-plugins/README.md- Plugin tableclaude-plugins/<plugin>/README.md- Component lists
README Guidelines: Keep READMEs high-level (overview, what it does, how to use). Avoid implementation details that require frequent updates -- readers can explore code for specifics.
Task Files
Task files provide domain-specific hints, kept as two parallel sets with different consumers:
/define's task files (skills/define/tasks/) carry Quality Gates (auto-encoded as INV-G*/AC-) and Defaults (auto-encoded as PG-, except one whose violation would be unsafe or irreversible, which routes to a Global Invariant) — encoder data for the manifest.- figure-out's task files (
skills/figure-out/tasks/) carry probing fuel — non-natural angles (## Blind-spot probes,## Forced trade-offs) that figure-out surfaces during understanding.
Each skill carries its own task-type detection index inline in its SKILL.md (not a separate tasks/README.md) and loads its own set. The two are deliberately decoupled so figure-out runs standalone — figure-out never reads define's task files, and vice versa.
Composition (within each set): base files provide domain-common content (e.g., CODING.md for code); overlay files add content-type specificity (FEATURE / BUG / REFACTOR compose onto CODING; in /define's set, BLOG / DOCUMENT compose onto WRITING, and Research composes research/RESEARCH.md with research/sources/).
/define content types:
- Quality gates (tables naming the aspect and threshold, plus a skill or reference only when the evaluation needs one) — auto-included as INV-G*/AC-* by
/define. Omitted with logged reasoning if clearly inapplicable, or — advisory-tier gates only — on/define's bearer test (the dimension's findings would have no bearer on the manifest's surface; the reasoning names the missing bearer as a fact). User reviews manifest. - Defaults (
## Defaultssection) — included in the manifest as PG-* without probing; user reviews. A Default whose violation would be unsafe or irreversible routes to a Global Invariant instead, so it binds. - Reference files (
references/*.md) — lookup data for gate evaluators. Not loaded during/define.
A define task-file item belongs in exactly one type: if you can verify it from the output, it's a Quality Gate; if it's a non-verifiable process practice, it's a Default. A safety rule whose violation would be unsafe or irreversible is a Default even when it is verifiable — a Quality Gate ships the gate text the task file authors, written with no sight of the repo, the branch, or the run, while a Default routed by /define gets its invariant written with that context. Don't prescribe manifest encoding (PG vs INV vs AC) in task files — that's /define's job.
figure-out probe content: angles to check, not instructions for how to do the work — each phrased as the question that opens a branch. Non-natural only: include a probe only if the model skips it by default (don't restate what a capable model raises unprompted). Keep files terse so they read as awareness, not an agenda to complete.
When creating/modifying task files:
- Read existing files for structural patterns — define's set (gates + Defaults) and figure-out's set (Blind-spot probes + Forced trade-offs) differ.
- Update the relevant skill's own inline index in its
SKILL.md(define/SKILL.mdand/orfigure-out/SKILL.md). - If creating a base file, update overlay files to remove content that moved to the base.
- Bump plugin version, update READMEs per sync checklist.
File Operations
Prefer cp and mv bash commands over the Write tool when duplicating or moving files. Much faster for large files. Use Edit after cp/mv if changes are needed.
Before PR
# Lint, format, typecheck, test
ruff check --fix claude-plugins/ tests/ && black claude-plugins/ tests/ && mypy && python3 -m pytest tests/Bump plugin version if plugin files changed.
Taste
Ratified steering preferences for this repo. Each states the preference, why it holds, and when it should yield — weigh them rather than obey them.
- Default manifests here to no PR-lifecycle gates. Pull requests in this repo run no CI and have a single maintainer as the only reviewer, so lifecycle criteria spend verification effort on nothing. Include them once a pull request carries required status checks, or a reviewer whose approval gates the merge.
- Prototype renderings ship as Artifacts where the harness offers them. When a session renders a disposable draft for reaction — figure-out's prototyping, or any render-to-react flow — publish it as an Artifact page rather than loose .md/.html files: in remote and web sessions loose files are hard to open, and a page the user can actually look at is the whole point of rendering. Yield to a plain file when the session has no Artifact capability, or when the user asks for the file itself.
Coding Conventions
Solution design
In any domain — code, process, tooling, docs, prompts — prefer the design that prevents a class of problems over the quick one that merely works today. And treat every problem you touch as one you should not meet again: leave the system so that class of problem cannot return, or costs less when it does.
- The cheapest class of bugs to prevent is the code never written — before designing, ask whether the requirement itself is needed, and say so when it isn't.
- Design so a class of bugs cannot occur, whether or not one has occurred yet: illegal states unrepresentable, the invariant enforced where it cannot be bypassed, one source of truth instead of two that can disagree. This is the default for new code as much as for a fix — the design that closes the class beats the patch that handles the instance in front of you.
- Among designs that close the class, take the one with the fewest moving parts and the least hidden coupling — unless the user asks to optimize for a different priority. Machinery heavier than the class it closes is over-engineering, not design.
- Fail loud. No fallback, catch-and-continue, or default value that masks a failure unless degraded operation is explicitly wanted — silent wrong behavior costs more than a crash.
- When the structural fix is out of reach of the change at hand, fix the instance and name the design that would close the class — don't ship the patch as if it settled the matter.
- After fixing a bug, sweep for sibling instances of the same defect pattern before calling it done — the class includes the copies that already shipped.
- A rule that lives as a sentence someone must remember is a check waiting to be written — when a convention can be enforced by a type, lint, test, or CI gate, propose the enforcement. Price it like any machinery: worth building where failure is expensive or the surface is shared, not on a solo surface already verified locally.
- A new dependency is a recurring cost, not a one-time one — prefer the standard library or what the repo already uses, and justify any addition.
- Clean the touched area enough for a durable fix; propose broader refactors separately.
What counts as verified
- Evidence ranks: unit/integration tests > a written verification script > manual checking. Prefer targeted checks to full-suite reruns, and exhaust the automated options before asking the user to verify by hand.
- Code with existing test files gets its tests added or updated there, covering the layers the change actually touches — unit and integration where both apply.
- For e2e or integration work, write the verification script inline when feasible.
- Say plainly what you did not verify.
Git and pull requests
- Conventional commits:
feat:,fix:,chore:,docs:,refactor:,test:. Branchesfeature/*,fix/*unless the project says otherwise. - Prefer several coherent medium PRs to one monolith when the work naturally splits. Slice vertically — one feature stage end-to-end, handler + service + entity + tests — not horizontally, where each slice carries no logic of its own and only makes sense combined. Small mechanical changes (renames, config, migrations, boilerplate) ride along with the logic that needs them; a sweeping mechanical refactor can still earn its own PR for reviewability. Don't grow a PR past its natural scope — split instead.
- Open PRs substantially complete. The title names the real scope — the workflow and modules touched, not the immediate symptom. The description leads with what the change does and why it needed this design — the cross-module flow, the non-obvious decisions, the invariants preserved — not a file-by-file list.
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.

