suzworx/flywheel/flywheel-operator

Claude Code and agent skill by suzworx/flywheel

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Operate the flywheel framework from any role — human or agent. Use when you want to install flywheel into a repo, validate it is healthy, understand its state, or drive the loop (plan/brief/dispatch/review/correct-or-land) as an operator rather than as a worker. The CLI implements the whole loop except creating and resuming tasks: init, config, log, state, run (through the opencode, claude or sim adapter), validate, inspect, verify, factory, staff, cost, stats, next, status, handoff, trace, claim/release/claims, controller, goal, land and lint. Only `flywheel plan`, `retry` and `artifacts` are still planned — until they land, create and resume tasks with brief files and the raw worker commands shown here.

Install

npx vskill@latest install suzworx/flywheel/flywheel-operator

SKILL.md

The same SKILL.md was published earlier as suzworx/flywheel/flywheel-operator.

Flywheel Operator

Flywheel is a durable orchestrator-to-worker loop. Any agent — or a human — can drive it. The CLI is the deterministic substrate; the skills are the judgment layer. You are the operator: you decide what runs, who runs it, and whether it landed. The command table below implements protocol v1.

What the CLI implements today

The table below lists every command flywheel help prints, kept in sync with the registry (a doc test fails the build if a command is missing here). Only flywheel plan, retry and artifacts are not built yet; the rest of this skill's manual workflow explains what to do until those three land.

CommandStatusWhat it does
`flywheel init [--track\--ignore] [--agents-md] [--hooks] [--force]`implementedScaffold flywheel.md + .flywheel/state.json + .flywheel/events.jsonl + .flywheel/briefs/; --track (default) keeps flywheel.md a committed file, --ignore adds it to the target's root .gitignore instead; --agents-md writes/refreshes an AGENTS.md block naming the installed skills; --hooks writes the Claude/OpenCode session-logging hooks and a Claude Code Stop hook that runs flywheel gate (blocks ending the session while work is left unjudged; an existing .claude/settings.json is never overwritten, so add the Stop entry by hand there); refuses an existing state file unless --force. Ends with a factory summary: workers, limits, audit policy, enforcement layers installed or missing (with the command to add each), and how to view the floor.
flywheel versionimplementedPrint the flywheel version.
flywheel configimplementedRead and validate .flywheel/config.json.
flywheel doctor [--worker NAME] [--record] [--dir DIR]implementedProbe the configured worker's model, then its fallbacks and routing candidates, through the worker's own adapter and print one <model>: <class> line per probe; exit 0 when every probe is ok, 1 when any is not. A flywheel-local/<model> is checked against its server first (local endpoint down, model not pulled). --record appends a probed event per model; an ok probe closes that model's breaker. Warns on stderr, without failing, when the ledger is untracked or git-ignored, or tracked without merge=union; with ledger.dir set it checks that directory is usable instead, and it warns on a refused ledger.dir, two live logs, or an interrupted flywheel ledger move (.flywheel/ledger-move.old/). It reads the integration branch's host rules and warns when it lacks a pull-request rule, required checks, or "require branches to be up to date" (strict), or when a ship.required_checks name is not required (#686).
flywheel ledger backup <path> [--dir DIR] [--json]implementedWrite a verified, point-in-time copy of .flywheel/ to <path> (must not exist, or be empty): complete log lines only, no worktrees/, locks/ or *.tmp, plus a flywheel-backup.json manifest; the copy's chain is checked and a break is warned about, not fatal. With ledger.dir set the external events.jsonl and events/ are copied into the copy's .flywheel/ too and the manifest records ledger_dir. The ledger itself is committed (with .flywheel/events.jsonl merge=union in .gitattributes) unless ledger.dir moves it; a backup is an extra copy, not an alternative. Restore by copying <path>/.flywheel back (with ledger_dir in the manifest, the event-log files go back into that directory, or flywheel ledger move them).
flywheel ledger move [--dir DIR] [--json]implementedMove the in-tree event log (.flywheel/events.jsonl, .flywheel/events/) into ledger.dir (#464): holds the in-tree events lock, copies into a temp dir beside the destination, fsyncs and byte-compares each copy, renames it into place, verifies the chain, then removes the in-tree files (never touches git; says to commit the removal when git tracked them). Identical copies already at the destination resume the move; any other log there is refused with exit 6, rule two-live-logs. Exit 2 when ledger.dir is unset; nothing to move with no in-tree log.
flywheel log --task <id> --kind planned --brief <path>implementedRecord a planned brief to the event log before dispatch. --shard switches the event log to per-task shards under .flywheel/events/ (one-way; the legacy file is sealed and kept) (#47).
flywheel brief <task> --from-issue N --owns a,b [--repo O/R] [--needs t] [--gate CMD]... [--kind K] [--force] [--no-plan]implementedWrite .flywheel/briefs/<task>.txt from a tracker issue (title, URL, body as the Why; owns/needs/gates from flags, the Go full suite by default), lint it, and record planned with the issue number unless --no-plan (#457).
flywheel stateimplementedDerive and print state from the event log.
flywheel run <task> [--worker NAME] [--stall-timeout D] [--increment N] [--worktree] [--notify CMD]implementedCanonical dispatch: pick a worker from .flywheel/config.json, or --worker NAME to choose among several configured workers; attach the brief, apply the deny policy, record every event; --stall-timeout bounds a mid-stream gap (0 = the worker's configured stall_timeout, itself 600s); the worker's tool_stall_timeout (default 1800s) bounds one tool call kept open by tool_progress heartbeats, stopping it as stalled with note tool call <tool> open <elapsed>s (tool_stall_timeout <N>s) (#917). --increment N sends only increment N of a brief with an ## Increments list, as a fresh session, and records it on the dispatched event. --worktree runs the worker in .flywheel/worktrees/<task> on branch fw/<task>; validate and inspect then default to that tree. --notify CMD runs CMD through the shell when the run returns on any path (success, refusal, error), with FLYWHEEL_FINISHED="<task> <attempt> reason=<r> exit=<code>"; its failure only warns (#393).
flywheel validate <task> [--workdir]implementedRun the brief header's gate: lines on the exact tree and check owns; exit 0, or 5 on a failing gate, a file outside owns, or a git conflict marker line in any changed file (listed as path:line under conflict markers:, CRLF included; inspect, land --merge and ship refuse that tree, issue #698). A base drift: line means the branch was rebased by hand without a record (issue #672). `flywheel validate --group <goal\tasks:a,b> --workdir PATH runs a group's distinct gates once on one combined tree and records a reading per member, so units with disjoint owns but shared gates can pass; two members owning one path refuse with rule group-owns` (exit 6, issue #775).
flywheel lint <brief> [--probe] [--dir DIR]implementedCheck a brief for problems: missing owns:, gate:, # TASK or ## Checks, owns paths that don't exist, an empty kind: line or a kind outside lint.kinds (default feature, fix, refactor, test, docs, chore, perf); warnings for a missing write rule or needs: line, no gate running the full suite (lint.full_suite), a gate calling a JavaScript test runner the repository does not use (lint.test_runners, else package.json's test scripts and dependencies; #646), and owns missing the tests of a changed Go package's importers (lint.importers). --probe runs each gate: once on the base tree after a clean lint: a failing gate warns, one that cannot start (exit 126/127) is a problem (#544) (exit 0/1).
`flywheel inspect <task> --verdict pass\rework\scrap\escalate --session <own session> [--commit SHA]`implementedRecord an inspection; refused with exit 6 for a bad verdict, a worker's session, or no passing readings for the tree as it is now (--commit: that commit's tree instead). A pass after CI failed on a tree that passed every gate in the brief is refused (rule ci-escape) until the brief gains a gate that reproduces the failure (flywheel run <task> --delta ...); record such a failure on a PR merged outside ship with flywheel log --task <id> --kind ci_failed --note "<check(s)>" (#776). `flywheel inspect --group <goal\tasks:a,b> --verdict V --session S inspects every member of a group after validate --group`: each member is checked first, nothing is recorded unless all pass, and a refusal names the member (#775).
flywheel attest <task> --commit SHA --evidence URL --session <own session> [--scope tasks:a,b]implementedRecord gate readings a named external run (CI on the PR) measured on a merged commit: one passing validated per gate and a clean owns_checked, marked source: external; refused with exit 6 for a worker's session, an undispatched task, or a commit that changed a path outside owns (with --scope, outside every listed unit's owns, for a trailer-less multi-unit squash, #908).
`flywheel observe <task> --check N --result pass\fail --evidence REF --session <own session>`implementedRecord a check only a person can make, the brief's observe: line N (look at a screen, listen to audio), on the unit's current tree, marked source: observed; a pass is refused (T3) until every observe: line has a passing observation after the latest finished event, and a worker's session is refused with exit 6 (#842).
`flywheel review <task> --verdict pass\correct\reject --session <own session> [--note NOTE] [--dir DIR] [--workdir PATH]`implementedRe-run a task's gates and owns check on an isolated copy of the tree (HEAD plus uncommitted changes) and record the reviewed verdict; refused with exit 6 for a bad verdict, a worker's session, a changed path outside owns, or a failing gate.
flywheel review <task> --agent --session <own session> [--worker NAME] [--round N] [--dir DIR] [--workdir PATH]implementedRun the review agent (issue #389): a read-only reviewer (the staffing.reviewer role, else the default worker, or --worker) reads the brief, the attempt's gate readings and the unit's diff, and each finding it reports is recorded as a review_finding event, then a reviewed verdict — correct on any blocker or major, else pass. Prints [<severity>] <file>:<line> <claim> per finding and review: <verdict> (<counts>); exits 0 on pass, 1 on correct, 6 when the session is a worker's, 2 on usage. An unparsable answer records nothing and names the transcript under .flywheel/reviews/. Besides read-only tools the reviewer may run the unit's gate commands, gh issue view/gh pr view, and the patterns in review.allowed_tools (flywheel config set review.allowed_tools "Bash(make lint:*)", ;;-separated) (#469). With --panel and review.panel_min_lines N set, a unit under N changed lines gets only the correctness member, recorded as panel_scoped for that tree (#459).
`flywheel review --group <goal\tasks:a,b> --agent --session <own session> [--base REF] [--worker NAME]`implementedThe group integration review (#420): merge every member onto --base (default main) in a throwaway worktree, run review.group_gates there, and have the integration persona review the combined diff; each finding is routed to the member owning its file (else the group), a merge conflict is a blocker on its member, and flywheel land refuses while an open blocking integration finding is on a unit or its goal (rule group). The group shows on the floor's groups section and as group-open (N) on the andon; exit 0 pass, 1 correct, 6 re

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
4
Repository forks
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/suzworx/flywheel/flywheel-operator/badge)](https://verified-skill.com/skills/suzworx/flywheel/flywheel-operator)

Something wrong with this skill or its page? Tell us.