agent-flow
CLAUDE.md8 starsChanged 17 days agoMITView on GitHub
This repo is the source of the agent-flow Claude Code plugin. You are usually working on the plugin here, not running it. (AGENTS.md at the repo root is Codex's review checklist for this repo — not instructions for you.) Use uvx for Python CLI tools rather than pip install. agent-flow is often installed as a plugin in the same session you're editing it from, so its own hooks and agents govern the session. Auto mode may block edits to hooks/hooks.json,…
- Installs packages
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-behavior-constraintsSkill
- agentsview-usageSkill
- evidence-driven-workSkill
- explainer-design-systemSkill
- exploration-strategySkill
- graphify-usageSkill
- personal-kb-usageSkill
- prompt-refinementSkill
- skill-agent-mappingSkill
- task-classificationSkill
- verification-gatesSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Use uvx for Python CLI tools rather than pip install.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 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
agent-flow — development guide
This repo is the source of the agent-flow Claude Code plugin. You are usually
working on the plugin here, not running it. (AGENTS.md at the repo root is Codex's review
checklist for this repo — not instructions for you.)
Layout
agents/*.md— the six personas (Riko, Senku, Loid, Lawliet, Alphonse, Speedwagon); frontmatter sets model, effort, tools, skillscommands/*.md—/orchestrate,/deep-dive,/explain,/analyze, deprecated/team-orchestrateworkflows/implement-review-verify.js—/orchestratePhases 3–5 as a plugin workflow (deterministic round cap, parallel review, verdict reconciliation)skills/*/SKILL.md+references/— knowledge skills; branch-only detail moved out oforchestrate.mdlives in these referenceshooks/hooks.json+hooks/scripts/— validate-changes (PreToolUse), verify-completion (Stop), log-event (observability, async), refine-prompt-gatescripts/— state init/update, Codex dispatch, gitignore management, analyze, teststemplates/codex/review-rubric.md— the Codex co-review rubric inlined into every review prompt.claude-plugin/plugin.json(incl.mcpServers) andmarketplace.json;docs/is the mkdocs site
Checks to run before committing
bash scripts/validate-plugin.sh # runs all sub-suites below
bash hooks/scripts/test-verify-completion.sh
bash scripts/test-dispatch-codex-review.sh
node scripts/test-implement-review-verify.js # workflow scenarios (mocked runtime)
(cd hooks/scripts && python3 -m unittest -q test_log_event)
claude plugin validate --strict .claude-plugin/plugin.json && claude plugin validate --strict .
uvx --with mkdocs-material mkdocs build --strict -q -d /tmp/agent-flow-siteUse uvx for Python CLI tools rather than pip install.
Conventions
- Keep contracts in sync. A rule usually lives in several places: the agent file,
commands/orchestrate.md, the workflow script, a skill reference, anddocs/. When you change one (e.g. a verdict format, a phase rule, a hook's output), grep for the others and update them in the same change. - Workflow behavior changes need a scenario in
scripts/test-implement-review-verify.js. Workflow scripts can't useDate.now(),Math.random(), arglessnew Date(), orimport(), andexport const metamust stay a pure literal. - Hook output: PreToolUse denies via
hookSpecificOutput.permissionDecision: "deny"(nevercontinue: false); Stop hooks stay silent unless blocking (sole exception: the{systemMessage}bypass notice when.claude/skip-test-verificationexists); stdout must be a single JSON object, so tool output goes to stderr. - Shell: scripts must run on macOS
/bin/bash3.2 and BSD tools — guard empty arrays underset -u, avoidmapfile, GNU-only flags, andsed -iwithout''. - Prompts for agents: state the rule and why it matters rather than using all-caps
NEVER/MUST; keep self-checks to the few mistakes a role actually makes; keep parse-critical output formats (verdict lines,<escalation>blocks,file:linefindings) unchanged unless every consumer is updated. - Versioning:
scripts/bump-version.sh --minor|--patchupdatesplugin.json,marketplace.json,docs/index.md, andCHANGELOG.md; curate the generated changelog section rather than keeping the raw commit dump.
Working in auto mode
agent-flow is often installed as a plugin in the same session you're editing it from, so its own hooks and agents govern the session. Auto mode may block edits to hooks/hooks.json, agents/, or commands/ as self-modification — ask the user to allow those paths instead of working around the block. The installed copy lives in ~/.claude/plugins/cache/; changes here take effect only after a version bump and reinstall.
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.

