agentleFS
ShaftHQShaftHQ/chaosengine-harness/skills/learn-from-external-harnesses/SKILL.md

learn-from-external-harnesses

Skill5 starsChanged 5 days agoMITView on GitHub

Use when asked to scan, analyze, or learn from an external repository, skill set, or agent harness.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Before judging the source, inventory what is already local:

    line 18
  2. Distinctive:

    Do not copy prompts, templates, adapters, or constants.

    line 44
  3. Distinctive:

    new: no local file owns the job, the idea is worth a skill or module, and every anti-bloat gate in §6 passes.

    line 60
  4. Distinctive:

    All of these must hold. A failed gate turns a new row into reject or improve-existing.

    line 83
  5. Distinctive:

    Size cap: Keep a new or edited skill tight (aim under ~150 lines.

    line 89
  6. Distinctive:

    Always-on cost: Do not add always-loaded routes, MCP tool schemas, or SessionStart bodies to pay for a study.

    line 90
  7. Distinctive:

    Token budget: Prefer a compact mapping table and a pointer over pasted upstream docs.

    line 91
  8. Distinctive:

    If the harness has an eval-gated or opt-in path for skill PRs, any later apply uses that path.

    line 101

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

Learn from external harnesses

1. Intake

  1. Name the source (URL or path), the question being asked, and the local harness that would change. Verify the source is what it claims (real owner, not a fork or impostor).
  2. Clone or fetch a pinned revision. Record the exact commit SHA (40-hex), the date, the default branch, and the release tag if any. Do not analyze a floating HEAD and then forget what you read. A study reads pinned files and runs none of the source's code, installers, or hooks.
  3. Scope what you will read (README, skills, rules, commands, templates, hooks, docs, licence). For large trees, bound the inventory (docs, extension seams, deferred candidates) and record what you did not read, and why.
  4. Maturity and safety check beside the licence: pre-release or preview status, breaking-change warnings, SAFETY or security notes, and whether it was ever audited.
  5. Find prior studies of the same source first: research notes, RESEARCH.md-style logs, third-party notices, and open and closed issues or PRs. If that search finds none, record previous pin: none (first look). Otherwise treat this pass as a delta against the last pin.

2. Inventory the local harness first

Before judging the source, inventory what is already local:

  • The skill registry or index (every registered skill: id, path, trigger / "when to use", owner or family, links from call sites).
  • Adjacent rules, references, commands, templates, and hooks that already own the same job.
  • Anti-bloat and learning paths already in the harness (retirement, compression, eval gates, "ticket first" rules). Call those paths; do not restate them.

A local inventory that is skipped is a failed pass: you cannot claim "new" without evidence of "already have."

3. Inventory the source

List, with paths:

  • Skills, rules, commands, templates, hooks, workflows, and notable invariants.
  • How the source itself registers, versions, and retires them (if it does).
  • Size and token cost of always-on surfaces (MCP schemas, always-loaded prompts, SessionStart dumps).

Pin quotes to file path + SHA. Do not invent features from a star count or a marketing README alone.

4. License, attribution, and provenance

Record, from primary files (LICENSE, SPDX on the host API, package / pyproject / CITATION):

  • Licence name and SPDX (or NOASSERTION / missing). A missing or incompatible licence blocks vendoring and blocks copying source. Ideas may still be described, but only as original local prose.
  • Copyright holder. Compatible licence is not permission to vendor a second stack.
  • Provenance line: source URL + commit SHA + date studied. Carry this line into the output ticket.

Do not copy prompts, templates, adapters, or constants. Reimplement any adopted idea in original language that fits the local harness.

5. Mapping table (required)

For every candidate idea, one row, with evidence (local path, source path + SHA):

IdeaVerdictEvidenceProposed local changeEffort / priority
…already-have / improve-existing / new / reject………

A learning request is an initial wish and does not promise a lessons spec. See #417 and #418. Every candidate idea has one existing verdict (already-have / improve-existing / new / reject). already-have and reject never become a ticket or a REQ. If none survive as improve-existing or new, the result is a short disposition and no lessons spec and no new issue. A later "just spec it" does not waive that unless the owner names a use case that changes a verdict. The same rules cover a link, repo, doc, post, video, owner correction, retro, or failure. Worked example: the aictx review on 2026-11-29 wrote a disposition and no lessons spec. Safety findings may still be filed under #417's near-miss rule.

Verdict rules:

  • already-have: the local harness already does this. Cite the file. Do not add a parallel skill.
  • improve-existing: the idea is real and a named local file already owns the job. Propose the smallest edit to that file. Prefer this over new.
  • new: no local file owns the job, the idea is worth a skill or module, and every anti-bloat gate in §6 passes. Default is not new.
  • reject: licence, duplication, bloat, a measured failure the source itself walked back, a second runtime, or a surface the local harness already forbids. Give a reason.

An explicit do-not-adopt list is required, even if short.

5.1 Filing gate

Each REQ carries use-case: naming an incident, a current job, or an owner ask. A REQ without one moves to the do-not-adopt list with reopen-trigger:. Only improve-existing or new verdicts become tickets. already-have and reject never do. Drafts in one session are compared to each other and to open and closed issues before filing. Default cap is 3 REQs per source unless an owner message id raises the cap. Zero REQs is valid and the study comments on the closest issue instead of opening an empty epic. The spec records the planned count.

5.2 Speaker

Every decision, number, or preference names its speaker. The owner needs a message id and a short verbatim quote. An agent proposal names the agent. A source names a path and SHA or a URL. A body that says the owner wants, asked, decided, chose, or set something without a message id fails the check.

Decisions keep this table:

Date (Africa/Cairo)Decided byDelegated byDecision
YYYY-MM-DDagent name, or owner message id plus a short verbatim quoteowner message id when delegated, otherwise —the decision

A delegated decision records Decided by the agent and Delegated by the owner with an id.

6. Anti-bloat gates

All of these must hold. A failed gate turns a new row into reject or improve-existing.

  1. Prefer merge. Adding a skill is the last option, not the first.
  2. Dedupe by name and by intent. Two skills that fire on the same job are one skill, even if the titles differ.
  3. Every new skill is first-class: registered in the local index or registry; linked from the call site that should load it; given a clear trigger ("use when…"); given an owner or family; given a removal or usage check (see §8). An untracked, unlinked, or unused skill must not be added.
  4. No orphans. A file on disk that is missing from the index is a defect, including the one you are proposing.
  5. Size cap. Keep a new or edited skill tight (aim under ~150 lines; do not exceed the harness's published skill-body budget if it has one). Put deep reference material in a linked reference, not in the always-loaded body.
  6. Always-on cost. Do not add always-loaded routes, MCP tool schemas, or SessionStart bodies to pay for a study. On-demand only, unless the harness already requires that exact surface.
  7. Token budget. Prefer a compact mapping table and a pointer over pasted upstream docs. Progressive disclosure: load source files as needed, do not dump trees into the transcript.

7. Output is a tracked proposal

The output of this skill is a tracked ticket or draft-PR proposal, not a silent edit to skills, rules, or the registry. When no row survives as improve-existing or new, that output is the short disposition: no lessons spec and no new issue.

Dedupe the ticket: if an open adoption ticket for the same source exists, comment there. If the earlier ticket is closed or implemented, open a new delta ticket that links it rather than reopening it.

The ticket follows the harness's work-item or research-issue format if one exists. It includes: pin (URL + SHA), local revision studied, the previous pin it is a delta against or previous pin: none (first look), the mapping table, the do-not-adopt list, HOW and acceptance criteria for each adopt/improve row, licence, maturity and attribution, what was not read, and rollout phases. It does not authorize a merge by itself.

If the harness has an eval-gated or opt-in path for skill PRs, any later apply uses that path. Never auto-merge skill mutations. Never write a skill body "while you are here."

8. Periodic prune

On the harness's existing review cadence (or monthly, if none is written):

  • Usage or trigger counts for skills and rules added from external studies.
  • Zero-use items: retire, or write one sentence justifying keep.
  • Dedupe again by intent. Compress or merge rather than accumulate.
  • Feed back gaps found while running this skill into this skill, through the same ticket-first path.

This prune is part of the skill, not a second skill.

Worked example (github/spec-kit)

Pin: https://github.com/github/spec-kit @ 2ee2b1e8005905db05f5717300a469b3068b908f (v1.4.0, MIT). Inventory local owners first. Headings, specify/plan/tasks/implement, and constitution-shaped principles are already-have. Converge, cross-artifact analyze, bounded clarify, and a constitution check that cites the live principles file are improve-existing. specify CLI, .specify/, an MCP server, a host pack, a workflow engine, and copied prompts are reject. A new skill is new only when §6 passes. Deliver the tracked adoption issue, not a vendored clone.

Zero-REQ outcome for that pin: drafts in the session were compared to each other and to open and closed issues. Rows that look improve-existing already have tickets, and already-have and reject never become tickets, so the planned count recorded on the spec is 0. The study comments on the closest issue and does not open an empty epic.

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.