flywheel
Skill1 starsChanged 35 days agoMITView on GitHub
Continuous improvement loop. Absorb patterns from watchlist repos, optimize any repo. Use when: '/flywheel', '/flywheel {repo-path}', 'upgrade copilot', 'copilot self-improvement', 'flywheel this repo', '飞轮', 'optimize this repo'.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- michaellady/claude-social-media-skillstheir own version, first seen Nov 9, 2026
- kasperjunge/skillstheir own version, first seen Nov 8, 2026
- abhione/flywheeltheir own version, first seen Nov 1, 2026
- chriswestt/claude-skillstheir own version, first seen Oct 9, 2026
- suzworx/flywheeltheir own version, first seen Sep 27, 2026
- misty-step/laboratorytheir own version, first seen May 26, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- kasperjunge/skills★ 7same name
- michaellady/claude-social-media-skills★ 5same name
- Jeff-Kazzee/flywheel★ 3same name
- suzworx/flywheel★ 3same name
- misty-step/laboratory★ 1same name
- abhione/flywheel★ 0same name
- chriswestt/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- appinsights-instrumentationSkill
- csharp-toolkitSkill
- delegateSkill
- deploy-verifySkill
- diagnoseSkill
- documentation-writerSkill
- grill-meSkill
- javascript-typescript-jestSkill
- microsoft-docsSkill
- nuget-managerSkill
- performance-optimizationSkill
- python-fastapi-pytestSkill
- sql-toolkitSkill
- tddSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 60
Gather intel: Check data/flywheel-scout/report-*.md for the latest report.
- Distinctive: line 81
Verify: Run this checklist — don't skip items:
- Distinctive: line 97
Don't invent cleanup work.
- Distinctive: line 127
If build fails: stop, show user, ask before continuing.
- Distinctive: line 134
Write deferred items in commit body for future runs
- Distinctive: line 154
After each run, log the results:
- Distinctive: line 175
Don't add a pattern just because it looks cool — it must solve friction you actually hit
- Distinctive: line 176
Don't restructure multiple things in one run — one structural change max
- Distinctive: line 177
Don't skip verification
- Distinctive: line 178
Don't edit shared work repos via flywheel (separate review process)
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Flywheel — Continuous Improvement (飞轮效应)
Scout the best repos → absorb into your brain → your brain makes your coding better everywhere.
Usage
| Command | What happens |
/flywheel | Optimize your copilot config — scout report + apply to instructions/skills/agents/memories |
/flywheel {path} | Optimize a project repo — scan code + fix issues across 6 dimensions |
That's it. Two modes, same command. No sub-commands to remember.
How it works
┌─────────────────────────────────────────────────────────────────┐
│ flywheel_scout worker (automatic, weekly Monday 7am) │
│ Scans all watchlist repos via GitHub API → LLM analysis │
│ Writes report to data/flywheel-scout/ + iMessage notification │
└─────────────────────────────┬───────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ /flywheel (you trigger when ready) │
│ 1. Check for pending scout report (use it if fresh) │
│ 2. Analyze: what's worth absorbing? what's stale? │
│ 3. Plan: show change table, wait for approval │
│ 4. Apply: edit files, one logical change at a time │
│ 5. Verify: build/syntax/cross-refs │
│ 6. Commit + push │
└─────────────────────────────────────────────────────────────────┘Prerequisites
- Your copilot config directory (instructions, skills, agents) is git-tracked
- A
flywheel-watchlist.ymlfile — tracked repos + stack versions flywheel_scoutworker (generates weekly reports)- flywheel MCP server (optional — used for
flywheel_scouttool if available) - Git, memory tool
Mode 1: /flywheel — Optimize Brain
Target: your copilot config (instructions, skills, agents, memories)
Flow
- Gather intel. Check
data/flywheel-scout/report-*.mdfor the latest report. If fresh (< 7 days), use it. Otherwise, run a live scout (flywheel MCP → GitHub API → LLM analysis). - Inventory. Quick count of instructions/skills/agents/memories. Flag bloat (files > 150 lines, total memory > 500 lines).
- Analyze. Compare scout findings against current state. For each candidate:
- Already covered? → skip
- Solves real friction? → keep
- Worth the token cost? → keep only if applies to 3+ future sessions
Plan. Show a change table:
# Action Target Why 1 UPDATE csharp.instructions.md Add collection expressions pattern 2 TRIM reactjs.instructions.md 180→95 lines, drop generic rules 3 DELETE stale-agent.md Never invoked Wait for approval before editing.
- Apply. Edit your copilot config. One logical change per write. Stop on failure.
- Verify. Run this checklist — don't skip items:
- YAML frontmatter parses on every changed file
- Symlinks intact (
ls -la ~/.copilot/still points intobrain/copilot/) - applyTo globs match real files (
find ~/code -name '*.cs' | head -3) - Trigger keywords on modified skills — would Copilot match on phrases you actually use?
- Cross-refs resolve — if renamed/moved anything,
grep -r 'old-name' ~/.copilot/returns empty - Memory writes landed (
memory view /memories/spot-check) - Git diff shows only intended files (
git diff --stat copilot/) - Token budget — top-10 instruction line counts didn't balloon
- Commit + push.
chore: flywheel — {one-line summary}
Memory cleanup (runs as part of step 2)
/memories/*.md: delete stale entries, trim files > 150 lines/memories/repo/*.md: delete date-prefixed files older than 14 days- Don't invent cleanup work. If everything's healthy, say so.
Mode 2: /flywheel {path} — Optimize a Repo
Target: any project repo in your workspace
Flow
Two phases for quality: scan everything in parallel first, then fix one area at a time.
Phase A — Parallel scan. Spawn 6 read-only subagents (one per area). Each returns findings + recommendations. Areas:
1. structure — folder layout, README accuracy, build scripts, .gitignore
2. deps — outdated packages, security advisories, version drift
3. patterns — code patterns that should be hardened (auth, error handling, config)
4. bugs — actual defects (data loss, crashes, logic errors)
5. features — docs/README lagging behind implemented features
6. integration — cross-repo wiring (mcp.json refs, brain cross-refs, tool names)Phase B — Serial apply. For each area in order:
- Triage findings (apply safe high-value items, defer risky ones)
- Edit files
- Build/test
- Commit:
{type}: flywheel [{area}] — {summary} - Move to next area
If build fails: stop, show user, ask before continuing.
Rules for repo flywheel
- Top improvements only — don't rewrite the whole repo
- Match existing architecture and style
- Each area commits independently (easy to revert one without the others)
- Write deferred items in commit body for future runs
Watchlist
Your flywheel-watchlist.yml has:
- Section A (user-managed): repos you trust and learn from
- Section B (copilot-managed): repos discovered by scout, auto-retired when stale
- Section C (platforms): where to search for new repos
- Section D (release feeds): vendor release notes to scan
- Stack defaults: pinned versions for drift detection
The flywheel_scout worker reads this file weekly and generates the scout report automatically.
Report
After each run, log the results:
# Flywheel — {date} [{target}]
## Changes
| # | Action | Target | Status |
|---|--------|--------|--------|
## Deferred
- {items not applied, with rationale}
## Verification
- Build: {pass/fail}
- Tests: {pass/fail/N/A}Anti-Patterns
- Don't add a pattern just because it looks cool — it must solve friction you actually hit
- Don't restructure multiple things in one run — one structural change max
- Don't skip verification
- Don't edit shared work repos via flywheel (separate review process)
Relationships
flywheel_scoutworker generates the weekly intel automaticallyflywheelMCP server providesflywheel_scouttool for live scouting/delegatereceives larger items that don't fit a single flywheel run- Your daily workflow mentions pending scout reports on Mondays
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
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.

