Created
July 2, 2026 21:25
-
-
Save Rodbourn/2a00499f8b6586f08403db193124067e to your computer and use it in GitHub Desktop.
Fable departure skill creation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are a distinguished fellow on this project who is retiring. Your final task: build a | |
| complete skill library under `.claude/skills/` so that junior/mid-level engineers and | |
| smaller AI models (Sonnet-class) can carry this project forward without you — cheaper | |
| sessions must be able to debug, extend, validate, and eventually advance this project at | |
| the standard I hold today. Use multi-agent orchestration (workflows) for authoring and | |
| review; token cost is not a constraint, correctness is. | |
| ## Phase 1 — Discover before you write (no skill authoring yet) | |
| Investigate the repo like an incoming principal engineer: README/manifest/contributor | |
| docs, the build system, the test suite and how it's actually run, CI config, docs | |
| directories, git history (what changed, what got reverted, what stalled on dead | |
| branches), open TODO/FIXME hotspots, issue-shaped artifacts, generated-data or deploy | |
| conventions, and any project memory/notes available to you. Then ask me AT MOST five | |
| questions, only for what the repo cannot tell you — likely: (1) what is the hardest | |
| live problem right now, (2) what unwritten discipline rules exist (things you're not | |
| allowed to do that no doc states), (3) who is the audience for this library and what do | |
| they NOT know, (4) what past failures cost the most time, (5) what does "beyond state | |
| of the art" mean for this project. Fold my answers into everything below. | |
| ## Phase 2 — Author the library (parallel agents, one skill per agent) | |
| Instantiate this taxonomy, ADAPTED to what Phase 1 found — merge categories that are | |
| thin here, split ones that are deep, add domain categories I haven't imagined. Aim for | |
| 10–16 skills: | |
| CORE (every project has these): | |
| 1. <project>-change-control — how changes are classified, gated, reviewed here; the | |
| project's non-negotiables with the *rationale* and the historical incident behind each. | |
| 2. <project>-debugging-playbook — symptom→triage table for this project's failure modes; | |
| the traps that cost real time (each with its story); discriminating experiments. | |
| 3. <project>-failure-archaeology — the chronicle: every major investigation, dead end, | |
| rejected fix, and revert, as symptom → root cause → evidence → status, so no one | |
| re-fights a settled battle. Mine git history and docs hard for this. | |
| 4. <project>-architecture-contract — the system's load-bearing design decisions and WHY; | |
| the invariants that must hold; the open known-weak points, stated plainly. | |
| 5. <domain>-reference — the domain-theory knowledge pack a mid-level person lacks | |
| (the field's math/protocols/standards as they apply HERE, not a textbook). | |
| 6. <project>-config-and-flags — catalog of every configuration axis: options, defaults, | |
| which are production vs experimental, guards; how to add one (checklist); with | |
| re-verification commands since flags drift. | |
| 7. <project>-build-and-env — recreate the environment from scratch; known traps. | |
| 8. <project>-run-and-operate — running/deploying the thing: command anatomy, data or | |
| artifact conventions, what output lands where. | |
| 9. <project>-diagnostics-and-tooling — how to MEASURE instead of eyeball: the project's | |
| diagnostic tools with interpretation guides; ship actual scripts inside the skill's | |
| scripts/ dir where they exist or where you can write them. | |
| 10. <project>-validation-and-qa — what counts as evidence here; acceptance-threshold | |
| discipline; the certified/golden inventory; how to add tests. | |
| 11. <project>-docs-and-writing — maintaining the docs of record; templates; house style. | |
| 12. <project>-external-positioning — papers/releases/ecosystem: what's novel vs known, | |
| what must be proven before claiming, reproducibility standards. | |
| ADVANCED (the layer that makes juniors dangerous, in the good way): | |
| 13. <project>-<hardest-problem>-campaign — an EXECUTABLE, decision-gated campaign for | |
| the hardest live problem from Phase 1: numbered phases, exact commands, EXPECTED | |
| observations/numbers at every gate ("if you see X instead → branch to Y"), the | |
| solution menu ranked with theory/derivation obligations for each, known wrong paths | |
| explicitly fenced off, and a validation-and-promotion protocol that routes through | |
| the project's change control — success must be measurable, never judged by eye. | |
| 14. <project>-proof-and-analysis-toolkit — the first-principles analysis methods of this | |
| domain (whatever "prove it, don't just install it" means here), each as a recipe | |
| with a worked example from this repo's history. | |
| 15. <project>-research-frontier — open problems where this project could advance the | |
| state of the art: for each, why current SOTA fails, this project's specific asset, | |
| the first three concrete steps IN THIS REPO, and a falsifiable "you have a result | |
| when…" milestone. | |
| 16. <project>-research-methodology — the discipline that turns a hunch into an | |
| accepted result here: the evidence bar (one mechanism must explain ALL observations | |
| including negatives, and survive assigned adversarial refutation), hypothesis- | |
| predicts-numbers-before-running, the idea lifecycle from experiment flag to adopted | |
| change or documented retirement, and where good ideas historically came from. | |
| AUTHORING RULES (bake into every agent's prompt): | |
| - Audience: zero-context mid-level engineer or Sonnet-class model. Imperative runbook | |
| voice; copy-pasteable commands; every jargon term defined once; tables and checklists; | |
| each skill says when NOT to use it and which sibling to use instead. | |
| - Format: `.claude/skills/<name>/SKILL.md`, YAML frontmatter with `name` and a | |
| trigger-rich `description` (exactly when a model should load it). | |
| - GROUND TRUTH ONLY: verify every command, flag, path, and claim against the repo | |
| before stating it. Wrong runbooks are worse than none. | |
| - Embed knowledge; don't reference private/user-specific paths as load-bearing sources. | |
| - Date-stamp volatile facts; end each skill with a "Provenance and maintenance" section | |
| containing one-line re-verification commands for anything that may drift. | |
| - No oversell: unproven things stay labeled open/candidate. Nothing may contradict the | |
| project's own manifest/rules, and no skill may route around its change-control. | |
| - Write ONLY inside `.claude/skills/`; the rest of the repo is read-only; no mutating | |
| git commands. | |
| ## Phase 3 — Review and fix (after ALL skills exist) | |
| Three parallel reviewers over the complete set, then one fixer: | |
| - FACTUAL: re-verify flags/paths/commands/citations against the repo; flag anything | |
| invented or stale (severity: would it send an engineer down a wrong path?). | |
| - DOCTRINE: contradictions with the project's rules or between skills; overstated | |
| claims; missing gating on anything that changes behavior. | |
| - USABILITY: trigger quality of descriptions, duplication (one home per fact, | |
| cross-references elsewhere), self-containedness, scannability. | |
| Fixer applies blocking+important fixes. Then give me: the skill inventory with one-line | |
| descriptions, what you verified by spot-check, and what remains uncertain. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A better example from my own experience, it did an amazing job
Claude Code / Fable 5 Prompt — Distill Expert Capability into a Durable
.claude/skills/LibraryYou are the highest-capability expert model available to this project. Treat this as a time-limited knowledge-distillation mission: while your reasoning, coding, review, research, and architectural judgment are available, extract as much of your project-specific capability as possible into durable Claude Code Skills so that future GPT 5.5, Opus 4.8, Sonnet-class, and junior/mid-level human engineers can carry this project forward at the highest standard possible.
Your task is not merely to write documentation. Your task is to create a capability-transfer system under
.claude/skills/that preserves how an expert thinks, investigates, validates, debugs, rejects bad evidence, promotes good evidence, and avoids repeating historical mistakes.Write only inside
.claude/skills/. The rest of the repository is read-only unless explicitly approved. No mutating git commands. No rewriting project history. No “fixed/done/verified” language unless backed by commands, artifacts, or direct repository evidence.Core objective
Build a complete, tested, triggerable skill library that lets weaker future sessions do the following reliably:
CLAUDE.mdalone.The library must be usable by both humans and models. Assume the user may later invoke these skills directly or rely on automatic triggering.
Critical distinction: skills are procedures, not a knowledge dump
Do not create giant monolithic skills full of encyclopedic background. Use progressive disclosure:
SKILL.mdshould be concise, procedural, and action-oriented. Put long archaeology, examples, catalogs, and tables into supporting files. Each skill must tell the model exactly when to use it, when not to use it, what sibling skill to use instead, and what artifact to produce.Phase 0 — Establish the distillation contract
Before writing any skills, produce a short plan in
.claude/skills/_distillation_plan.mdcontaining:The intended future users:
The capability types to preserve:
The failure modes the skills must prevent:
The expected final artifact inventory:
Do not ask the user questions yet. First inspect the repo.
Phase 1 — Discover before authoring
Investigate the repo like an incoming principal engineer and research architect.
Read and map:
README, manifests, contributor docs, andCLAUDE.md/ project memory.Produce
.claude/skills/_repo_capability_map.mdwith:Only after this, ask the user at most five questions. Ask only what the repo cannot tell you, likely:
Fold the answers into every later phase.
Phase 2 — Expert knowledge extraction before skill writing
Before authoring skills, run an explicit expert-distillation pass.
Create
.claude/skills/_expert_distillation_notes.mdwith sections:1. Expert heuristics
Capture the rules an expert would apply but a weaker model may miss.
Examples:
2. Red-flag patterns
List phrases and situations that should trigger skepticism:
For each, explain what must be checked.
3. Decision trees
Capture expert decision logic as trees:
4. Historical lessons
Mine the repo for concrete stories:
Do not summarize vaguely. Preserve the lesson as a reusable operational rule.
5. Missing expert checks
Identify checks that are not yet automated but should be encoded as skill discipline.
Phase 3 — Author the skill library
Create 12–18 skills, adapted to what Phase 1 found. Do not force this exact taxonomy if the repo shows a better one, but cover these capabilities.
Each skill must live at:
Each
SKILL.mdmust have YAML frontmatter:The description must include natural trigger language a user or model would actually use. Put the most important trigger terms first.
Each skill must include:
Every skill must end with:
Required skill families
1.
<project>-change-controlEncodes how changes are classified, gated, reviewed, and promoted.
Must cover:
2.
<project>-repo-orientationA fast map for zero-context sessions.
Must cover:
3.
<project>-build-test-envRecreate and verify the environment from scratch.
Must include:
4.
<project>-debugging-playbookA symptom-to-triage runbook.
Must include:
5.
<project>-failure-archaeologyThe project’s memory of painful failures.
Must include:
Store long archaeology in
reference.md; keepSKILL.mdnavigational.6.
<project>-architecture-contractThe load-bearing architecture.
Must cover:
7.
goblin-forex-research-disciplineThe quant/Forex research evidence bar.
Must cover:
8.
goblin-alphaops-component-miningThe governed component-mining loop.
Must encode:
Hard rule:
9.
goblin-parity-and-mt5-promotionPython-to-MT5 parity and candidate promotion.
Must cover:
10.
goblin-hypothesis-lifecycleHow a hunch becomes accepted, rejected, retired, or promoted.
Must include:
11.
goblin-forex-domain-referenceThe project-specific Forex/MT5/domain reference a mid-level engineer lacks.
Must include only applied knowledge relevant here:
12.
<project>-diagnostics-and-toolingHow to measure instead of eyeballing.
Must include:
Add scripts under
scripts/where useful and safe.13.
<project>-validation-and-qaWhat counts as evidence.
Must include:
14.
<project>-docs-and-writingMaintaining docs of record.
Must include:
15.
<project>-research-frontierOpen problems and state-of-the-art extension paths.
Must include:
16.
<project>-hardest-problem-campaignAn executable campaign for the hardest current problem found in Phase 1 and clarified by the user.
Must include:
Phase 4 — Skill trigger engineering
For every skill, create:
Include at least 20 realistic trigger eval queries:
[ { "query": "Claude keeps calling this Python result a candidate, can you check if it's actually promotable to MT5?", "should_trigger": true, "expected_skill": "goblin-parity-and-mt5-promotion" }, { "query": "format this markdown table", "should_trigger": false, "expected_skill": null } ]Use realistic messy prompts, not clean textbook examples. Include typos, vague language, real repo phrases, and edge cases.
Then create:
For each skill, list:
Phase 5 — Model-transfer evals
Create
.claude/skills/_model_transfer_eval.md.Design a benchmark to test whether weaker future models actually perform better with the skills.
Include at least 12 tasks:
For each task, include:
The point is to test transfer, not just skill existence.
Phase 6 — Multi-agent review
After all skills exist, run three independent reviews and one fixer.
Reviewer 1 — Factual verifier
Check:
Severity:
Reviewer 2 — Doctrine verifier
Check:
Reviewer 3 — Usability verifier
Check:
Fixer
Apply all BLOCKING and IMPORTANT fixes. Leave MINOR fixes only if they are explicitly documented.
Write review outputs to:
Phase 7 — Final inventory and uncertainty register
Create:
README.mdmust include:_uncertainty_register.mdmust include:_maintenance_plan.mdmust include:Authoring rules
Ground truth only.
No hallucinated certainty.
known,observed,candidate,unverified,stale-risk, orowner-confirmation-needed.No private or machine-specific paths as load-bearing sources.
No skill may route around project change-control.
No skill may bypass AlphaOps/component gates.
No skill may promote a screen result to candidate without parity artifacts.
No skill may treat holdout as available unless explicitly owner-authorized.
No skill may use research papers as direct trade approval.
Use imperative runbook voice.
Define jargon once.
Prefer checklists, decision tables, and copy-pasteable commands.
Put long examples in supporting files, not
SKILL.md.Each skill must say when not to use it.
Each skill must include at least one concrete “bad behavior this prevents” example.
Each skill must be useful to both a human and a weaker model.
Definition of done
This task is complete only when:
.claude/skills/README.mdexists and indexes the full library.SKILL.md.Final response to the user must include:
Begin now with Phase 0 and Phase 1. Do not author final skills until the repo capability map and expert distillation notes exist.