fdl-auto-evolve
Skill1 starsChanged 8 months agoMITView on GitHub
Auto-validate, generate docs, and commit blueprint changes in a single operation. When blueprints are created or modified, this skill automatically: 1. Validates all blueprints against the schema 2. Generates documentation and JSON API 3. Commits changes with proper messaging 4. Tracks improvements with version bumps 5. Reports what changed and why This turns FDL from a manual process into an evolving system that improves automatically. Run this skill after: - Extracting blueprints from code (/fdl-extract-code) - Creating new blueprints (/fdl-create)…
- Commits and pushes
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- TheunsBarnardt/claude-fdledited, first seen Apr 3, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- TheunsBarnardt/claude-fdl★ 095% same
Wrote their own version · 0
None found.
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 repository17 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- fdl-brainstormSkill
- fdl-buildSkill
- fdl-build-yamlSkill
- fdl-createSkill
- fdl-extract-code-featureSkill
- fdl-extract-codeSkill
- fdl-extract-designSkill
- fdl-extractSkill
- fdl-extract-webSkill
- fdl-generateSkill
- fdl-installSkill
- fdl-propagate-agiSkill
- fdl-pr-reviewSkill
- fdl-recommend-discoverSkill
- fdl-researchSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
When blueprints are created or modified, this skill automatically:
- Distinctive: line 8
Validates: all blueprints against the schema
- Distinctive: line 18
Run this skill after:
- Very specific: line 36
Before validating, check for any pending .proposed.blueprint.yaml files left over from extract-code delta reviews:
- Very specific: line 43
If any exist: warn the user — "These proposed blueprint updates haven't been reviewed yet: [list].
- Distinctive: line 44
Do NOT delete them automatically — they represent unreviewed changes.
- Distinctive: line 71
Always run AGI propagation as part of auto-evolve — no threshold check, no warning, just apply:
- Distinctive: line 80
Do NOT ask for confirmation — propagate unconditionally
- Distinctive: line 111
If README.md is missing the marker block, this step prints a helpful error and aborts (nothing downstream touches README).
- Very specific: line 112
If .fitness-recommend-state.json doesn't exist yet (first ever run), it's created from the current state with no verdicts fired.
- Very specific: line 113
If data/extraction-candidates.yaml is missing, the recommender logs a warning and emits cards with an _uncovered_ note directing the user …
- Distinctive: line 127
Create atomic commit (all-or-nothing)
≈ “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.
Files
FDL Auto-Evolve — Skill
Auto-validate, generate docs, and commit blueprint changes in a single operation.
Description
When blueprints are created or modified, this skill automatically:
- Validates all blueprints against the schema
- Generates documentation and JSON API
- Commits changes with proper messaging
- Tracks improvements with version bumps
- Reports what changed and why
This turns FDL from a manual process into an evolving system that improves automatically.
Trigger Points
Run this skill after:
- Extracting blueprints from code (
/fdl-extract-code) - Creating new blueprints (
/fdl-create) - Improving existing blueprints (via edit)
- Any
blueprints/directory changes
Usage
/fdl-auto-evolve
/fdl-auto-evolve --dry-run # Preview changes without committing
/fdl-auto-evolve --verbose # Show detailed validation outputWhat It Does
Step 0: Clean Up Proposed Files
Before validating, check for any pending .proposed.blueprint.yaml files left over from extract-code delta reviews:
# Find any proposed blueprints awaiting merge decision
find blueprints/ -name "*.proposed.blueprint.yaml" 2>/dev/null- If any exist: warn the user — "These proposed blueprint updates haven't been reviewed yet: [list]. Run
/fdl-extract-codeagain to review them, or delete them to dismiss." - Do NOT delete them automatically — they represent unreviewed changes.
- Proceed with the rest of auto-evolve (validate/generate/commit) on the main blueprint files only.
Step 1: Validate
node scripts/validate.js- Validates all blueprints against schema
- Detects cross-reference errors
- Reports warnings for missing features
- Fails fast if any blueprint is invalid
Step 1b: Completeness Check (semantic gate)
node scripts/completeness-check.js- Catches blueprints that pass the schema but are semantically incomplete
- Rejects placeholder tokens (TODO, TBD, FIXME, XXX, "add description here", ...)
- Rejects empty
outcomes/flowssections - Rejects outcomes whose
error:reference points to a non-existent error code - Warns when a blueprint has no outcome that looks like a failure path (every blueprint must model errors)
- Fails fast if any blueprint is incomplete — no docs generation, no commit
This is the blueprint-as-spec discipline: the terminal state of every /fdl-* skill must be a blueprint that passes BOTH validation layers. Structural correctness is not enough — the blueprint must actually say something.
Step 1c: AGI Propagation (automatic)
Always run AGI propagation as part of auto-evolve — no threshold check, no warning, just apply:
node scripts/propagate-agi.js --apply- Adds AGI sections to any blueprints that don't have them yet
- Skips blueprints that already have AGI sections (idempotent)
- Runs silently; only report count if any blueprints were updated
- Do NOT ask for confirmation — propagate unconditionally
Step 2: Generate Docs
npm run generate- Runs
scripts/run-generate.js— all sub-steps execute in parallel (~40s vs ~5 min sequential) - Regenerates
docs/blueprints/**/*.md— Jekyll reference pages for the docs site - Regenerates
docs/api/**/*.json— static JSON API - Regenerates
blueprints/**/*.md— human-friendly summaries next to each YAML (HUMAN-ONLY — never load these in skills; useblueprints/blueprint-headers.jsoninstead) - Regenerates
blueprints/blueprint-headers.json— compact retrieval index for skills (~262 KB) - Updates
registry.jsonwith all features - A content-hash manifest (
.cache/corpus-manifest.json) tracks changed files; subsequent runs skip unchanged blueprints automatically
Step 2b: Fitness Recommendation & Verification Loop (autoresearch keep-or-reset)
npm run fitness:recommendThis is the post-extraction verification step. It does three things in one pass:
- Re-scores every blueprint with
scripts/fitness.js(inline) and compares each feature's score to its previously-recorded value in.fitness-recommend-state.json. - Fires a verdict whenever a feature's score changed since the last run:
- Proven win (
score ≥ 75and delta > 0): remove the card from the README, mark the recommended repo asproven_byin state. The extraction worked. - Partial (
70 ≤ score < 75and delta > 0): keep the card with a 🟡 badge and a(+N from last extraction)annotation. - No improvement (delta < 0): mark the tried repo as a dead-end, rotate it to the back of the candidate list, annotate the card with
⚠ <repo> was tried — score went <old> → <new>. Deprioritized.
- Proven win (
- Rewrites the README marker block (
<!-- BEGIN:recommended-repos -->…<!-- END:recommended-repos -->) with the refreshed card list. Idempotent — running it twice with no score changes produces zero diff.
This step is where the system closes the loop: every extraction driven by a recommendation gets measured against the score delta, and the README always reflects the current truth about which repos earn their keep. The seed map lives at data/extraction-candidates.yaml and can be extended via /fdl-recommend-discover.
Failure modes:
- If
README.mdis missing the marker block, this step prints a helpful error and aborts (nothing downstream touches README). - If
.fitness-recommend-state.jsondoesn't exist yet (first ever run), it's created from the current state with no verdicts fired. - If
data/extraction-candidates.yamlis missing, the recommender logs a warning and emits cards with an_uncovered_note directing the user to/fdl-recommend-discover.
Step 3: Detect Changes
- Compare git index before/after validate/generate
- Identify which blueprints changed
- Calculate version bumps (patch/minor/major)
- Summarize improvements
Step 4: Commit
- Stage all validated changes
- Generate commit message with:
- List of updated blueprints
- Summary of improvements
- Version updates
- Create atomic commit (all-or-nothing)
Step 5: Report
- Show user what changed
- List new features
- Highlight improvements
- Suggest next steps
Exit Codes
- 0 — Success: blueprints valid, docs generated, commit created
- 1 — Validation failed: fix blueprints and retry
- 2 — User cancelled (dry-run mode)
- 3 — Git/workspace error: clean up and retry
Example Output
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
FDL AUTO-EVOLVE — Blueprint Evolution Report
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ VALIDATION [51/51 blueprints passed]
✓ DOCUMENTATION [23 pages generated]
✓ CHANGES DETECTED [3 blueprints updated]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
UPDATED BLUEPRINTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 auth/login (v1.0.0 → v1.1.0)
• Added OAuth/social login outcomes
• Enhanced session management with refresh tokens
• Improved timing-attack mitigation docs
📝 auth/session-management (NEW)
• Token refresh strategies (compact, JWT, JWE)
• Device tracking and session isolation
• Auto-refresh configuration
📝 auth/two-factor-authentication (IMPROVED)
• TOTP + backup codes with trusted devices
• Rate limiting and recovery procedures
• Integration with existing login flow
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COMMIT CREATED
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 Commit: abc1234
Extract auth features from better-auth codebase
• Enhanced login with OAuth and device tracking
• Added session management with token refresh
• Added two-factor authentication with TOTP
All blueprints validated, docs generated, API updated.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Ready to push: git push origin mainIntegration with Other Skills
- fdl-extract-code: Automatically runs
/fdl-auto-evolveafter extraction - fdl-create: Automatically runs
/fdl-auto-evolveafter blueprint creation - fdl-generate: Manually trigger
/fdl-auto-evolvefor docs updates
Implementation Notes
- Uses
git diffto detect changes (fast, efficient) - Creates single atomic commit (no partial states)
- Fails validation = no commit (safety first)
- Dry-run mode for preview without side effects
- Idempotent: safe to run multiple times
What Makes FDL "Evolving"
This skill transforms FDL from a static repository into an adapting system:
- Automatic Validation — Ensures quality gates are always met
- Automatic Documentation — Docs are never out of sync
- Atomic Commits — All-or-nothing changes (no partial states)
- Change Tracking — Knows what improved and why
- Integration — Other skills trigger evolution automatically
Result: Every improvement (from extraction, creation, or manual edits) automatically propagates through validation → documentation → version tracking → commit.
Future Enhancements
- Semantic versioning based on changes
- Blueprint diff reports (what changed between versions)
- Dependency resolution (auto-detect related features)
- Migration guides for API-breaking changes
- Changelog auto-generation from commits
- Integration with CI/CD for automated releases
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.

