flow
Skill79 starsChanged 4 months agoMITView on GitHub
Unified end-to-end development workflow - creates a feature (GitHub issue, branch, Gherkin acceptance criteria), implements it in an isolated subagent via ATDD, verifies, checkpoints (commit/push/PR), and merges. Use for implementing features, fixing bugs, batch-processing a feature backlog, or planning implementations.
- Commits and pushes
33 other projects use a version of this.
Adopted by
Most recently taken up by
- phuthuycoding/kanban-flowtheir own version, first seen Nov 8, 2026
- baodhg/FLOWtheir own version, first seen Nov 8, 2026
- jocarrd/crux-agentstheir own version, first seen Nov 8, 2026
- cofin/flowtheir own version, first seen Nov 7, 2026
- retospect/precis-mcptheir own version, first seen Nov 6, 2026
- luckys/agent-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use grill, implement and 5 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
renatorozasSkillgrill
Adversarial code review. Don't let me ship until the changes pass your scrutiny.
Also in 3 projects that use this
Hugging FaceSkillimplement
Make tests pass. Invoke after /write-tests produces failing tests.
Also in 5 projects that use this
SentrySkillreview
Fixture review skill.
Also in 6 projects that use this
AnthropicSkillstatus
Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 3 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
Other versions33 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 33
- react/react★ 252ksame name
- facebook/react★ 252ksame name
- software-mansion/react-native-audio-api★ 856same name
- simota/agent-skills★ 96same name
- rainday/smart-blog-skills★ 35same name
- cofin/flow★ 19same name
- basezh/agent-skills-on-base★ 15same name
- retospect/precis-mcp★ 11same name
- foryouself83/harness-tier★ 10same name
- manhquydev/flow-skill★ 9same name
23 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- checkpointSkill
- mergeSkill
- prd-breakdownSkill
- setupSkill
- startSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
32 rules. 0 are common, 12 are distinctive, and 20 are very specific to this project.
0
Common
Most of the 26 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
20
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
All workflows run through this single entry point with flags:
- Very specific: line 66
Read ${CLAUDE_SKILL_DIR}/references/team-atdd.md for full Agent Teams ATDD details.
- Very specific: line 68
Read .claude-harness/config.json agentTeams section: verify enabled is true.
- Very specific: line 75
When --autonomous is set, the flow operates as a lean orchestrator loop that iterates all active features.
- Very specific: line 77
Read ${CLAUDE_SKILL_DIR}/references/autonomous-wrapper.md for the full autonomous orchestration phases (A.1 through A.7).
- Distinctive: line 86
Clean token budget: No context waste from previous features
- Very specific: line 89
Team containment: When --team is used, the Agent Team lifecycle is fully contained within the subagent
- Distinctive: line 90
No manual /clear needed: After feature completion, the main context is clean
- Distinctive: line 104
GitHub repo: use the cached owner/repo from the session context (injected at SessionStart).
- Distinctive: line 124
Use cached GitHub owner/repo from Phase 1.
- Very specific: line 126
Generate feature ID: Read active.json, find highest ID, generate next feature-XXX.
- Very specific: line 129
If feature has existing acceptanceCriteria (from PRD breakdown): use those
- Very specific: line 144
Skip this phase: if --plan-only or --autonomous.
- Very specific: line 146
After feature creation, delegate the remaining lifecycle to an isolated subagent for clean context.
- Very specific: line 152
Read the result file (fallback: parse RESULT: from the subagent's reply)
- Distinctive: line 162
Query procedural memory: Check past failures/successes.
- Distinctive: line 172
Create task chain (6 tasks): Research -> Plan -> Implement -> Verify -> Accept -> Checkpoint
- Very specific: line 180
Read ${CLAUDE_SKILL_DIR}/references/team-atdd.md for full team roster and ATDD spawn prompts.
- Very specific: line 188
If --plan-only: display plan summary (feature ID, issue, branch) with resume command and EXIT.
- Very specific: line 194
Read ${CLAUDE_SKILL_DIR}/references/implementation.md for full implementation details including loop state schema, standard vs team …
- Distinctive: line 200
Run verification commands after implementation
- Very specific: line 204
Read ${CLAUDE_SKILL_DIR}/references/team-atdd.md for full ATDD team implementation including team creation, monitoring, shutdown gate, and …
- Very specific: line 208
Fail: write a Failure concept to ${MEMORY_DIR}/failures/ (+ index.md line), increment attempts, retry
- Very specific: line 209
Pass: write a Success concept to ${MEMORY_DIR}/successes/ (+ index.md line), mark loop "completed", update tasks
- Very specific: line 219
Update .claude-harness/claude-progress.json with session summary
- Very specific: line 224
Commit, push (git push -u origin {branch}), create/update PR via gh pr create / gh pr edit
- Distinctive: line 230
Only proceeds if PR approved and CI passes.
- Very specific: line 232
Check PR status: gh pr view {number} --json state,mergeable,reviewDecision,statusCheckRollup
- Very specific: line 233
If ready: gh pr merge {number} --squash --delete-branch, close issue if not auto-closed (gh issue close {issueNumber}), update status to …
- Distinctive: line 234
If needs review: display PR URL with resume/merge commands
- Distinctive: line 250
If marker matches: display recovery banner, present options (FRESH APPROACH / RETRY SAME / RESET)
- Distinctive: line 251
In autonomous: always FRESH APPROACH
“Common” is measured: kept by at least 6 in 10 of the 26 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Flow - Unified Development Workflow
The single command for all development workflows. Handles the entire feature lifecycle from creation to merge.
Arguments: $ARGUMENTS
Session ID: ${CLAUDE_SESSION_ID} — session state lives in .claude-harness/sessions/${CLAUDE_SESSION_ID}/.
Overview
All workflows run through this single entry point with flags:
/claude-harness:flow "Add dark mode support" # Standard workflow
/claude-harness:flow --autonomous # Batch process all features
/claude-harness:flow --plan-only "Big refactor" # Plan only, implement later
/claude-harness:flow --team "Add user login" # ATDD with Agent Team (3 teammates)Lifecycle: Context -> Creation -> [Subagent Delegation] -> Planning -> Implementation -> Verification -> Checkpoint -> Merge -> [Result Processing]
Context Isolation: In standard mode, Phases 3-6 run inside an isolated subagent (via the Agent tool, subagent type claude-harness:harness-implementer). The main context stays clean after feature completion -- no /clear needed between features.
ATDD Team Lifecycle (with --team): Context -> Creation (with Gherkin criteria) -> [Subagent Delegation] -> Planning -> Team Spawn -> Acceptance Tests (RED) -> Implementation (GREEN) -> Review -> Verify -> Checkpoint -> Merge
Retry Policy
Each delegated subagent gets at most 4 implementation attempts. If it escalates, the orchestrator spawns a fresh subagent (clean context) seeded with the failure summary from the previous delegation -- up to 3 delegations per feature (12 attempts total). A fresh context with distilled failure knowledge outperforms a degraded context grinding through attempt 15.
Phase 0.1: Argument Parsing
- Parse arguments:
- Empty: Show interactive menu for feature selection
- Matches
feature-\d+: Resume existing feature - Matches
fix-feature-\d+-\d+: Resume existing fix --fix <feature-id> "description": Create fix linked to feature- Otherwise: Create new feature from description
- Parse options:
--no-merge: Skip merge phase (stop at checkpoint)--quick: Implement directly without planning phase--plan-only: Stop after Phase 3. Resume later with feature ID.--autonomous: Outer loop -- iterate all active features--team: Use Agent Teams for ATDD implementation (requiresagentTeams.enabledin config.json)
- Mode validation:
--autonomous: Compatible with--no-merge,--quick, and--team. Proceed to Autonomous Wrapper.--plan-only: Proceeds through Phases 0-3 then STOPS. Incompatible with--team.--team: Compatible with--autonomous,--no-merge. Incompatible with--quickand--plan-only.
Phase 0.2: Team Preflight (if --team)
Read ${CLAUDE_SKILL_DIR}/references/team-atdd.md for full Agent Teams ATDD details.
- Read
.claude-harness/config.jsonagentTeamssection: verifyenabledistrue. If not: display "Enable agentTeams in config.json" and STOP. - Cache team config:
defaultTeamSize,roles,requirePlanApproval,teammateModel
Autonomous Wrapper (if --autonomous)
When --autonomous is set, the flow operates as a lean orchestrator loop that iterates all active features. Each feature is executed in an isolated subagent context via the Agent tool.
Read ${CLAUDE_SKILL_DIR}/references/autonomous-wrapper.md for the full autonomous orchestration phases (A.1 through A.7).
Tip: for fully unattended batches, run the session as claude --permission-mode acceptEdits -- the PermissionRequest hook then only has to arbitrate the rare dangerous operations.
Context Isolation (All Modes)
Both standard and autonomous modes delegate feature implementation to the claude-harness:harness-implementer subagent via the Agent tool (fall back to general-purpose if the type is unavailable). This provides:
- Fresh context window: Each feature starts with zero accumulated context
- Clean token budget: No context waste from previous features
- Contained failures: A failing feature's debugging context does not pollute the next feature
- Memory continuity: Orchestrator persists memory updates between features
- Team containment: When
--teamis used, the Agent Team lifecycle is fully contained within the subagent - No manual /clear needed: After feature completion, the main context is clean
Standard mode (Phase 2.5): Single feature delegated after creation. Autonomous mode (Phase A.4): Multiple features delegated in a loop.
Phase 1: Context Compilation (Auto-Start)
- Set paths:
FEATURES_FILE=".claude-harness/features/active.json"MEMORY_DIR=".claude-harness/memory/"ARCHIVE_FILE=".claude-harness/features/archive.json"
- GitHub repo: use the cached owner/repo from the session context (injected at SessionStart). Only if absent, parse once from
git remote get-url origin. - Read IN PARALLEL (single message, multiple Read calls): active.json plus the memory bundle index files
${MEMORY_DIR}/failures/index.md,${MEMORY_DIR}/successes/index.md,${MEMORY_DIR}/decisions/index.md,${MEMORY_DIR}/rules/index.md(then read only the relevant concept files) - Compile working context to
.claude-harness/sessions/${CLAUDE_SESSION_ID}/context.json:{ "version": 3, "computedAt": "{ISO}", "sessionId": "${CLAUDE_SESSION_ID}", "github": { "owner": "{owner}", "repo": "{repo}" }, "activeFeature": null, "relevantMemory": { "recentDecisions": [], "projectPatterns": [], "avoidApproaches": [], "learnedRules": [] } } - Display context summary: memory stats, GitHub info.
Phase 2: Feature Creation
Use cached GitHub owner/repo from Phase 1.
- Generate feature ID: Read active.json, find highest ID, generate next
feature-XXX. - Define acceptance criteria (ATDD -- always on):
- If feature has existing
acceptanceCriteria(from PRD breakdown): use those - Otherwise: generate Gherkin acceptance criteria from feature description
- Format as structured Gherkin:
{ "scenario", "given", "when", "then" } - Aim for 2-5 scenarios covering: happy path, error cases, edge cases
- If feature has existing
- Create GitHub Issue via
gh issue create --title "{name}" --label "feature,claude-harness,flow" --body "{Problem/Solution/Acceptance Criteria (Gherkin)/Verification}". STOP if it fails (checkgh auth status). - Create and checkout branch locally:
git checkout -b feature/feature-XXX(no API round-trip; the branch reaches the remote on firstgit push -u origin feature/feature-XXX). - Create feature entry in active.json: id, name, status "in_progress", acceptanceCriteria, github refs, verificationCommands, maxAttempts 12.
Phase 2.5: Context Isolation (Standard Mode)
Skip this phase if --plan-only or --autonomous.
After feature creation, delegate the remaining lifecycle to an isolated subagent for clean context. Read ${CLAUDE_SKILL_DIR}/references/implementation.md for the delegation prompt format and result processing logic.
Summary:
- Compile subagent prompt (feature entry, verification commands, memory, GitHub info, flags, result file path)
- Delegate via Agent tool with
subagent_type="claude-harness:harness-implementer" - Subagent runs Phases 3-6 autonomously in fresh context and writes its result file
- Read the result file (fallback: parse
RESULT:from the subagent's reply) - Process result: archive on success, persist memory, clean up branches; on
escalated, re-delegate a fresh subagent (max 3 delegations) - Skip to Phase 7
Phase 3: Planning (unless --quick)
Note: In standard mode, this phase runs inside the delegated subagent. It only runs inline when --plan-only is set.
- Query procedural memory: Check past failures/successes. Warn if planned approach matches past failure.
- Analyze requirements: Break down, identify files, calculate impact.
- Generate plan: Store in feature entry or session context.
Phase 3.5: Create Task Breakdown
Uses Claude Code's native task tracking (TaskCreate/TaskUpdate) for visual progress.
- Create task chain (6 tasks): Research -> Plan -> Implement -> Verify -> Accept -> Checkpoint
- Each blocked by previous. Store IDs in loop-state.
- Mark Task 1 as in_progress.
Phase 3.7: Team Roster (if --team)
Read ${CLAUDE_SKILL_DIR}/references/team-atdd.md for full team roster and ATDD spawn prompts.
Summary: Prepare team structure with tester, implementer, reviewer roles. Prepare ATDD spawn prompts for each role.
Phase 3.8: Plan-Only Gate (if --plan-only)
If --plan-only: display plan summary (feature ID, issue, branch) with resume command and EXIT.
Phase 4: Implementation
Read ${CLAUDE_SKILL_DIR}/references/implementation.md for full implementation details including loop state schema, standard vs team implementation, and verification.
Standard (no --team):
- Branch verification: STOP if on main/master
- Initialize loop state (canonical Loop-State Schema v9)
- Implement feature following ATDD: acceptance tests first (RED), implement to pass (GREEN), refactor
- Run verification commands after implementation
- On failure: record a Failure concept file to
${MEMORY_DIR}/failures/, increment attempts, retry with a different approach (max 4 per delegation)
Team (--team):
Read ${CLAUDE_SKILL_DIR}/references/team-atdd.md for full ATDD team implementation including team creation, monitoring, shutdown gate, and cleanup.
Phase 4.1: Verification and Memory Updates
- Fail: write a Failure concept to
${MEMORY_DIR}/failures/(+ index.md line), increment attempts, retry - Pass: write a Success concept to
${MEMORY_DIR}/successes/(+ index.md line), mark loop "completed", update tasks - Escalation (max attempts): show summary, offer options. Do NOT checkpoint.
Phase 5: Auto-Checkpoint
Triggers when verification passes. Read ${CLAUDE_SKILL_DIR}/references/checkpoint.md for detailed checkpoint phases.
Summary:
- Update
.claude-harness/claude-progress.jsonwith session summary - Compile session briefing to
.claude-harness/session-briefing.md - Persist to all memory layers (episodic, semantic, procedural)
- Auto-reflect on user corrections
- Persist orchestration memory
- Commit, push (
git push -u origin {branch}), create/update PR viagh pr create/gh pr edit
Phase 6: Auto-Merge (unless --no-merge)
Only proceeds if PR approved and CI passes.
- Check PR status:
gh pr view {number} --json state,mergeable,reviewDecision,statusCheckRollup - If ready:
gh pr merge {number} --squash --delete-branch, close issue if not auto-closed (gh issue close {issueNumber}), update status to "passing", archive feature - If needs review: display PR URL with resume/merge commands
- Final cleanup: switch to main, pull, delete local feature branch (
git branch -d), prune refs, clear loop state
Phase 7: Completion Report
- Clean up tasks (all 6 should be completed).
- Display final status: feature ID, description, issue (closed), PR (merged), tasks 6/6, attempts, duration, memory updates.
Resume Behavior
/claude-harness:flow feature-XXX:- Check interrupt recovery (priority): Read
.claude-harness/sessions/.recovery/interrupted.json - If marker matches: display recovery banner, present options (FRESH APPROACH / RETRY SAME / RESET)
- In autonomous: always FRESH APPROACH
- If no marker: resume from feature status:
pending-> Phase 3,in_progress-> Phase 4,needs_review-> Phase 6,passing-> already complete
- Check interrupt recovery (priority): Read
Error Handling
- GitHub/
ghfailures: Retry with exponential backoff. If persistent (auth, network): pause and inform user (gh auth status). - Verification failures: Record to procedural memory, try alternative, escalate after max attempts.
- Merge conflicts: Inform user, offer rebase or manual resolution.
Quick Reference
| Command | Behavior |
/flow "Add X" | Full lifecycle with context isolation: implement -> verify -> checkpoint -> merge |
/flow feature-XXX | Resume existing feature from current phase |
/flow --no-merge "Add X" | Stop at checkpoint |
/flow --quick "Simple fix" | Skip planning, implement directly |
/flow --plan-only "Big feature" | Plan only, implement later |
/flow --fix feature-001 "Bug" | Create and complete a bug fix |
/flow --autonomous | Batch process all features |
/flow --autonomous --no-merge | Batch, stop at checkpoint |
/flow --autonomous --quick | Autonomous without planning |
/flow --team "Add X" | ATDD with Agent Team: tester + implementer + reviewer |
/flow --team --no-merge "Add X" | Team ATDD, stop at checkpoint |
/flow --team --autonomous | Teams for each feature in autonomous batch |
Flag combinations: --no-merge --plan-only (plan before implementing), --autonomous --no-merge --quick (fast batch without merge), --team --autonomous --no-merge (team ATDD batch without merge)
When to Use Each Mode
| Mode | Use Case |
Default (/flow "desc") | Standard feature development (context-isolated via subagent) |
--no-merge | Review PR before merging |
--plan-only | Complex features needing upfront design |
--quick | Simple fixes -- skips planning |
--autonomous | Batch processing feature backlog unattended |
--team | Complex features benefiting from parallel review + ATDD |
--team --autonomous | High-quality batch processing with code review |
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.

