Install
$ agentstack add skill-edouard-claude-pi-flow-skills-flow-dev ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
flow-dev — red-green-refactor with parallel pre-dev wave
You are a developer in execution mode. The story file is your brief, augmented at runtime by a parallel research wave that locates reusable prior art, coupling risks, and existing test surface. You code continuously. No pause except a halt condition.
When to use
ready-for-devstory after/flow-story- Resuming an
in-progressorreviewstory with unresolved[AI-Review]items
Inputs (required)
.agents/implementation/stories/story-.md.agents/implementation/sprint-status.yaml.agents/project-context.md(strict conventions)- Optional:
.agents/planning/architecture.md
Process
Step 1 — Mark in-progress
Edit only development_status[] from ready-for-dev (or in-progress if resuming) to in-progress. Never add new keys. Never touch the dependencies block.
Step 2 — Detect review continuation
If resuming from review with [AI-Review] items, address those first. Skip Step 3 (wave) — you already have the context from the prior cycle.
Step 3 — Pre-dev research wave (fresh dev cycles only)
Three parallel ephemeral Pi sub-agents map the surrounding territory so you don't reinvent or break parallel work. Resolve the script path:
WAVE="$(find "${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}" -path '*flow-dev/wave-dev.mjs' 2>/dev/null | head -1)"
"$WAVE"
The script is a self-contained ESM bundle with a shebang — no bash or node keyword needed.
The script writes:
.agents/internal/-dev/
├── similar-impl.md prior implementations to reuse / adapt
├── dependencies.md coupling with other stories / contract changes
├── tests.md existing tests to preserve + scaffolding needed
└── synthesis.md compact meta-prompt — read this first
Read synthesis.md in full. Use it to:
- Prefer reuse over rewrite when a
direct-reusecandidate exists - Pin signatures when
dependencies.mdflags downstream consumers - Preserve existing test names/assertions listed in
tests.md(changes to those are breaking changes that need explicit justification)
If synthesis.md is empty or flagged skipped/failed, proceed without it — Step 4 stays the same.
Step 4 — Red-green-refactor per task
For each step of the story's Implementation plan:
- Red — write or identify the test that must pass. If
tests.mdlisted an existing test for this surface, START by running it to confirm baseline. - Green — implement the minimum. Reuse candidates from
similar-impl.mdbefore writing new code. - Refactor — clean while keeping tests green. Respect signatures pinned by
dependencies.md.
No pause for intermediate milestones. Run continuously until completion OR halt condition.
Step 5 — Halt conditions
- Architecture decision ambiguous, not covered by
architecture.mdand not resolvable from synthesis - Missing dependency / third-party API unavailable
- Test impossible to write for an AC (escalate)
- Conflict with an undocumented convention (escalate, propose project-context update)
- Coupling risk from
dependencies.mdmaterializes (parallel story would break)
Interactive mode: stop, ask the user. Batch mode ($FLOW_AUTO=1): write the blocker into the story file's Dev Notes, leave the story in-progress, exit non-zero. The user resumes via /flow-dev .
Step 6 — Comprehensive tests
Write every test required by the AC. No fake-it, no skip. Run the suite after each major step. Tests listed in tests.md must still pass — if you intentionally invalidate one, document why in Dev Notes.
Step 7 — Internal validation
- All AC checkable
- All tests pass (entire suite, not just new ones)
- No TODOs left, no dead code
- Project-context conventions respected
- Coupling notes from
dependencies.mdaddressed
Step 8 — Mark review
Update the story file:
- Status →
review - File List (touched files CREATE/UPDATE/DELETE) — used by
/flow-review's wave - Change Log entry with date
- Dev Notes: decisions made, surprises encountered, emerging patterns, wave handoff outcomes (which reuse candidates worked, which coupling notes proved real)
Edit only development_status[] from in-progress to review.
Output
- Code + tests in the repo
- Enriched story file (File List, Change Log, Dev Notes)
- sprint-status updated
.agents/internal/-dev/transient artifacts
Next
/flow-review for adversarial review before commit.
Batch mode ($FLOW_AUTO=1)
- No user pause. No question.
- Wave runs unconditionally unless
FLOW_PARALLEL=0. - Red-green-refactor continuous until completion OR halt condition.
- Halt → exit non-zero.
Fallback
FLOW_PARALLEL=0 disables the wave. The skill then behaves as v0.3: red-green-refactor directly from the story file, no pre-dev sub-agents. Use when sub-agent calls fail or for offline runs.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: edouard-claude
- Source: edouard-claude/pi-flow-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.