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

vendoring-skills

Skill3 starsChanged 4 months agoMITView on GitHub

Procedure for importing a THIRD-PARTY Claude Code skill (a SKILL.md pack from GitHub etc.) into this harness. Use when the user asks to "install/add/vendor a skill", points at an external skill repo, or wants a skill pack available across the fleet. Covers trunk-vs-account placement, slimming heavy media, provenance for re-vendoring, and the lint B3 allowlist when the skill exceeds the body cap. Skipping it leads to tens of MB of binaries in the trunk, a CI-breaking oversized SKILL.md, or a forked brain.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Default to the shared trunk skills/ (kernel prime directive 6, ONE TRUNK): one brain, every account sees it via the config-dir symlink (on …

    line 13
  2. Very specific:

    Add a provenance: line to the vendored SKILL.md: upstream URL + commit sha + date.

    line 32
  3. Very specific:

    Do NOT gut the upstream file to fit.

    line 37

≈ “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.

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

Vendoring a third-party skill

Importing an external skill is NOT authoring a harness learning — it is adding a vendored dependency. Keep it traceable and lean.

Placement

Default to the shared trunk skills/ (kernel prime directive 6, ONE TRUNK): one brain, every account sees it via the config-dir symlink (on Windows that link must be a REAL symlink, not an MSYS ln -s copy, or the account forks the trunk — see ADR 0004). Raise account-local isolation only if the user needs real credential/scope separation — don't over-argue it when they said "to my account"; the trunk is the default.

Install — do NOT use npx skills add for trunk vendoring

npx skills add <repo> pulls the WHOLE repo and symlinks it into an agent skills dir — wrong for a slimmed, committed trunk artifact. Instead:

  1. git clone --depth 1 <repo> into a gitignored scratch dir (e.g. under .claude-private/.../_staging); clean it up after.
  2. Copy only the functional skill into skills/<name>/: SKILL.md + references/ + scripts/ + small functional assets (.jsx/.html/.js/.svg/.json).
  3. DROP heavy / non-functional media: audio/BGM (.mp3), showcases/, sfx/, demos/, sample dirs. (huashu-design went 32 MB → 814 KB this way.) State plainly what you dropped.

Provenance & updates

Add a provenance: line to the vendored SKILL.md: upstream URL + commit sha + date. Updates = re-vendor (re-clone, re-slim), never hand-edit the body — or you lose the ability to track upstream.

When SKILL.md exceeds the B3 body cap (200 lines)

Do NOT gut the upstream file to fit. Add the skill PATH to the human-gated VENDORED_SKILLS allowlist (the B3 waiver) in lint/lint_harness.py — create it if it does not exist yet. That is an enforcement-layer edit, so go via /harness-pr (HUMAN_APPROVED marker → harness-auditor → /run-evals → human merge). The allowlist is path-gated; never a self-asserted frontmatter flag (see skill harness-authoring).

Flag the gaps, don't recite them

Bundled scripts usually need external runtime deps (node/ffmpeg/puppeteer/API keys) and the dropped media. Capture each as a follow-up (harness followup add); end with a count line, surface on pull (skill follow-up-handling).

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.