/agent-toolkit:ensure-self-contained-docfrom Agent Toolkit
Reviews a document written in the current session to ensure it is self-contained for a fresh session, identifying missing context or assumptions.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A fresh reader plans the next session's work and reports where it had to ask or guess; this session fills in, from what it knows, only what the next session needs.
Never check whether the document's claims are true (against the code, a ticket): that takes a session that did not write it.
A session that neither wrote the document nor discussed its decisions (a fresh one run on an older document) can answer little: say so, and that every question that matters will go to the user; continue only on the user's yes. Editing an existing document after discussing it counts as writing it.
Done when document, starting instruction and excluded paths are settled and a non-author session has that yes.
One fresh-context subagent acts as the next session, on the model the invocation names, else the harness default. Its brief is the text below and nothing more — nothing this session decided or thinks of the document — and needs no user approval:
You are a fresh session, just told:
<starting instruction>
The document is <path>. Plan that work step by step, as if about to do it, thinking each step
through far enough to know what it needs from the document. Read whatever you need in the
project. Never read <excluded paths>: the document must stand without them. Write nothing, run
nothing, delegate nothing.
Before reporting a question, try to answer it from the document and the project (its docs, its
code, the skill the task uses). Report three lists, "none" for an empty one:
1. Questions you could not answer: each with the step it blocks, where in the document you looked
for the answer, and what you would do if nobody answered.
2. Contradictions in the document: both places quoted.
3. Assumptions: each point the document was silent on and you settled yourself, with where in it
you looked and the choice you made.
Nothing excluded → the brief drops its "Never read" sentence.
A subagent cannot run a slash command: when the starting instruction is one, the brief adds, right after it, to read that skill's file (by path, when this session can resolve it) and plan the work as it describes.
No subagents in the harness → print the brief as a prompt the user runs in a clean session, and continue at Sort from the reply they paste back. Never a pass by this session in the reader's place: the session that knows the answers cannot see which are missing.
Done when the reader's three lists are back, possibly all empty.
A report that a claim of the document is false (a function it names does not exist, it disagrees with the code or another source), in whichever list, is a claim to check: never sorted or verified, and the document does not change for it.
Every other reported item gets exactly one outcome:
Nothing is added only because the reader asked.
Check each assumption against what was decided: a wrong one is a gap like an unanswered question, and the kind that matters most, since a real next session would not stop to ask. A right one is a gap too when another reasonable choice would have been wrong, as the next session may make that one; otherwise it is Not needed. A contradiction is settled only from what this session decided, never by checking the code.
Done when every item of the three lists has one outcome or is a claim to check.
Every text written (an Added item, a Yours answer, a pointer) goes in once, where the reader looked for it: of several places, or none named, the one a statement of its kind belongs in. A contradiction's replaces the wrong text. Never an appended clarifications section. It reads as the author's own text, with no trace of the check.
Added items and pointers go straight in, with no approval per item. Yours items are asked one at
a time, each with a recommended answer, worded via explain-in-simple-language when available,
and the user's answer is written. One the user cannot or will not answer now is written as an
open question, with the tentative answer when there is one.
Done when the document holds every Added and Yours item and each pointer, and no other change.
A round that changed the document earns one more, its new reader given the same brief and told nothing of the earlier round. Rounds stop when one changes nothing, or after 2; the user may stop earlier or ask for more.
A later reader reporting an item this check wrote a text for (an Added answer, a Yours answer the user gave, a pointer), as a question again or as a point it settled itself, shows the text did not work: the item keeps its outcome, is not sorted again, and the text is repaired in place, by rewording or moving it, never by adding a second copy. The repair counts as a change to the document, for the rounds and the summary.
Any other item a later reader reports again:
Done when a stop condition has ended the rounds.
Print how many rounds ran, then every item under its outcome or as a claim to check:
When the last round changed the document, name its edits as read by no reader, so the user knows another round can be asked for. Then name as possibly stale each document derived from the edited one (a plan written from the edited requirements) that this session knows of or finds beside it. No next-phase command.
Done when all are printed.
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./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.Other plugins' skills for the same job