agentleFS
avizmarlonavizmarlon/agent-skills/skills/agent-flywheel/SKILL.md

agent-flywheel

Skill2 starsChanged 6 months agoMITView on GitHub

Use when planning a new project or feature, turning an idea or specification into an executable plan, designing architecture, establishing a roadmap or phase, or coordinating multi-session or multi-agent builds. Activate on "plan this build", "turn this into tasks", "make it a plan", or when tasking/swarm coordination is mentioned. Skip routine bugfixes, urgent ops/incidents, or executing pre-approved plans unless re-planning is requested.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't default to heavy machinery.

    line 33
  2. Distinctive:

    If your tooling doesn't have a dedicated skill for a discipline, produce the same artifact manually — the contract (artifact existence) is …

    line 68
  3. Distinctive:

    De-slop owner/user-facing docs: Remove LLM writing artifacts (pseudo-profound openers, formulaic constructions, emdash overuse) from docs …

    line 73

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Agent Flywheel

Overview

A reusable, systematic method for planning and executing software projects with AI agents. Core principle: invest heavily in plan-space before code — that's where errors are cheapest to fix. Inspired by Jeffrey Emanuel's Agent Flywheel framework (agent-flywheel.com).

The "flywheel" metaphor: each iteration upgrades plan quality, artifact reusability, and execution speed. Rework caught in planning costs ~1× effort; in task definition ~5×; in code ~25×. This heuristic shapes where to push reasoning (upstream, to the plan).

When to activate / anti-triggers

Use this skill when:

  • Starting a new project or significant feature
  • Converting ideas, specs, or requirements into executable plans
  • Planning architecture or major technical decisions
  • Establishing roadmaps or multi-phase programs
  • Coordinating work across multiple agents or sessions
  • Explicitly asked to "plan this", "make it a task graph", or "design the build"

Do NOT use when:

  • Fixing routine bugs (non-architectural)
  • Responding to urgent incidents or ops crises
  • Executing an already-approved, locked plan
  • Handling customer support or one-off requests
  • Re-planning is explicitly out of scope

Step 1: Pick the execution mode (match scope to complexity)

Don't default to heavy machinery. Choose the lightest mode that fits the scope.

ModeWhen to useSubstrateComplexity
A: Plan-onlySmall/sequential projects; solo or tight-knit teams; coherent sliceMarkdown plan + test-driven development + standard PR workflowMinimal
B: Plan + task graphMultiple interconnected tasks; multi-session risk; dependency chainsMarkdown plan + structured task graph (JSONL format) + single-agent executionMedium
C: Task-graph + routable beadsPlan B + need resumability across context loss; durable task storeStructured beads + dependency routing + PR-per-clusterMedium–High
D: Full multi-agent swarmLarge, highly parallel work; amortized coordination costOnly after passing swarm-readiness.md — full coordination layerHigh

Default to Mode A. Escalate only when conditions in beads-escalation.md are genuinely met. Most projects do not justify modes B–D.

Step 2: Execute the planning loop (mandatory for all modes)

Quality planning requires multiple independent perspectives. This loop applies to any mode:

  1. Generate independent plans from 2+ models or agents, fresh context each. Different backgrounds yield different angles.
  2. Synthesize convergence. Identify where plans agree and where they diverge. Adjudicate disagreements with verified facts (search-first on external claims).
  3. Attack adversarially — use adversarial red-team review (e.g., mad-debate if available) to stress-test the plan. Identify MUST-FIX gaps and bake them into the plan as executable tests or tasks.
  4. Verify external facts that the plan depends on. Don't assume; search, verify, cite sources.

Output: one unified plan, with contention points resolved and external facts verified inline.

Step 3: Produce the gateway artifacts

The flywheel validates that a plan is real by checking for the artifacts that prove each discipline was applied. The skill used is a means; the artifact is the contract.

DisciplineArtifact that proves itTypical source
Scope & goals lockeddocs/SPEC.md — what, why, scope, non-goals, constraintsSpec-writing discipline
Decisions recordeddocs/adr/ADR-*.md — architecture decision recordsADR discipline
Success measurableImpact metric + testable acceptance criteriaImpact metrics discipline
Build plan executableTask-by-task plan with dependencies & test obligationsPlanning discipline
Risks identifiedCompetition check, market fit, feasibility reviewBusiness/strategy discipline
Ship policy declaredPR-only, CI gates, branch protection, code-review rulesEngineering discipline

If your tooling doesn't have a dedicated skill for a discipline, produce the same artifact manually — the contract (artifact existence) is what matters, not how you produced it.

Step 4: Quality gates (make them real, not performative)

  • Fresh-eyes review: independent context (new session, different agent, no prior exposure), provided only the diff/artifact and the spec. Output: a concrete issue list or approval, not "looks good."
  • De-slop owner/user-facing docs: Remove LLM writing artifacts (pseudo-profound openers, formulaic constructions, emdash overuse) from docs that humans actually read (READMEs, posts, guides). Use concrete criteria, not taste.

See fresh-eyes-review.md for detailed procedures.

Common failure modes & red flags

  • Over-engineering (mode escalation mistake): jumping to beads/swarm for a 10-task project. Default to A; most builds fit in A.
  • Hardcoded skill sequences: meta-skills that prescribe "run skill X then Y" become brittle. Check the artifact, not the tool invocation.
  • "Fresh eyes" from same context: looking at your own code again isn't fresh. Use a separate agent/session.
  • Confusing heuristic for law: "rework escalation (~1×/5×/25×)" is a bias, not proof. It informs where to invest, not a universal law.
  • Adopting original Flywheel's commit-to-main model: the original assumes direct-to-main to avoid conflicts. Modern practice uses PR-only workflows — mode B/C include pr-safe-beads.md for that.

References (load as needed)

  • beads-escalation.md — What beads are, exact conditions to escalate from mode A→B/C, portfolio substrate option.
  • pr-safe-beads.md — Bead lifecycle (states, branching, PR-per-cluster) compatible with PR-only workflows.
  • swarm-readiness.md — When/whether to adopt full multi-agent swarm; tooling trust caveats; prerequisites.
  • fresh-eyes-review.md — Code review + de-slop procedures with acceptance criteria.

Quick-reference triggers (forward-test)

These prompts should activate this skill:

  • "Build a new app"
  • "Turn this idea into a plan"
  • "Plan Phase 2"
  • "Make this architecture executable"
  • "Coordinate work across three developers"

These should NOT:

  • "Fix this typo"
  • "Urgent: production is down"
  • "Execute the approved plan" (unless re-planning)
  • "Quick bugfix"

How to use this skill

  1. State your scope (project size, team size, timeline, constraints, what "done" looks like).
  2. Activate step 1 — I'll help you pick the right mode (A/B/C/D).
  3. Activate step 2 — I'll generate or synthesize a multi-perspective plan, attack it, verify external facts.
  4. Activate step 3 — I'll help you produce the gateway artifacts (spec, ADRs, metrics, plan, ship policy).
  5. Activate step 4 — I'll coordinate fresh-eyes review and de-slop before handoff.

At each step, you decide whether to proceed, revise, or stop. The goal is a plan solid enough that execution becomes straightforward.

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.