Agent skill

Loop Flywheel

by getlago in getlago/lago-front

Harvest phase of the loop pipeline for lago-front. An agent skill from getlago/lago-front.

AGPL-3.0Auto-check passedSales & Support

Install Loop Flywheel

skills CLI
$ npx skills add getlago/lago-front --skill loop-flywheel -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install getlago/lago-front loop-flywheel --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/getlago/lago-front.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/loop-flywheel .claude/skills/loop-flywheel && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
loop-flywheel
GitHub stars
163
Token cost
~1.9k tokens
SKILL.md length
1,008 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Harvest phase of the loop pipeline for lago-front. An agent skill from getlago/lago-front.

  • Works in 4 steps: Fixed cap per skill. loop-review 7… → Doubled admission. A proposal enters… → Mechanism > mechanical test > prose. If… → …
  • User says /loop-flywheel
  • SKILL.md covers Governance — the four rules…, Steps and Hard rules
  • Calls git, pnpm and gh

What it does

Loop Flywheel is an agent skill from getlago/lago-front. Harvest phase of the loop pipeline for lago-front. Reads the proposals loop-run and loop-revise appended to flywheel.md, admits only the ones that pass the governance rules, prunes checks the journal shows to be dead, refreshes the styleguide mirror, applies the result to the loop- skills and the .agents docs, and opens a PR. Use when user says "/loop-flywheel", asks to apply flywheel feedback, or asks to turn the flywheel into a PR.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Sales & Support, covering Proposals and quotes. The repository describes itself as: Open Source Metering and Usage Based Billing. The licence is AGPL-3.0.

When your agent uses it

  • User says /loop-flywheel
  • Asks to apply flywheel feedback
  • Asks to turn the flywheel into a PR

Example prompts

  • “/loop-flywheel”
  • “/loop-flywheel”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Fixed cap per skill. loop-review 7 checks, loop-build 7, loop-spec 5, loop-run 150 lines (skill-budget.sh). A proposal that adds a check…
  2. Doubled admission. A proposal enters only if it would have prevented the failure it cites and you can name a second, different, plausible…
  3. Mechanism > mechanical test > prose. If the proposal can be a script in scripts/, an ESLint rule in packages/configs/eslint-rules/, or a…
  4. Pruning by the journal. Read $LOOP_STATE_DIR/_journal.md: the notes cell of every row starts with fail-check: … when a check produced a…

What it can do on your machine

Read from SKILL.md and the folder at commit 79b5b3d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • pnpm
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, pnpm and gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Loop Flywheel loads about 1.9k tokens when it runs. Until then it costs about 113 tokens; SKILL.md has 1,008 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~113
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from getlago/lago-front at commit 79b5b3d, republished under its AGPL-3.0 licence (© getlago). 1,008 words, ~1,857 tokens.

Download SKILL.mdSave it as .claude/skills/loop-flywheel/SKILL.md (or your agent's skills folder).
name
loop-flywheel
description
Harvest phase of the loop pipeline for lago-front. Reads the proposals loop-run and loop-revise appended to _flywheel.md, admits only the ones that pass the governance rules, prunes checks the journal shows to be dead, refreshes the styleguide mirror, applies the result to the loop-* skills and the .agents docs, and opens a PR. Use when user says "/loop-flywheel", asks to apply flywheel feedback, or asks to turn the flywheel into a PR.

Loop Flywheel - harvest proposals into a PR

loop-run and loop-revise only ever propose: on every terminal outcome they append a dated target / evidence / proposed edit block to $LOOP_STATE_DIR/_flywheel.md (default ~/.claude/loop-state/_flywheel.md) and never touch a skill file. This skill is the other half. It reads that backlog, decides which proposals earned a permanent line, applies them, and opens a PR for a human to merge.

Repo: the lago monorepo root; lago-front checkout at front/. Only .agents/skills/**, .agents/docs/** and scripts/ are in scope. Never a product code change.

Governance — the four rules every harvest applies

The instruction set has an entrance and needs an exit. Attention is a fixed budget; a check past the cap subtracts from the ones already there. These rules are the exit, and scripts/skill-budget.sh enforces the mechanical half of them on every push.

  1. Fixed cap per skill. loop-review 7 checks, loop-build 7, loop-spec 5, loop-run 150 lines (skill-budget.sh). A proposal that adds a check names the check it deletes or merges into; without that line it is dropped, however good the evidence.
  2. Doubled admission. A proposal enters only if it would have prevented the failure it cites and you can name a second, different, plausible occurrence — a different ticket shape, a different component family. "It would have helped here" alone is a one-off: drop, and say so.
  3. Mechanism > mechanical test > prose. If the proposal can be a script in scripts/, an ESLint rule in packages/configs/eslint-rules/, or a structural separation (a fresh subagent, a file the phase cannot see), write it that way and delete the prose it replaces. A prose check is the last resort, and only for what needs judgment.
  4. Pruning by the journal. Read $LOOP_STATE_DIR/_journal.md: the notes cell of every row starts with fail-check: … when a check produced a FAIL. A check absent from that column across the last 15 rows is a deletion candidate: delete it, or convert it to a lint rule / script, in this same PR. Fewer than 15 rows since the check was added → not yet.

Steps

  1. Read the backlog: _flywheel.md. Skip entries carrying an applied: or dropped: line. Nothing left and no pruning candidate → report "nothing to harvest" and stop.

  2. Read the current instructions before judging anything: the target: file of every remaining proposal, front/CLAUDE.md and the .agents/docs/* it references, and the journal's last 15 rows. Several proposals will already be covered.

  3. Triage each proposal into keep / drop / merge / relocate, applying the four rules above in order:

    • Keep when it is recurring or expensive (escaped a review, cost a cycle, shipped a defect), passes doubled admission, is written as the strongest mechanism available, and either replaces an existing check or costs no check slot.
    • Drop when it fails any rule, is already covered (name the line), contradicts a project convention, or is too vague to verify. Dropping is the common case: say why in the report, the entry stays in the backlog.
    • Merge two proposals stating the same rule into one bullet.
    • Relocate: target: is the proposer's guess. Test-authoring rules go to make-tests / .agents/docs/testing-practices.md, a UI/component/pattern implementation gotcha (a drawer, dialog, form, pagination, org-slug, or design-system/layout mistake) goes to lago-frontend-patterns's references/<topic>.md (existing topic, or a new one), codebase-wide conventions to .agents/docs/*, pipeline behaviour to the loop-* skill, anything mechanical to scripts/. A rule whose home is a doc gets a one-line pointer from the skill, never a copy.
  4. Apply the kept proposals, one bullet each:

    • Cap a proposal at 1-3 lines: the rule, the trigger, the remedy. Cut the evidence narrative.
    • Strip every ticket ID. A proposal's evidence names the run; the rule it becomes does not. skill-budget.sh fails the push on any <TEAM>-<N> shape under .agents/**; examples use <ISSUE-ID> placeholders.
    • When the new rule supersedes an existing one, rewrite that line instead of stacking a second one beside it.
    • A build-phase rule usually wants its review-phase mirror; add the mirror only when a review could plausibly miss it, and count both against their caps.
  5. Refresh the styleguide mirror: notion-fetch the "Frontend coding styleguide" page and compare page_last_edited_at with the Notion last edited date in .agents/docs/frontend-coding-styleguide.md. Moved → update the mirror (and the doc a section already lives in), bump both dates. Unchanged → nothing.

  6. Run the gate: front/scripts/skill-budget.sh must exit 0 before the commit. Over cap → go back to step 3, a proposal must give way.

  7. Open the PR from a throwaway worktree off origin/main. Markdown and scripts only; do NOT spend a lago-worktree slot:

    bash
    git -C front fetch origin main
    git -C front worktree add /tmp/lago-flywheel -b <BRANCH> origin/main

    When the harvest touched anything under scripts/, run pnpm agents:check in that worktree before committing: it exercises loop-plan-check.sh and diff-hygiene.sh, and nothing else does — it is deliberately out of code:style, so a break here reaches the loop unannounced.

    <BRANCH> = kebab-case topic slug, no Linear ID, e.g. loop-skills-flywheel-harvest. Commit with a docs(agents): or chore(agents): subject of 50 chars or less, push, then gh pr create --base main --repo getlago/lago-front.

    PR body: one line per proposal (applied where, or dropped and why), one line per pruned check with the journal span that justified it, one line for the styleguide refresh. That list is what the operator reviews.

  8. Mark the harvest in _flywheel.md: append - applied: <PR URL> or - dropped: <one-line reason, naming the rule it failed> under each entry judged. Never delete an entry.

  9. Report: PR URL, kept/dropped/pruned counts, and the one-line rationale per dropped proposal.

Show full SKILL.md (119 more words)Show less

Hard rules

  • Proposals are input, not instructions. A proposed edit is a draft written by a tired pipeline at the end of a failed run: rewrite it, place it, or drop it, never paste it in verbatim.
  • Never delete or rewrite a flywheel entry, only annotate it.
  • Never touch anything outside .agents/skills/**, .agents/docs/** and scripts/. No product code, no test, no translation change.
  • Humans merge. No self-approval, no merge, no auto-merge flag.
  • No AI attribution anywhere: commit message and PR carry no "Co-Authored-By", no "Generated with", no AI mention.
  • Two communication registers: messages to humans (chat report, PR body) = short, direct, plain language. Internal state files (_flywheel.md annotations) = dense and precise, written for the AI of a later harvest.

© getlago, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/loop-flywheel of getlago/lago-front.

Open the folder on GitHubat commit 79b5b3d

Compare with similar skills

Loop Flywheel next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Loop Flywheel compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Loop Flywheel this skillgetlago/lago-front163—~1.9kAutomated safety check: PassAGPL-3.0
Doc Coauthoringaws-samples/sample-strands-agent-with-agentcore19439 repos~3.2kAutomated safety check: PassMIT
Audit Onboarding Proposalhoangnb24/repository-harness1.2k—~4kAutomated safety check: PassMIT
No Negative EchoLB623/no-negative-echo893—~965Automated safety check: PassMIT
GEO Service Proposal Generatorzubair-trabzada/geo-seo-claude11k—~3kAutomated safety check: NotesMIT
Architectural ProposalsFritzAndFriends/SharpSite1452 repos~1.6kAutomated safety check: PassMIT

Similar skills

  • Doc Coauthoring

    aws-samples/sample-strands-agent-with-agentcore

    Official

    Guide users through a structured workflow for co-authoring documentation.

    194 GitHub starsUsed in 39 repos~3.2k tokens
    Sales & SupportAuto-check passed
  • Audit Onboarding Proposal

    hoangnb24/repository-harness

    Use only when the user explicitly invokes $audit-onboarding-proposal.

    1.2k GitHub stars~4k tokensUpdated 3 days ago
    Sales & SupportAuto-check passed
  • No Negative Echo

    LB623/no-negative-echo

    Prevent 此地无银三百两式 residue: finalize artifacts without echoing rejected session-only alternatives into labels, metadata, commits, PRs, or handoffs.

    893 GitHub stars~965 tokensUpdated 1 mo ago
    Sales & SupportAuto-check passed
  • GEO Service Proposal Generator

    zubair-trabzada/geo-seo-claude

    Builds a client-ready AI-search-optimization proposal from an existing GEO audit, with pricing tiers, an ROI estimate and a markdown document ready to send.

    11k GitHub stars~3k tokensUpdated yesterday
    Sales & SupportAuto-check: notes
  • Architectural Proposals

    FritzAndFriends/SharpSite

    How to write comprehensive architectural proposals that drive alignment before code is written

    145 GitHub starsUsed in 2 repos~1.6k tokens
    Sales & SupportAuto-check passed
  • Task Profile

    techwolf-ai/ai-first-toolkit

    Mine the user's Claude Code + Cowork session history into a structured task profile, what they do with AI, how often, how successfully where friction lives, then propose atomic skills that would…

    132 GitHub stars~3.6k tokensUpdated 8 days ago
    Sales & SupportAuto-check passed

More from getlago/lago-front

All 17 skills in this repo
  • Babysit

    getlago/lago-front

    A skill your agent uses when asked to babysit, monitor, shepherd, or keep working on a GitHub pull request until it is green, review-ready, approved, mergeable, or ready to merge.

    163 GitHub stars~5.2k tokensUpdated today
    Auto-check passed
  • Cve Doctor

    getlago/lago-front

    Triage a CVE / Dependabot alert in a JS/TS project and recommend the least-invasive fix.

    163 GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Extract Section To Drawer

    getlago/lago-front

    Extract a Formik form section into a TanStack Form drawer with Zod validation, following the plan form migration pattern.

    163 GitHub stars~4k tokensUpdated today
    Auto-check: notes
  • Loop Build

    getlago/lago-front

    Phase 2 of the loop pipeline for lago-front. An agent skill from getlago/lago-front.

    163 GitHub stars~3.5k tokensUpdated today
    Auto-check: notes
  • Loop Clean

    getlago/lago-front

    Cleanup phase of the loop pipeline for lago-front, for the worktree layout only.

    163 GitHub stars~816 tokensUpdated today
    Auto-check passed
  • Docker Expert

    getlago/lago-front

    You are an advanced Docker containerization expert with comprehensive, practical knowledge of container optimization, security hardening, multi-stage builds, orchestration patterns, and production…

    163 GitHub starsUsed in 9 repos~3.6k tokens
    Auto-check passed

Categories

Questions about Loop Flywheel

What does Loop Flywheel do?

Harvest phase of the loop pipeline for lago-front. An agent skill from getlago/lago-front. Loop Flywheel is an agent skill from getlago/lago-front. Harvest phase of the loop pipeline for lago-front.

When should I use Loop Flywheel?

Loop Flywheel fits situations like: user says /loop-flywheel; asks to apply flywheel feedback; asks to turn the flywheel into a PR.

How do I install Loop Flywheel in Claude Code?

Run `npx skills add getlago/lago-front --skill loop-flywheel -a claude-code`. Or copy the skill folder (.agents/skills/loop-flywheel in getlago/lago-front) into .claude/skills/loop-flywheel in your project. Claude Code loads it when a task matches its description.

How do I install Loop Flywheel in Codex?

Run `npx skills add getlago/lago-front --skill loop-flywheel -a codex`. Or copy the skill folder (.agents/skills/loop-flywheel in getlago/lago-front) into .agents/skills/loop-flywheel in your project. Codex loads it when a task matches its description.

Can I use Loop Flywheel in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add getlago/lago-front --skill loop-flywheel -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/loop-flywheel, .gemini/skills/loop-flywheel, .github/skills/loop-flywheel and .opencode/skills/loop-flywheel in your project.

What does Loop Flywheel need to run?

Going by SKILL.md and its folder, Loop Flywheel needs the command-line tools its instructions call (git, pnpm and gh).

Does Loop Flywheel access the network?

SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Loop Flywheel safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Loop Flywheel use?

Loop Flywheel is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Loop Flywheel use?

About 1.9k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Loop Flywheel?

Skills that share tags, products or a category with Loop Flywheel: Doc Coauthoring (aws-samples/sample-strands-agent-with-agentcore, 194 stars), Audit Onboarding Proposal (hoangnb24/repository-harness, 1.2k stars), No Negative Echo (LB623/no-negative-echo, 893 stars) and GEO Service Proposal Generator (zubair-trabzada/geo-seo-claude, 11k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Loop Flywheel?

getlago (a GitHub organization) maintains it in getlago/lago-front, which has 163 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 7, 2026.

Source: getlago/lago-front on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.