agentleFS
AnmarHaniAnmarHani/SwarmVault/skills/swarm-skill-forge/SKILL.md

swarm-skill-forge

Skill5 starsChanged 4 months agoMITView on GitHub

Author new high-quality skills that trigger reliably and stay lean. Use when creating or editing a skill, packaging a workflow as a skill, or deciding whether something should be a skill at all.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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
  1. Distinctive:

    Degrade, don't downgrade: write the vault path first and fullest, then the fallback.

    line 41
  2. Distinctive:

    Trigger dry-run: write 3 paraphrases of how a user would ask.

    line 49
  3. Distinctive:

    Altitude check: delete every line the model would do correctly anyway — a skill states only what defaults get wrong.

    line 53

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

swarm-skill-forge — skill authoring

A skill is packaged judgment: instructions a future agent follows instead of its defaults. Write one only when that trade is worth it.

Gate: should this be a skill?

  • Recurring task with a non-obvious right way → skill.
  • Single fact or preference → memory note. Project convention → CLAUDE.md/AGENTS.md line.
  • One-off → nothing. When in doubt, don't — catalogs rot.
  • Overlap check first: ls the installed skills; if an existing skill covers 70% of the job, extend it instead of adding a sibling (two skills for one job = router confusion).

Structure

---
name: kebab-case-verb-or-domain
description: <what it does> + <every trigger phrasing a user might use>. The
  description IS the router — write it for the model deciding whether to load.
---
# Name — one-line job
Gate / when NOT to use.
Numbered steps, imperative, each observable ("run X, expect Y").
Rules the defaults would get wrong.
Worked example (input → output).
  • Platform-agnostic markdown only — it must read the same via Claude Code skills and a Codex AGENTS.md index.
  • Portable on its own (NFR-C4): the folder must work when copied out alone, with no vault, no swarmvault.py, and no siblings installed. Name peer skills by what they add, never as a prerequisite, and give every vault-backed path a local fallback ("voice.md in the vault, else .writing/voice.md"). Skills about the vault are the exception. Degrade, don't downgrade: write the vault path first and fullest, then the fallback. A skill weakened so a lone copy can satisfy it has failed this rule, not passed it.
  • Heavy reference material (> ~150 lines) → references/*.md, loaded on demand; the SKILL.md tells the reader which reference to load when.
  • Machine-lane style for checklists/tables; prose where nuance matters.

Verify before shipping (skills are code — test them)

  1. Trigger dry-run: write 3 paraphrases of how a user would ask; does the description clearly fire for them — and clearly NOT fire for near-misses?
  2. Toy walk: execute the skill on a small real case; every step must be doable without information the skill forgot to mention.
  3. Altitude check: delete every line the model would do correctly anyway — a skill states only what defaults get wrong.

Ship

Project skills → .claude/skills/<name>/ + an AGENTS.md index line (name, description, when-to-use, path) for Codex. Contributions to SwarmVault itself → canonical skills/

  • a CREDITS.md entry if the technique has an upstream.

Influences: superpowers writing-skills; Pocock's writing-great-skills — see CREDITS.md.

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.