/agent-toolkit:compact-skill-creatorfrom Agent Toolkit
Authors or refines SKILL.md files for maximum token economy. Classifies trigger type (mandatory/manual/self-evident) and delegates compaction to compact-docs-writer.
Ships in Agent Toolkit. 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.
Read when SKILL.md points to them; scripts run unread.
Author a new skill, or improve an existing one, so it carries all its rules and intent in the
least text possible. Cost has two tiers: the description sits in context every session — the
skill's most expensive text — while the body loads only when the skill triggers. Both stay lean. Be
interactive: gather what you need, draft, then apply only on approval.
The compaction rules — the least-text principle, the removal-audit verification, and the present-and-confirm with a measured word delta — live in compact-docs-writer, the single source of truth; this skill never restates or re-derives them. From the moment you draft (step 4) through self-review (step 5) and present (step 6), always invoke compact-docs-writer and follow its workflow on the skill text — reading it, applying its principles by hand, or naming it after a direct edit does not count. This skill adds only the skill-specific layer: trigger taxonomy, agnosticism, progressive disclosure, completion criteria, metadata, and the version bump.
How a skill is triggered decides how its description is written. Classify into one:
/command, or sibling skills/rules that reference it
explicitly. The by-name reference does all the routing, so trigger wording buys nothing: the
description is one short line of what the skill does — enough for a human choosing from a
list — never a body summary, never a "load when …" clause. When the skill format can block
model invocation (e.g. a disable-model-invocation flag), set it for Manual skills nothing
invokes programmatically — the description then costs no standing context; pair the flag with
type: flow — some agents hide flag-bearing skills even from manual invocation without it.
When sibling skills must drive this one, keep it model-invocable and mark it "invoke manually
only" in the description instead.Governing rule: description tokens are justified only by trigger precision, never by summary. Compress within a type — but never starve a Mandatory trigger to save a few tokens.
In every type, never use : in the description — : in the unquoted value breaks some agents'
YAML parsers; avoid the character rather than quote it.
Three sharpeners for the trigger wording:
Placement corollary: the body loads only after the skill triggers, when the choice is already made — so keep when-to-use and routing cues in the description (read before the choice), never in the body, where they steer nothing.
A skill folder can hold a lean SKILL.md that references supporting .md docs. A referenced doc
loads only when the agent follows the pointer — that is the lever.
SKILL.md directly, never only from another referenced doc.When a skill encodes steps, end each on a completion criterion the agent can check — done vs not-done — and make it exhaustive where a partial pass could look complete ("every modified file accounted for", not "produce a summary"). A vague criterion is what makes an agent wrap up early; sharpening it is the first and cheapest fix. Only when a criterion stays irreducibly fuzzy and later steps still tempt rushing should those later steps move out of sight (a follow-on skill or a disclosed doc).
name field must match, in kebab-case.explain-in-simple-language
when available; if the codebase or the user's own edits can answer a question, explore instead
of asking.
A skill reading what other skills produce, or stepping into their hand-offs, takes its input
types, the options its own hand-off carries on, and the files it must never write from a search
of every such skill — never from the one pipeline in mind.
Scale depth to complexity (complex skill → more questions; simple → few). The only limit: never
interview for its own sake.name and description, plus every field the
project's conventions or all its sibling skills carry (e.g. a license, metadata.version);
per-skill ones (tool grants, invocation flags) follow from the skill's own needs, never copied.
Never hardcode values. Creating: infer defaults from context (sibling SKILL.md files,
git config user.name, repo LICENSE), ask the user to confirm or override. The first
version follows the project's stated convention; none stated → ask "1.0" or a "0.x" trial.
Improving: preserve existing fields, and flag any missing one.Wording agent-agnostic? Project coupling contained? Cross-references limited to declared dependencies or a real operational benefit?
Trigger type identified, and the description written to fit it? Test it, reading only the description:
Reword until all hold.
Body consistent with itself? Every "never" and every new rule checked against each step, source and bundled script it binds; every advertised input type handled by each step that touches it (a check fitting only one type fails the rest); every write surfaced where its reader looks — when a later phase reads only a document derived from the edited one, the addition reaches that one too.
Spawns a subagent, reviewer or fork? Its brief and its return are defined: what it receives, what it reports back (paths written, verdicts, blockers, edits made, what it did not check), and that it hands nothing off itself. It, or a check, reads a not-yet-applied draft laid out in scratch at its repo-relative paths with the unchanged files its links reach, never the working-tree originals or a removed or renamed file.
Creating: hand a fresh agent (a subagent when the tool offers one, else a prompt the user runs in a clean session) only the draft, laid out as above, and one realistic input; have it walk the draft dry, writing, committing and posting nothing, narrating step by step and listing each point where the text is ambiguous, contradictory or silent. Each point loops back to draft; done when the run reports none. Improving: offer the run, never require it.
No new or grown inline chunk meets the split test (progressive disclosure)?
Steps end on checkable, exhaustive completion criteria?
scripts/check-skill.sh <skill-dir> passes on the draft laid out
as above, with CHECK_SKILL_AS=<real folder>? It holds the conventions above that a script
can check (wrap, links, frontmatter) and prints the version at HEAD, merge base and working
tree for step 6; fix every failure before presenting.
base unknown or no merge base
never reads as "not bumped": resolve the target as self-review does — the upstream remote's
default branch when one exists, else origin's, via git ls-remote --symref <remote> HEAD;
offline, the sole existing candidate among main, master, develop/development — and
rerun the script with CHECK_SKILL_BASE=<ref>; still unknown → ask the user only which branch
is the target, never whether to bump. Done when the skill and every place the project catalogs
its skills (a README entry, a manifest or dependency list, a relationship graph) carry the
change, including any hard dependency a new cross-reference adds; find them by searching the
repo for a sibling skill's name.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub eai-org/agent-toolkit --plugin agent-toolkit31 skills in this plugin
/agentify-projectMake a project agent-ready by converging it toward a canonical agent-neutral structure. Re-runnable, and doubles as an audit./attach-to-ticketAttach pasted images, files or URLs to a fetched ticket, saved beside its ticket file and referenced from it, or fill an attachment the fetch could not download. Local only — never queries or edits the tracker./check-ticket-implementationCheck how much of a ticket is already implemented and save a per-requirement status report./compact-docs-writerDraft, rewrite, or refine a doc for maximum token economy without losing any rule or intent. Use for docs kept in version control and regularly re-read by agents; skip throwaway docs like plans./context-checkupAudit what auto-loads into an agent session's context window and suggest lean, reversible fixes to cut startup tokens./create-implementation-planTurn a refined requirements document into a structured implementation PLAN.md a fresh session can execute. Planning only — decides the "how", not the "what". Invoke manually only.Other plugins' skills for the same job