/bantoilatoi:agent-instructionsfrom bantoilatoi
Create, audit, shrink or restructure an AGENTS.md instruction file. Use when writing a repository's AGENTS.md, auditing one for stale or oversized guidance, deciding what belongs in persistent instructions versus a skill, a document or a lint rule, or migrating instruction files between agent harnesses. Not for editing ordinary project documentation.
Ships in bantoilatoi. 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.
An instruction file is configuration the agent obeys with full confidence, not documentation a human skims. A stale command in it is followed to the letter; an oversized one dilutes every rule in it on every task. This skill covers the whole lifecycle: writing one, checking one's health, cutting one down, and deciding where a given rule actually belongs.
| Signal | Mode | Reference |
|---|---|---|
| The repository has no instruction file, or what exists is a stub that doesn't cover the sections below | Create | references/patterns.md |
| A file exists and needs a health check — stale commands or paths, drift from the repo, missing coverage, unclear whether it earns its cost | Audit | references/audit.md |
| A file has grown into an encyclopedia and needs cutting down without losing what actually holds | Shrink | references/audit.md |
| A specific rule needs a home, independent of touching the file itself | Place | the test below |
Not for editing ordinary project documentation — a README, an ARCHITECTURE.md, an ADR — unless the question in front of you is specifically whether content belongs there instead of in the instruction file.
Ask in this order and stop at the first yes:
| Question | Destination |
|---|---|
| Would its absence make a current frontier agent decide materially worse on most tasks? | The instruction file |
| Is it a recurring procedure with a sharp trigger, needed on a minority of tasks? | A skill |
| Is it detail only one mode of that skill needs? | That skill's references |
| Is it a fact about this project rather than a portable practice? | The project's code, config, an architecture doc, an ADR, a runbook |
| Can a script, linter, type checker, test or CI job decide it? | Tooling |
| None of the above | Nothing — leave it out |
The decisive framing: if this rule disappeared, would current agents get it wrong often enough to justify paying for it repeatedly? If no, delete it. If the answer is "only in one narrow situation," that is a skill or a reference, not a persistent rule.
Do not weaken a rule that prevents a real safety or correctness failure merely because it costs tokens. The two failure modes are not symmetric — an agent that skips a rule because it was cut for brevity fails the same way whether the rule was five words or fifty.
These hold across all four modes.
--fix linters); use a
bounded probe (--help, --dry-run, a list-only mode) instead, or mark the entry inferred and
say so. Drop a command that fails unless it failed only for a missing local credential or
service — then keep it and name the prerequisite inline.references/harness-loading.md covers where each harness looks), never duplicated into the
shared root file, whether or not it is also project-specific.references/harness-loading.md, rather than eyeballing whether a file "feels big."references/harness-loading.md.Where an instruction file is discovered and how much of it survives varies by harness, and both
failure modes are silent: a file in the wrong location never loads, and a file past a harness's
byte budget gets truncated with no error the user sees. references/harness-loading.md has the
verified facts for the two harnesses this repository targets, marked clearly where something is
confirmed versus inferred — read it before creating an adapter, sizing a global file, or explaining
why a rule isn't being followed. Two facts to carry into every mode without opening the reference:
keep a global or user-scope file small because it is paid for on every task, and keep a
project or nested chain small because its cumulative size is subject to a budget (Codex's
project_doc_max_bytes) that truncates silently past it — indistinguishable, from the agent's
behavior, from a rule it chose to ignore.
Whichever mode ran, report:
references/harness-loading.md.references/harness-loading.md — where each targeted harness discovers an instruction file, what
gates or truncates it, and how to confirm what actually loaded.references/audit.md — what to measure, how to detect staleness, and how to shrink a file that
has grown past what it should carry.references/patterns.md — what a good instruction file contains, section by section, the
anti-patterns that inflate one, how to write a nested file that survives on its own, and worked
global, project and nested examples to calibrate scope and size against.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
10 skills in this plugin
/agent-orchestrationDecide whether to delegate work to subagents or a scripted workflow, and run the delegation well — topology from real data dependencies, fan-out width, minimal context packets, disjoint write ownership, model and effort per node, monitoring, failure handling and handoff validation. Use when a task is about to be split across subagents, parallel workers or a workflow graph, or when a running delegation needs steering. Not for work done directly in one session, and not for reviewing a finished change./backlog-maintenanceCreate and maintain a project's backlog as GitHub issues — investigate the code first, write each issue to an exhaustive standard (root cause, file and symbol references, inventories, decisions, how to see it, checkable criteria), keep labels, priority and size consistent, independently review every filed batch, record progress and close only on verified acceptance criteria — and convert any Markdown or text backlog (TODO.md, BACKLOG.md, roadmap and handoff lists) into filed issues. Use when work needs filing, an issue needs writing, reviewing, grooming or triage, a task finishes and its issue needs updating, or a repository still keeps its backlog in a file. Not for planning how to split or delegate work (agent-orchestration), not for durable design or decision docs (project-docs), and not for saved-memory or handoff-note cleanup (memory-hygiene).npx claudepluginhub bantoilatoi/agentskills --plugin bantoilatoi