/agent-toolkit:compact-docs-writerfrom Agent Toolkit
Rewrites or drafts documentation for maximum token economy, preserving all rules and intent while minimizing text. Ideal for agent-facing docs in version control.
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.
Rewrite a doc — or draft a new one — for token economy: carry all its rules and intent in the least text possible, because the doc loads into agent context and is paid for on every read. Then prove nothing was lost: present the change with a word delta measured from the files, and apply only on approval.
Write each piece of information with the least text that still preserves every rule, constraint, edge case, and intent. Two directions, equally binding:
Recurring reflex: "Can this exact rule be said in fewer words?" — if yes, do it.
The no-op test licenses one more deletion. Ask of each sentence, in isolation: "does it change the agent's behaviour versus its default?" If not, it's a no-op — the agent already acts this way, so removing it loses nothing: delete the whole sentence rather than trimming words from it.
Durable only. No state that changes as work moves on (status, progress, a decision's date,
current counts, "so far" lists) outside a doc that exists to record it (a decision record, a
changelog, a progress log), and no unrequested rule or name for a case that has not come up: a draft
adds none and writes a decision as the rule it sets; state already in the doc is proposed for a move
to where the project keeps state. ("Auth: src/auth/", not "Auth: src/auth/ (12 files; reviewed
in full on 3 Mar)".)
Compaction counts words and information density, not whitespace. Blank lines between distinct chunks cost effectively nothing and aid the human reader, so keep them where they help; never collapse a long passage into one dense block to look shorter. The same economy runs both ways: a human-readability gain that is free or near-free in tokens — a blank line, a line break, a semicolon-chained enumeration rendered as a bullet list — is always applied, never skipped to look compact.
Structure follows the same economy: co-locate a concept — its rule, exceptions, and caveats under one heading, never scattered — so a reader who jumps to one part gets the others with it.
When one concept keeps getting restated, collapse it into a single leading word the model already carries from pretraining, and reuse that word wherever the concept applies: it anchors the same behaviour in one token and reads sharper than any paraphrase. The collapse still obeys the core principle — the word must carry every constraint it replaces, and whatever it doesn't carry stays spelled out: "fast, low-overhead feedback" collapses into a tight loop, but a "deterministic" requirement isn't inside tight, so it survives as its own word. Hunt for these collapses in every pass.
&/and, anchor slug),
the file's old path and name as docs link it, or the script's name; each copy or citation
(inline in another doc, or a companion rule), each doc linking the file, and each other caller
with the same gap, takes the same change in the same diff and joins the draft set, under its
own doc's conventions (a skill's version bump), except where that contradicts its doc's
rules, which the presentation names.CHECK_DOC_AS=<its target path> while it sits in scratch? Wrap and link
conventions a script can hold; fix every failure. Links then resolve in the working tree too,
so when the draft set removes or renames a file, add CHECK_DOC_DRAFT_LINKS=1 and lay the
drafts out in a scratch tree with every unchanged file their links reach, at repo-relative
paths, never a removed file or a renamed file's old path.diff code block —
every removed line prefixed -, every added line +, so they render red/green — and when a
long line changes by only a few words, add a word-level view ([-removed-]{+added+})
pinpointing them. Include a word/token delta measured from the files, never estimated:
write the not-yet-applied draft to a scratch file (in the session's temp/scratch dir, never the
working tree) and wc -w it against the original. Label it not yet applied and awaiting
approval; apply only on approval; after applying, say so plainly. Ask for approval in the
presentation text or in a later turn, never via a question tool call in the same turn: text
emitted before a tool call may not be displayed, so the question would land without the draft.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-skill-creatorAuthor or refine a skill for maximum token economy without losing intent. Use when creating any new skill or editing an existing `SKILL.md`./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