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

flow-planning

Skill17 starsChanged 2 months agoApache-2.0View on GitHub

Use when drafting PRDs, researching, planning, refining, revising, or creating .agents/bundles/specs/<flow_id>/spec.md worksheets for Flow.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    Single-Pass Spec & Worksheets: Write spec.md and complete vertical-slice worksheets in tasks/<short_id>.md specifying public interfaces, …

    line 35
  2. Distinctive:

    Every task must be a vertical slice sized for one subagent invocation and one atomic Git commit.

    line 43
  3. Very specific:

    Put the selected verification_strategy in task frontmatter.

    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 Planning

<!-- lifecycle-ownership: owner=flow-planning; operations=prd,plan,refine,revise,research,task -->

Trigger

Use for prd|plan|refine|revise|research|task.

<!-- planning-contract: structured-choice-v1 -->
interaction_authority: skills/flow/references/interaction.md
planning_loop:
  phases: [research_closed, draft, gap_scan, refine, revision_update, review, approved, revise, blocked]
  gap_scan:
    reject: [deferred_research, unresolved_decisions, stub_body, vague_verification, missing_verification_strategy, overlapping_ownership, oversized_task]
    require: [requirement_to_task_traceability, one_invocation_per_task, one_commit_per_task]
  revision_update:
    on_plan_change: [increment_plan_revision_once, copy_revision_to_spec_and_all_tasks, clear_plan_commit, rerun_validation]
  review:
    max_external_rounds: 3
    blocking_severities: [Critical, Important]
    on_limit: blocked

Workflow

  1. Proportional Research & Frontier Analysis: Resolve local codebase facts directly with file reads (0 subagents). Dispatch at most 1–2 @researcher subagents only when at least two independent unknowns or external primary-source lookups exist. Map design choices as an unblocked frontier with opinionated recommendations (❓ Choice [ID] ... ➡️ Recommendation).
  2. Deep-Module Interface Exploration: Explore competing interface shapes only when public contracts genuinely compete, and apply the architecture-critic deep-module lens inline before spec lock.
  3. Single-Pass Spec & Worksheets: Write spec.md and complete vertical-slice worksheets in tasks/<short_id>.md specifying public interfaces, types, and testing seams.
  4. Inline Adversarial Stress-Testing: Apply the devils-advocate lens inline before presenting for approval to catch edge cases without spawning extra subagents.
  5. Approval Gate: Present Approve|Revise|Refine. Upon approval, hand off to flow-execution.

Guardrails

  • Planning modifies files exclusively under .agents/bundles/specs/<flow_id>/. Never edit application source code during planning.
  • A plan is Ready only when a zero-context agent can implement every task correctly from the worksheet alone.
  • Every task must be a vertical slice sized for one subagent invocation and one atomic Git commit; never split one behavior into separate test-only and implementation-only tasks.
  • Select exactly one verification strategy from the maintained matrix below.

Verification Strategy Selection

StrategyChange classRequired initial evidenceRequired final evidence
behavior_tddNew observable behaviorFocused behavior test fails because the behavior is absent.Focused test and relevant aggregate verification pass.
regression_tddDefect correctionFocused reproduction fails with the reported symptom.Regression and relevant aggregate verification pass.
characterizationBehavior-preserving refactor or deletionFocused behavior baseline passes before the change.The same behavior evidence passes unchanged; compare affected coverage when execution could be lost.
static_validationManifest, config, generated output, or toolingNative parser, lint, type, build, or generator baseline runs.An isolated representative violation fails with the expected diagnostic, then restored focused and aggregate gates pass.
documentation_validationLinks, examples, or document structureApplicable documentation-native baseline runs.Documentation-native checks and promised examples pass.
integration_acceptanceComposition of existing contractsFocused integration baseline passes.End-to-end scenario passes and injected negative states prove refusal paths.

Put the selected verification_strategy in task frontmatter. In ## Verification, name the exact initial and final commands, expected result, and any required diagnostic. A waiver must retain the strategy and record rationale, approver, and compensating evidence.

Output

Return the finalized spec path, child tasks, review findings, and the next lifecycle command (/flow:implement).

Validation

Confirm requirement-to-task traceability, complete worksheets, an allowed verification strategy with concrete initial/final evidence, test command specifications, and user approval.

Example

For a new subsystem, research codebase patterns, map design choices, draft spec.md with refined task worksheets, and present for user approval.

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.