agentleFS
cofincofin/flow/skills/flow-execution/SKILL.md

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.

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
  1. Very specific:

    Use for implement only, after a validated plan contains ready task worksheets.

    line 13
  2. Distinctive:

    Quality Gates: Run repository linters and typecheckers while tests remain green.

    line 36
  3. Very specific:

    Never mark a task closed without running the test command and observing exit code 0.

    line 42
  4. Distinctive:

    Do not manufacture a red result for characterization, static, documentation, or integration work.

    line 57

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Preflight: Inspect .agents/bundles/specs/<flow_id>/tasks/<short_id>.md, verify dependencies are closed, and apply a journaled claim through flow-state with the expected plan identity and spec state revision.
  2. Initial Evidence: Collect the declared strategy's required initial proof; only behavior and regression strategies require red.
  3. Minimal Implementation: Make the smallest task-owned change while keeping focused evidence green.
  4. Quality Gates: Run repository linters and typecheckers while tests remain green.
  5. Atomic Commit & Close: Stage exact files, commit, apply a journaled close through flow-state recording commit: <sha>, and reconcile the spec.md checklist via /flow:sync.

Guardrails

  • Execute exactly one task per subagent dispatch.
  • Never mark a task closed without 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

StrategyInitial evidenceFinal evidence
behavior_tddFocused behavior test fails because behavior is absent.Focused test and relevant aggregate verification pass.
regression_tddFocused reproduction fails with the reported symptom.Regression and relevant aggregate verification pass.
characterizationFocused behavior baseline passes before cleanup.Same behavior passes unchanged; compare affected coverage when needed.
static_validationNative parser, lint, type, build, or generator baseline runs.Isolated representative violation produces the expected diagnostic; restored focused and aggregate gates pass.
documentation_validationDocumentation-native baseline runs.Documentation checks and promised examples pass.
integration_acceptanceFocused 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.