/fw:workfrom fw
Execute ready implementation work. Use for plans, specs, todos, or clear requests that need tracked changes and validation.
Ships in fw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use the actual current date from runtime context when identifying the latest plan document or updating dated execution artifacts.
$fw:work is the execution router and completion gate in Flywheel's compact
project loop. It takes a plan, spec, todo file, or clear work request and turns
it into implemented, validated repo changes. The goal is not to stay busy. The
goal is to finish complete vertical slices, validate them against repo truth,
pull in helper workflows only when the task actually needs them, and leave the
tree ready for review and commit.
$fw:brainstorm defines WHAT to build. $fw:plan defines HOW to build
it. $fw:work executes the plan, stays grounded in the repo, and absorbs
helper-stage selection for things like docs, browser proof, rollout, verify,
observability, logging, architecture strategy, maintainability, or
simplification when the work needs those surfaces before review.
When directly invoked, always execute. Do not treat a direct invocation as
"not an execution task" and exit. If the work is large or underdefined enough
that execution would be irresponsible, recommend $fw:brainstorm or
$fw:plan, explain why, and honor the user's choice if they want to continue.
Follow ../references/host-interaction-contract.md.
Call the exact host question tool named in
../references/host-interaction-contract.md when that tool is available. Do
not ask for raw 1/2/3 replies when the host already offers a choice surface.
When the workflow spans multiple material steps, use the host task-tracking
tool named in ../references/host-interaction-contract.md to create and
maintain a short task list.
Ask one question at a time. Prefer concise single-select choices when natural options exist.
When runtime tradeoffs are real, present a short predicted choice list with the recommended label first and rely on the host's native freeform final path when it exists.
In automated or non-interactive contexts, skip approval prompts once ambiguity is low enough to proceed responsibly.
Do not preload every reference. Load only what the current phase needs:
references/commit-workflow.md only when all implementation tasks are
complete and execution transitions from Phase 2 into quality check and
commit.references/execution-router.md when execution needs detailed
delegation rules, parallel safety checks, test-completeness reminders, or
incremental commit heuristics.../references/workflow-gates.md when execution is ready to hand off to
review, rollout, spin, or commit.../observability/references/service-readiness-matrix.md only when the
work changes runtime behavior, contracts, state, rollout posture, retries,
queues, migrations, or other blast-radius-sensitive boundaries.decision.tdd before implementation unless an explicit exception applies.<input_document> #$ARGUMENTS </input_document>
If <input_document> is blank:
docs/plans/ for the most recent *-plan.md.If the input resolves to an existing file path, treat it as the work document.
If the input is not a file path, treat it as a bare prompt describing the work.
Determine how to proceed based on what was provided in <input_document>.
Plan or specification document — the input is a file path to an existing plan, specification, or todo file. Skip to Phase 1. In interactive contexts, execution from a plan or specification still requires the plan-to-work approval gate in Phase 1 unless the user explicitly asked to implement that artifact in the same turn.
Bare prompt — the input describes work rather than pointing at a file:
Scan the work area
Assess complexity and route
| Complexity | Signals | Action |
|---|---|---|
| Trivial | 1-2 files, no behavioral change, typo, rename, narrow config edit | Proceed to Phase 1 step 2, then implement directly. Skip task-list construction and the execution strategy phase. If discovery proves the change is behavior-bearing after all, apply the TDD default before implementation. |
| Small / Medium | Clear scope, bounded change, usually under 10 files | Build a host-tracked task list from discovery and proceed to Phase 1 step 2. |
| Large | Cross-cutting, architectural, high-risk, or likely 10+ files, including auth, payments, migrations, or shared infra | Explain that the work would benefit from $fw:brainstorm or $fw:plan to surface edge cases and scope boundaries. Honor the user's choice. If proceeding, build a host-tracked task list and continue to Phase 1 step 2. |
Skip this step when arriving from Phase 0 with a bare prompt.
Implementation Units,
Work Breakdown, Requirements Trace, Files, Test Scenarios, or
Verification, use those as the primary source material for execution.Dependencies And Parallelism or per-unit
Execution mode, use them as the default execution shape. Treat
parallel-ready as eligible rather than mandatory, and keep serial units
ordered.Test posture on each implementation unit. If it is tdd, load
the tdd skill before writing implementation code for that unit. If it is
characterization, capture current behavior before changing it. Treat
no-new-tests as valid only when the plan gives a clear exception reason.Test posture, treat it as tdd by default and load the tdd skill before
implementation. Use a different posture only with a recorded exception and
verification path.Vertical slice field when present. Execute vertical
behavior slices one at a time. If the plan is organized as horizontal artifact
batches such as all tests, all service edits, all docs, all migrations, or all
generated artifacts, pause and route back to fw:deepen unless the plan marks
those units as justified horizontal exceptions.Execution note on each implementation unit and carry any
sequencing, rollout, or other non-test posture into the task.Architecture and Pattern Decisions or an equivalent
section, carry those boundary, pattern, and clean-code constraints into the
task instead of rediscovering them ad hoc.Deferred to Implementation or Implementation-Time Unknowns.
These are questions intentionally left for execution. Note them before
starting so they guide the work instead of surprising you mid-flight.Scope Boundaries section and keep its explicit non-goals active
while implementing.tdd skill and honor that request even
if the plan is silent.fw:plan post-generation question counts as approval.
A generic mention of a plan path does not.Before creating tasks or editing code, perform a Touch Grass pass. The point is to find the repo's actual truth sources for validation rather than assuming commands, policies, or conventions from memory.
Build a short ground-truth ledger from the repo:
AGENTS.md when present. Read CLAUDE.md only when
present or when the repo still uses it as compatibility context..flywheel/config.local.yaml when present and carry forward only the
local policy gates that materially affect this task, such as browser proof,
reproducer-before-fix, review-before-commit, or runtime validation.docs/solutions/, search that local store for the
target area before editing. Prefer frontmatter-first lookup by
files_touched, module, tags, problem_type, component, and title,
then read only the strongest hits. Prefer doc_status: active and follow
superseded_by when present.package.json, pyproject.toml, Gemfile, go.mod, Makefile,
justfile, turbo.json, nx.json, CI workflows, or repo-local scripts.When runtime-facing work depends on telemetry design or log quality, load
$fw:observability and $fw:logging instead of improvising a new instrumentation
shape from memory.
When runtime-risky work changes contracts, state, retries, queueing, or
cross-service behavior, read
../observability/references/service-readiness-matrix.md and keep the
applicable dimensions in the ground-truth ledger.
Use that ledger throughout execution. The ledger should answer: "What commands or artifacts will tell me whether the plan's hypothesis is actually true?"
For runtime-facing work, the ledger should also answer: "What logs, traces, metrics, dashboards, or queries will tell me this change is healthy or broken?"
For runtime-risky work, the ledger should also answer: "What does this path do today, what failure modes matter most, and how far can a mistake spread?"
If a local workflow policy file exists, the ledger should also answer: "Which completion gates in this repo are required here versus merely recommended?"
If the repo truth reveals multiple viable reliability postures, such as retry vs fail-fast or fail-open vs fail-closed, call the host question tool with a concise choice surface before editing:
If a relevant active-repo docs/solutions/ entry exists and the current work
would contradict it, update the plan of attack immediately instead of plowing
ahead as though the prior learning does not exist.
Then check the current branch:
current_branch=$(git branch --show-current)
default_branch=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
# Safer fallbacks if remote HEAD isn't set
if [ -z "$default_branch" ]; then
default_branch=$(git remote show origin 2>/dev/null | sed -n '/HEAD branch/s/.*: //p' | head -n1)
fi
if [ -z "$default_branch" ] && command -v gh >/dev/null 2>&1; then
default_branch=$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name 2>/dev/null)
fi
if [ -z "$default_branch" ]; then
echo "Unable to determine the default branch safely. Ask the user or run $fw:setup worktrees before creating a branch or worktree."
exit 1
fi
If already on a feature branch (not the default branch):
Check whether the branch name is meaningful. Names like
feat/crowd-sniff or fix/email-validation communicate intent. Opaque or
auto-generated names do not.
If the branch name is meaningless or auto-generated, recommend renaming it before continuing:
git branch -m <meaningful-name>
Derive the new name from the plan title or work description.
Ask: "Continue working on [current_branch], or create a new branch?"
If on the default branch, choose how to proceed:
Option A: Create a new branch
git pull origin [default_branch]
git checkout -b feature-branch-name
Use a meaningful branch name based on the work, for example
feat/user-authentication or fix/email-validation.
Option B: Use a worktree (recommended for parallel development)
Prefer $fw:worktree when it is available. Use the bundled manager script
instead of raw git worktree add so ignore hygiene and env-file copying stay
consistent.
If no manager is available, create an isolated worktree directly with git, for example:
git worktree add ../<worktree-dir> -b <feature-branch-name> <default_branch>
Continue the task from that isolated worktree.
Option C: Continue on the default branch
Recommendation: Prefer a worktree when:
Skip this step if Phase 0 already built the task list or if Phase 0 classified the work as Trivial.
../references/host-interaction-contract.md to break the work into
actionable tasks. If the host does not expose one, keep a concise visible
checklist in chat.Execution mode plus Dependencies to determine whether it
is blocked, serial, or eligible for a later parallel-ready batch. If the plan
lacks Execution mode, default units to serial.Test posture and Execution note into the task when
present.Patterns to follow field before implementing. Those
references exist to keep execution aligned with the codebase.Red signal, Green signal, and Verification fields as
the primary proof path when the unit is tdd; otherwise use Verification
as the primary "done" signal.in_progress and blocked, while the plan checkbox flips to [x]
only after the unit's verification passes.tdd unit to provide enough red and
green signal to start test-first execution.Default to inline execution. Load references/execution-router.md only when
delegation, parallel-ready units, test-completeness checks, or incremental
commit heuristics need more detail.
Parallel work is allowed only when the user explicitly asked for delegated or parallel agent work, dependencies are clear, and the file-overlap check passes. Serial units stay serial.
For plan-driven work, treat each unchecked vertical implementation slice as the
default task. Start with the first serial slice or the first
dependency-cleared parallel-ready batch identified by the plan. Horizontal
exception units are serial unless the plan gives a concrete independence reason
and the shared-write safety check still passes.
For each task, read the relevant repo files, execute only the current slice,
run its proof, and update task state only after verification passes. Keep plan
checkboxes synchronized with completed slices; use host task state for
in_progress or blocked.
When a unit carries a Test posture, honor it:
tdd, write the failing test before implementation, verify
the red failure, implement the smallest green change for the current vertical
slice, refactor if useful, and report
red/green/refactor evidence before moving to the next sliceFor bare-prompt tasks or plan units without Test posture, apply the same TDD
default to behavior-bearing feature work, bug fixes, public contracts,
regression-prone paths, and behavior-preserving refactors before editing
implementation code. Record the exception when TDD is not warranted.
When a unit carries an Execution note, honor it as sequencing, rollout, or
other execution guidance. Do not use Execution note as a substitute for
Test posture.
Before editing behavior, find the nearest existing tests. If test coverage or
parallel execution detail is not obvious, load references/execution-router.md
for the fuller checklist.
After each verified logical unit, decide whether an incremental commit is useful
or whether the unit should remain part of a larger coherent commit. Load
references/execution-router.md if the commit boundary is non-obvious.
AGENTS.md and repo-local instruction
files.After a cluster of related units, or every 2-3 units, review the changed files for simplification opportunities:
maintainability when the issue is future edit cost rather than
removable complexityarchitecture-strategy or pattern-recognition when current repo
truth invalidates a planned boundary or named-pattern choiceDo not simplify after every single task. Early duplication can still be intentional until the shape of the work is clear.
If a simplify skill or equivalent exists, use it. If the main issue is future edit cost rather than removable complexity, use a maintainability pass instead. Otherwise perform the review yourself.
If the work is UI-heavy and the task includes Figma designs:
If the completed change likely changed setup steps, public interfaces, config
contracts, CLI behavior, or user workflows, offer $fw:docs before final
review. If the user agrees, complete that docs pass first and then resume the
path into review and commit.
When all Phase 2 tasks are complete and execution transitions to quality check,
read ../references/workflow-gates.md and references/commit-workflow.md.
Apply the Work-Ready gate before handing off to $fw:review: implementation,
posture-specific evidence, relevant checks, task state, plan checkbox state,
and worktree status must be complete or listed as blockers. Close the execution
portion with the canonical handoff card: Stage, Artifact, Ready, Open
decisions, Evidence, and Next.
If the completed change is runtime-risky and the release posture is still
unclear, route through $fw:rollout after $fw:review and before
$fw:commit so activation sequence, validation window, and rollback
triggers are explicit instead of being squeezed into the final commit step.
parallel-ready and still pass a fresh overlap check.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mopeyjellyfish/flywheel --plugin flywheel32 skills in this plugin
/architecture-strategyAssess repo-grounded architecture choices and improvements. Use for boundaries, service splits, dependency direction, or distributed posture./brainstormExplore requirements and approaches. Use for a fuzzy idea, open scope, or one direction that needs sharper behavior before planning./browser-testRun browser acceptance checks with playwright-cli. Use when browser-visible behavior needs fresh proof before review or commit./commitFinish a branch cleanly. Use to verify readiness, make logical commits, push, and create or refresh a PR with evidence.