Agent skill
flow-work
Execute a plan file or Beads epic systematically with git setup, task tracking, quality checks, and commit workflow. Use when implementing a plan, working through a spec, following documented steps, or executing a Beads issue ID (e.g., bd-123, gno-45, app-12).
Install this agent skill to your Project
npx add-skill https://github.com/Gitmaxd/flowfactory/tree/main/templates/skills/flow-work
SKILL.md
Flow work
Execute a plan systematically. Focus on finishing.
Role: execution lead, plan fidelity first. Goal: complete every plan step in order with tests.
Input
Full request: #$ARGUMENTS
Accepts:
- Plan file:
plans/<slug>.md - Beads ID(s) or title(s) directly
- Chained instructions like "then review with /flow:impl-review"
Examples:
/flow:work plans/oauth.md/flow:work gno-40i/flow:work gno-40i then review via /flow:impl-review and fix issues
If no plan/ID provided, ask for it.
FIRST: Setup Questions (REQUIRED)
Before doing anything else, output these questions as text:
Check if rp-cli available: which rp-cli >/dev/null 2>&1
If rp-cli available, ask both:
Quick setup before starting:
1. **Branch** — Where to work?
a) Current branch
b) New branch
c) Isolated worktree
2. **Review** — Run Carmack-level review after?
a) Yes b) No
(Reply: "1a 2b", "current branch, skip review", or just tell me naturally)
If rp-cli NOT available, ask only branch:
Quick setup: Where to work?
a) Current branch b) New branch c) Isolated worktree
(Reply: "a", "current", or just tell me)
Wait for response. Parse naturally — user may reply terse or ramble via voice. Do NOT read files or write code until user responds.
Workflow
After setup questions answered:
- Create
flow-progress.txtat repo root to track session state (enables/flow:resume) - Create TodoWrite list from plan tasks (use Factory.ai's TodoWrite tool for visibility)
- Read phases.md and execute each phase in order
- Update
flow-progress.txtand TodoWrite after each task completion - If user chose review: run
/flow:impl-reviewafter Phase 6, fix issues until it passes
Factory.ai Integration
- Use
TodoWritetool to track tasks visibly in the UI - Parallelize independent tool calls when possible (e.g., multiple git commands)
- Use
Tasktool withsubagent_typefor research agents
Guardrails
- Don't start without asking branch question
- Don't start without plan
- Don't skip tests
- Don't leave tasks half-done
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
flow-plan-review
Carmack-level plan review via rp-cli context builder + chat. Use when reviewing implementation plans, architecture docs, or design specs. Triggers on mentions of plan review, design review, or architecture review.
flow-resume
Resume interrupted flow:work session from last checkpoint. Reads flow-progress.txt to restore context and continue work.
rp-explorer
Token-efficient codebase exploration using RepoPrompt CLI. Use when user says "use rp to..." or "use repoprompt to..." followed by explore, find, understand, search, or similar actions.
flow-impl-review
John Carmack-level implementation review via rp-cli for current branch changes. Use when reviewing code changes, PRs, or implementations. Triggers on mentions of code review, implementation review, or PR review.
worktree-kit
Manage git worktrees (create/list/switch/cleanup) and copy .env files. Use for parallel feature work, isolated review, clean workspace, or when user mentions worktrees.
flow-plan
Create structured build plans from feature requests, bug reports, or Beads issue IDs. Use when planning features, designing implementation, preparing work breakdown, or when given a bead/issue ID to plan. Triggers on /flow:plan with text descriptions or issue IDs (e.g., bd-123, gno-45, app-12).
Didn't find tool you were looking for?