flow-execution
Skill17 starsChanged 2 months agoApache-2.0View on GitHub
Use when implementing Flow tasks from local task files under `.agents/bundles/specs/<flow_id>/tasks/`, claiming ready work, applying the declared verification strategy, recording task notes, committing, and updating task file state.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/flow.mdcCursor rule
- apilookupSkill
- architecture-criticSkill
- challengeSkill
- consensusSkill
- debloatSkill
- deepthinkSkill
- devils-advocateSkill
- docgenSkill
- flow-completionSkill
- flow-planningSkill
- flow-setupSkill
- flowSkill
- flow-stateSkill
- flow-sync-statusSkill
- okfSkill
- performance-analystSkill
- perspectivesSkill
- security-auditorSkill
- tracerSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Use for implement only, after a validated plan contains ready task worksheets.
- Distinctive: line 36
Quality Gates: Run repository linters and typecheckers while tests remain green.
- Very specific: line 42
Never mark a task closed without running the test command and observing exit code 0.
- Distinctive: line 57
Do not manufacture a red result for characterization, static, documentation, or integration work.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
Flow Execution
<!-- lifecycle-ownership: owner=flow-execution; operations=implement -->Trigger
Use for implement only, after a validated plan contains ready task worksheets.
<!-- flow-execution-policy: start -->contract: worksheet-execution-v1
invariants:
- worksheet-first
- fail-closed-no-production-mutation
- fresh-validated-plan-resume
transitions:
- preflight-claim
- mismatch-discover-block
- nonblocking-discover-release
- revised-plan-resume
authority: skills/flow/references/implement.md<!-- flow-execution-policy: end -->Workflow
- Preflight: Inspect
.agents/bundles/specs/<flow_id>/tasks/<short_id>.md, verify dependencies areclosed, and apply a journaledclaimthroughflow-statewith the expected plan identity and spec state revision. - Initial Evidence: Collect the declared strategy's required initial proof; only behavior and regression strategies require red.
- Minimal Implementation: Make the smallest task-owned change while keeping focused evidence green.
- Quality Gates: Run repository linters and typecheckers while tests remain green.
- Atomic Commit & Close: Stage exact files, commit, apply a journaled
closethroughflow-staterecordingcommit: <sha>, and reconcile thespec.mdchecklist via/flow:sync.
Guardrails
- Execute exactly one task per subagent dispatch.
- Never mark a task
closedwithout running the test command and observing exit code 0. - Stage only task-owned files; never perform opportunistic unrelated edits.
- Work on the active branch. Never create or mutate Git tags.
Strategy Evidence
| Strategy | Initial evidence | Final evidence |
behavior_tdd | Focused behavior test fails because behavior is absent. | Focused test and relevant aggregate verification pass. |
regression_tdd | Focused reproduction fails with the reported symptom. | Regression and relevant aggregate verification pass. |
characterization | Focused behavior baseline passes before cleanup. | Same behavior passes unchanged; compare affected coverage when needed. |
static_validation | Native parser, lint, type, build, or generator baseline runs. | Isolated representative violation produces the expected diagnostic; restored focused and aggregate gates pass. |
documentation_validation | Documentation-native baseline runs. | Documentation checks and promised examples pass. |
integration_acceptance | Focused integration baseline passes. | End-to-end scenario passes; injected negative states prove refusal paths. |
Do not manufacture a red result for characterization, static, documentation, or integration work. Follow the full discipline and waiver rules in discipline.md.
Output
Return the executed task ID, test command output, git commit SHA, and recorded discoveries.
Validation
Confirm the test command produced exit code 0 and the commit SHA is recorded in task frontmatter.
Example
For a task adding a route handler, write a failing endpoint test, implement the route to pass the test, commit locally, and close the task worksheet.
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.

