agentleFS
GhostlyGawdGhostlyGawd/recursive-harness/skills/specialization/SKILL.md

specialization

Skill3 starsChanged 4 months agoMITView on GitHub

Use immediately when no installed skill covers a reusable domain, or when feedback, a mistake, or a better process reveals that an existing skill is incomplete or wrong. Record the first observation, create or amend a private candidate, and dogfood it on the triggering case now. Follow provenance to improve the canonical skill instead of forking it. Recurrence strengthens evidence but never delays a proven correction.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    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
  1. Very specific:

    Read references/evolution-loop.md when classifying evidence or deciding whether a dogfood replay is strong enough.

    line 12
  2. Distinctive:

    Before minting a new domain, recall related evidence:

    line 17
  3. Distinctive:

    After authoring and successful dogfood, remove the draft marker and validate:

    line 89
  4. Distinctive:

    Do not install, push, or open a cross-repository change without approval.

    line 107
  5. Distinctive:

    Add the triggering case as a regression fixture.

    line 112
  6. Distinctive:

    Never edit an installed provider cache as canonical source.

    line 125

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Specialization

Turn the first useful observation into a tested candidate. Do not wait for a second session to learn; only permanent canonical changes wait for proof and review.

Read references/evolution-loop.md when classifying evidence or deciding whether a dogfood replay is strong enough.

1. Recall and classify

Before minting a new domain, recall related evidence:

python3 skills/specialization/needs.py match --domain "kafka consumer groups"

Classify the observation exactly once:

  • gap: no installed skill covers a reusable capability.
  • correction: existing guidance produced or encouraged a wrong result.
  • improvement: existing guidance worked, but feedback revealed a better process.

Project-only facts route to that project's instructions. A code defect routes to auto-healer. A reusable procedure routes here even on its first occurrence.

2. Record and create immediately

For a new capability:

python3 skills/specialization/needs.py add \
  --learning-kind gap --domain "kafka consumer groups" \
  --category infra --tags area:streaming,class:rebalance \
  --shape "had to derive why a consumer rejoin caused a full rebalance"

For an existing skill, follow its provenance to the canonical source and seed an amendment candidate from that source. Corrections and improvements require all three provenance arguments and a readable source skill; add rejects a generic sibling draft when any is missing or the target does not match source frontmatter. The source must resolve to a literal SKILL.md; a gap cannot carry owner inputs:

python3 skills/specialization/needs.py add \
  --learning-kind correction --domain "codex hook output" \
  --target-skill hook-authoring \
  --target-provenance "GhostlyGawd/recursive-harness@<commit>" \
  --source-skill skills/hook-authoring/SKILL.md \
  --shape "the documented output shape failed against the current host schema"

add appends compact evidence to the provider-neutral private ledger and creates or updates candidates/<domain-key>/ immediately. Never store transcripts or full prompts. Multiple observations in one provider session add shapes but count as one recurrence. If a generic gap later resolves to an existing owner, add archives the generic draft and rebases from that owner. It rejects a domain already bound to a different target skill, including a targetless gap observation; continue through the known owner or resolve the collision instead of clearing provenance.

3. Author and dogfood now

Open the candidate path printed by add. Replace its draft marker with the smallest evidence-shaped procedure. Use harness-authoring for duplication, provenance, source-of-truth, and budget checks.

Replay the triggering case with the candidate explicitly in context. Compare the actual before and after behavior, then record the result:

python3 skills/specialization/needs.py candidate dogfood <nid> \
  --case "consumer rebalance diagnosis" \
  --before "reasoned from scratch and missed the coordinator transition" \
  --after "candidate identified the transition and selected the verified fix" \
  --outcome worked --generalizes yes \
  --verification "replay fixture rebalance-v1 passed"

Log failed and partial replays too. Revise the same candidate; do not mint a sibling. A new gap needs two materially distinct worked cases for the current revision, including one marked generalizes=yes. A correction or improvement needs one worked replay with concrete verification.

After authoring and successful dogfood, remove the draft marker and validate:

python3 skills/specialization/needs.py candidate validate <nid>

Validation makes the candidate promotion-ready after the first observation when the proof is strong enough. Recurrence >= 3 only surfaces an unvalidated candidate for urgent review; count alone is never proof.

4. Promote through the canonical owner

promote-check shows proof-ready and recurring-unvalidated candidates:

python3 skills/specialization/needs.py promote-check

Do not install, push, or open a cross-repository change without approval. After approval:

  1. Strengthen the provenance owner when one exists; do not create an overlapping skill.
  2. Add the triggering case as a regression fixture.
  3. Regenerate provider packages from the canonical source and run shared fixtures.
  4. Land through the repository's guarded branch and review workflow.
  5. Close the loop with needs.py promoted <nid> --skill <name>.

Boundaries

  • A missing binary is acquired and verified; record a specialization only when the reusable acquisition procedure itself was the knowledge gap.
  • routing-learnings chooses the artifact; harness-authoring governs its form; this skill owns first-observation capture, candidate evolution, and dogfood.
  • auto-healer records code defects and attempted fixes. When the root is wrong or missing reusable guidance, route that learning back here.
  • Never edit an installed provider cache as canonical source. Follow provenance, update Recursive Harness, then regenerate and reinstall the adapter.

provenance: 2026-06-27, session 9f6014a0, original expert-accretion loop; revised 2026-07-18 after the owner required immediate first-observation creation plus dogfooded improvements to existing skills instead of recurrence-gated learning.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.