/ldaume-engineering:write-a-skillfrom ldaume-engineering
Creates, refactors, packages, and verifies portable Agent Skills across multiple agent hosts. Guides the full authoring workflow from grounding to invocation design.
Ships in ldaume-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A useful Skill narrows execution variance for a recurring class of work. Keep the contract small, observable, and portable.
This Skill owns the portable authoring workflow. A host-bundled creator, scaffolder, command, or plugin may add native metadata or validation after this contract is established; it never replaces the portable owner.
Read the repository instructions, root and category indexes, lockfile, target
SKILL.md, and its directly referenced resources. Detect the install targets,
validation commands, naming conventions, and public-source policy.
Identify every agent host that must discover or execute the Skill. Inspect its effective project, user, global, bundled, and plugin scopes rather than assuming the active host represents Claude Code, Codex, Cursor, Antigravity or Gemini CLI, pi, CI, or a later runtime.
Before creating a new Skill, use update-harness to check project, bundled,
and plugin owners and public candidates. Create only when no suitable owned
capability exists and repeated work supplies real examples and checks. Complete
a one-off task directly, even when it is difficult or risky. Use a local
wrapper instead of a fork when only target semantics differ.
Map existing behavior before choosing a preferred structure. Preserve local names and packaging unless the task requires a migration.
For a shared library or framework Skill, prefer ownership by that library's maintainers. Require supported versions, boundaries, representative examples, and verification commands; target-specific deltas stay in target-local wrappers.
Grounding is complete when the current invocation surface, consumers, resources, verification path, ownership, and creation evidence are known.
Write down:
Use one coherent Skill when the branches share the same activation and common procedure. Split only when a branch must activate independently or when a sequence repeatedly closes early because later steps distract from the current one.
The contract is complete when each branch has one activation reason and a checkable expected effect.
For portable Skills, name and description are the discovery contract:
name specific and stableHard limits. The portable SKILL.md carries only the six spec fields:
name (at most 64 characters of a-z, 0-9 and -, no leading or trailing
hyphen, equal to the directory name), description (1 to 1024 characters),
and optionally license, compatibility (at most 500 characters), metadata
and allowed-tools. claude.ai uploads and the Skills API reject any other
field, so a host-only field such as Claude Code's when_to_use, paths or
disable-model-invocation goes into a target-local copy, never the portable
file. Write the description in the third person, without XML tags, and keep
claude and anthropic out of the name.
The listing is a shared budget. Every installed Skill competes for one
listing: Claude Code gives it about 1% of the context window and, on
overflow, drops the descriptions of the least-invoked Skills while keeping
their names; it also cuts description plus when_to_use at 1,536
characters. Codex starts with about 2% of the context (8,000 characters when
the window is unknown) and shortens descriptions first. So:
other-skill owns it"); naming neighbours measurably improves selection
among similar Skills, and selection collapses when similar Skills crowd/context and /skill-doctor) and confirm it still shows
with its descriptionHost discovery differs. Codex, Antigravity or Gemini CLI, and pi read
.agents/skills (project, walking up the tree) and ~/.agents/skills; pi
does not load a Skill without a description. Claude Code reads
.claude/skills and ~/.claude/skills and does not scan .agents/skills,
so a shared catalog reaches it through symlinks or an installer. Check the
target host's docs before assuming a path.
Do not duplicate the description as a metadata trigger list. Use metadata only for information a real client or repository consumer reads.
Activation is host-shaped, and installed is not used. Hosts differ in what actually triggers behavior, and most Skills are installed on their own, with no instruction file and no harness around them. Then the description is the only thing that decides, every time. Where a project does carry an instruction file, a host that reads such files as behavior will follow a rule naming the Skill; a host that instead selects a Skill as a tool from its name and description against the task at hand leaves that rule competing with the whole file, and it can lose silently: an observed session with the Skill installed, the routing rule in context, and a matching task loaded no Skill at all across dozens of tool calls. Nothing errors when this happens, and the transcript looks like a session that simply chose not to.
Design for the bare case, where nothing but the description is present. Make it carry the trigger on its own, in the vocabulary of the task rather than of the method, so selection never depends on a rule being read or remembered. A host that supports hooks or an equivalent can additionally put the routing at the moment of the decision - that is a few lines of host configuration, not a harness. Either way it stays out of the portable Skill: the description is the contract, the host wiring is target-local.
First decide whether it is a Skill at all. Knowledge an agent needs on almost
every task (a house rule, a command, a map of the repository) belongs in a
compressed index in the always-loaded instruction file (AGENTS.md,
CLAUDE.md, GEMINI.md): a Skill is chosen per task and is skipped often
enough that a rule needed every time loses. A procedure needed only sometimes
belongs in a Skill. A rule that must hold every time, whatever the agent
decides, belongs in a hook or a check.
Keep the body under about 500 lines and 5,000 tokens, and put the standing rules (the ones that apply to the whole task) in the first screen: after compaction Claude Code re-attaches only the first 5,000 tokens of an invoked Skill and never re-reads the file. Keep references one level deep, and give a reference over 100 lines a table of contents.
Keep in SKILL.md:
Put conditional reference behind a pointer that states exactly when to load it. Use bundled scripts for deterministic validation, transformation, or scaffolding that an agent would otherwise regenerate.
Prefer one directly referenced resource over a chain of references. Keep templates and examples out of the common path when only one branch needs them.
A Skill that judges quality (a review, audit, gate, or craft standard) keeps its field's terms in a vocabulary for authors and check scripts, because a term with something a reader can see is one a check can later catch; "feels off" is neither. Reviews do not load it by default: in two evaluations on 2026-11-24 (the latest: 4 Skills, 24 artifacts, 5 runs) a loaded vocabulary cut recall on defects outside it from 0.96 to 0.87 and their correct naming from 0.67 to 0.18, because reviewers forced its terms onto everything. The vocabulary pays off through exact checks, whose rule ids name its rows.
references/vocabulary.md, one table row per term:
| Term | Definition | Source | Marker | Check |, definitions in your own
words.references/sources.json (with accessed and revisit) and an observable
marker. No marker, no term: a term nobody can observe turns review back
into taste.exact (DOM, file, or geometry), jev (a typed question), or
judge. Name the rule id of an exact row once a check script ships it; a
row without one is the backlog for the next check.metadata.vocabulary: <owning skill> in the
frontmatter instead of copying it.metadata.vocabulary: vendor or house in the frontmatter.The body is ready when every line changes activation, execution, verification, or recovery, and every rule in it says why it exists.
Before porting content:
For catalog work, compare against current checkouts of relevant public sources:
python3 scripts/audit-skill-provenance.py \
/path/to/public-skills-repo [...]
Treat the similarity check as a guardrail, not as proof that unattributed copying is acceptable.
When adding, renaming, or moving a Skill, update its category README, the root
README, and skills-lock.json.
Give a new Skill a license field in its frontmatter, and add one to an
existing Skill whenever it is being changed for another reason. A Skill is
copied out of its catalog far more often than it is installed from it, and the
repository LICENSE does not travel with a single directory. Not a reason for
a pass over every file: in a catalog with pinned tiers, touching every Skill
costs a version, a tag, a release and a re-pin each, which buys nothing for
readers who already have the repository.
Then:
python3 scripts/audit-skills.py, and
python3 scripts/check-knowledge.py --vocabulary where the catalog ships
it (--root DIR for another catalog, such as a private one): the changed
Skill's vocabulary passes with no errors, or its metadata names a
sibling's vocabulary or an exemption.npx skills add ... test covering every changed Skill.The change is complete when repository validation passes, installation works, every declared host resolves the intended owner without collision, and fresh-context evidence supports the intended activation and behavior.
writing-great-skills
Skill is installed and compatible with the active host, use it as an
optional conceptual review for predictability, information hierarchy,
completion criteria, and pruning. Reference or install it; do not vendor its
text or make its host-specific invocation metadata part of the portable
contract.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ldaume/agentic-engineering-harness --plugin ldaume-engineering16 skills in this plugin
/agent-syncProactively evolves a repository's harness artifacts from durable evidence across sessions and tools. Use when starting or completing a session, when repeated friction reveals missing context or checks, when a lesson should outlive the current task, or when instructions, Skills, Rules, Hooks, MCP, or learnings may be stale./build-autonomous-agentsDesigns and implements a bounded agent for a product feature, or one finite agent workflow, with a runtime-neutral contract. Use when building an agent, finite workflow, subagent, tool, or channel integration into an application, adding Flue to an application, migrating an older Flue integration, or designing review loops and when an agent should ask a person./