Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add mirkobozzetto/arsenal --skill optimisegit clone --depth 1 https://github.com/mirkobozzetto/arsenalWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mirkobozzetto/arsenal/optimise)<a href="https://agentmods.dev/skills/mirkobozzetto/arsenal/optimise"><img src="https://agentmods.dev/badge/skills/mirkobozzetto/arsenal/optimise/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mirkobozzetto/arsenal/optimise"><img src="https://agentmods.dev/badge/skills/mirkobozzetto/arsenal/optimise.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00088 | $0.01964 |
| Opus 5.5 | $0.00035 | $0.00786 |
| Sonnet 5.5 | $0.00018 | $0.00393 |
| Haiku 4.5 | $0.00009 | $0.00196 |
Grade A, and why
optimise scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Optimise
Change how the agent behaves only when a trial shows the change helps. Resolve
scripts/ from this skill's directory. Run each script with Bash
run_in_background: true and read its output when it ends. <work> is a
new scratch folder for this run. Talk in the conversation language. Never
edit the user's real instructions before step 6.
- Measure.
node scripts/measure.cjs --weeks 8. It counts, per week, what the user typed: bare approvals (go), status questions, doubts, repeats, swearing, requests to explain. Show the table and the two or three counters that are high or rising. A--signals <file.json>gives the user's own patterns and the prompts to skip (sent by other sessions). Thennode scripts/shape.cjs --weeks 8: the shape of the agent's own replies, per week (a line over 80 characters, a reply over 8 lines, the median length).--max-lineand--max-linestake the user's limits. Outside Claude Code, add--harness <codex|pi|omp|profile file>to both: it reads that harness's prompts and sessions. - Interview. Read the user's profile first,
<home>/optimise/profile.md,<home>being${CLAUDE_CONFIG_DIR:-~/.claude}under Claude Code and the profile'shomeelsewhere (node scripts/harness.cjsprints it): what they already expect, with the date and their words. Never ask again what it answers. Then one form, built from the numbers: one question per counter kept that the profile does not cover, quoting two real prompts from the history. Every question keeps a free answer and a "Cut and discuss" option. Then a second form that refines each answer: a threshold, an example the user would accept, what to keep. An argument narrows the interview to that expectation. Write each expectation in<work>/expectations.mdand in the profile as one sentence plus the check that counts it (a key ofscripts/grade.cjs, a file state, or "user judges"). An expectation no check can count is kept apart and said so: it cannot be trialled. - Diagnose. For each expectation, read everything that speaks to it:
the instruction files (
CLAUDE.md,AGENTS.md), rules, the output style (Claude Code), text injected by plugins, extensions and hooks. Name one cause, with the passages:- contradiction: two instructions ask for opposite things;
- buried: the instruction exists, lost among many;
- not enforced: it is checkable, and only prose asks for it;
- not loaded: it lives in a skill or a
paths:rule that did not load; - absent: nothing says it.
When the slim skill is installed, weigh the instructions with its
weigh.cjs: a heavy file makes "buried" the likely cause.
- Propose. One change per expectation, the smallest that removes the cause: rewrite or remove a sentence, state a list once and point to it, move a checkable rule with no exception into a hook or an extension, whichever the harness offers, add the missing line. A new line replaces one, when it can. Show each change beside the original. Write nothing yet.
- Trial.
node scripts/arm.cjs beforeandnode scripts/arm.cjs aftercopy the instructions (add--style <file>for an output style). Apply the proposed changes to theaftercopy only. Write<work>/cases.json: prompts copied word for word from the user's history, never invented, each with itsexpectand, when it should act, afilesprobe. The fixture is a copy of the project those prompts were typed in, tracked files only (git archive HEAD), so no remote and no untracked secret: a toy project makes toy answers. Every run is a full session on the user's plan, on the model of their settings (--modelonly to match the model they really use). Price it first: one run of one case (--only <id> --runs 1), then cost x cases x arms x runs. Above a few dollars, show that estimate and ask the go before the batch. Thennode scripts/replay.cjs --arms before=<dir>,after=<dir> --cases <work>/cases.json --out <work>/run --runs 3. Outside Claude Code, pass the same--harnesstoarm.cjsandreplay.cjs: an arm holds that harness's user instruction files, and each run uses its headless command in a temporary home linked to the real one, so its model, login and extensions stay those of every day. Codex reports no price: count its runs instead. Add a control: a third arm pointing at the same folder asbefore(control=<before dir>). Identical instructions that score differently show the noise of a case: a gap betweenbeforeandafterno wider than the gap betweenbeforeandcontrolproves nothing. Raise--runsor rewrite the case. For a matter of taste (layout, tone, how digestible a reply is), the user judges, not a check: one form question per case, one option per arm with the real reply as its text, letters shuffled per question, and "Cut and discuss". Reveal the arms after the answers. One letter picked every time hints at a position bias: say so. Read the replies in<work>/run/results.json, not only the table: a case that proves nothing is said so and rewritten. A change is confirmed whenafterbeatsbeforeon its expectation and loses on no other check. A change the trial does not confirm is dropped, and said so. - Apply. Show the table and ask one question for the go; the user may
keep some changes and not others. Write only those, one commit per file
in the repository that holds it,
chore(rules): optimise <file>.git revertundoes it. Then, when the slim skill is installed, run/slimon each changed file: the rules stay light, and its check proves that nothing but the validated change moved. - Follow up. Run step 1 again a week later and show each counter beside its value before the change. A counter that did not move sends its expectation back to step 3.
What ships with it
11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- harnesses/claude.json 837 B
- harnesses/codex.json 917 B
- harnesses/omp.json 1.0 KB
- harnesses/pi.json 999 B
- scripts/arm.cjs 2.4 KB runs code
- scripts/grade.cjs 2.8 KB runs code
- scripts/harness.cjs 5.4 KB runs code
- scripts/measure.cjs 3.2 KB runs code
- scripts/replay.cjs 12 KB runs code
- scripts/sessions.cjs 4.4 KB runs code
- scripts/shape.cjs 2.7 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +42 lines · +21 tokens per session 55716e5d2fcd
- yesterday First seen · 93 lines · 67 tokens per session scan A 5c238dfebe18
optimise is a skill published in the GitHub repository mirkobozzetto/arsenal (23 stars, last pushed yesterday), licensed MIT. It adds 88 tokens to every session and 1,964 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-04.
optimise compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| optimisemirkobozzetto/arsenal | Skill | 23 | yesterday | MIT | A | 88 | Claude Code |
| create-video-seedance-2-falgooseworks-ai/goose-skills | Skill | 1.4k | 7d ago | MIT | A | 121 | Claude Code, Codex |
| meta-ad-managergooseworks-ai/goose-skills | Skill | 1.4k | 7d ago | MIT | A | 108 | Codex |
| run-memorygooseworks-ai/goose-skills | Skill | 1.4k | 7d ago | MIT | A | 72 | Claude Code, Codex |
| create-chatgpt-mockupgooseworks-ai/goose-skills | Skill | 1.4k | 7d ago | MIT | A | 90 | Claude Code, Codex |
| company-contact-findergooseworks-ai/goose-skills | Skill | 1.4k | 7d ago | MIT | A | 55 | Claude Code, Codex |
| render-cosmic-mythology-voiceovergooseworks-ai/goose-skills | Skill | 1.4k | 7d ago | MIT | A | 225 | Claude Code, Codex |