optimise

optimise is a skill for Claude Code from mirkobozzetto/arsenal. It costs 88 tokens per session (1,964 once invoked), scanned A, original, MIT.

A guided process for changing how Claude Code responds to users. It measures patterns in past prompts, asks about unmet expectations, tests proposed changes against real prompts, and applies only selected changes.

In plain words
What is it for?
It is for diagnosing repeated approvals, status questions, doubts, repeated requests, or requests for explanations, then trialling instruction changes against those patterns.
Why use it?
It replaces guesswork with evidence when an agent behaves in an unwanted way. It helps distinguish expectations that can be measured from those that cannot.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the optimise plugin — 1 skill shipped together

Good fit It is for diagnosing repeated approvals, status questions, doubts, repeated requests, or requests for explanations, then trialling instruction changes against those patterns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mirkobozzetto/arsenal/optimise
Install

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.

Any agent
npx skills add mirkobozzetto/arsenal --skill optimise
Clone the repo
git clone --depth 1 https://github.com/mirkobozzetto/arsenal

Made for: Claude Code.

Or install optimise, the plugin that ships this one along with the rest of its 1 skill.

Wrote 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.

agentmods badge for optimise

README.md
[![agentmods](https://agentmods.dev/badge/skills/mirkobozzetto/arsenal/optimise/github.svg)](https://agentmods.dev/skills/mirkobozzetto/arsenal/optimise)
Your own site
<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.

agentmods 80×15 button for optimise

Your own site · 80×15
<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>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,964 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured today against content hash 55716e5d2fcd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/arm.cjs, scripts/grade.cjs, scripts/harness.cjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/optimise/skills/optimise/SKILL.md · 135 lines

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.

  1. 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). Then node 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-line and --max-lines take the user's limits. Outside Claude Code, add --harness <codex|pi|omp|profile file> to both: it reads that harness's prompts and sessions.
  2. Interview. Read the user's profile first, <home>/optimise/profile.md, <home> being ${CLAUDE_CONFIG_DIR:-~/.claude} under Claude Code and the profile's home elsewhere (node scripts/harness.cjs prints 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.md and in the profile as one sentence plus the check that counts it (a key of scripts/grade.cjs, a file state, or "user judges"). An expectation no check can count is kept apart and said so: it cannot be trialled.
  3. 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.
  4. 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.
  5. Trial. node scripts/arm.cjs before and node scripts/arm.cjs after copy the instructions (add --style <file> for an output style). Apply the proposed changes to the after copy only. Write <work>/cases.json: prompts copied word for word from the user's history, never invented, each with its expect and, when it should act, a files probe. 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 (--model only 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. Then node scripts/replay.cjs --arms before=<dir>,after=<dir> --cases <work>/cases.json --out <work>/run --runs 3. Outside Claude Code, pass the same --harness to arm.cjs and replay.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 as before (control=<before dir>). Identical instructions that score differently show the noise of a case: a gap between before and after no wider than the gap between before and control proves nothing. Raise --runs or 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 when after beats before on its expectation and loses on no other check. A change the trial does not confirm is dropped, and said so.
  6. 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 revert undoes it. Then, when the slim skill is installed, run /slim on each changed file: the rules stay light, and its check proves that nothing but the validated change moved.
  7. 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.

Read the full file on GitHub · 135 lines

Changes

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.

  1. today Changed · +42 lines · +21 tokens per session 55716e5d2fcd
  2. yesterday First seen · 93 lines · 67 tokens per session scan A 5c238dfebe18

Subscribe to this mod's changes

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.

Related

optimise compared with skills from other repositories

optimise next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
optimisemirkobozzetto/arsenalSkill23yesterdayMITA88Claude Code
create-video-seedance-2-falgooseworks-ai/goose-skillsSkill1.4k7d agoMITA121Claude Code, Codex
meta-ad-managergooseworks-ai/goose-skillsSkill1.4k7d agoMITA108Codex
run-memorygooseworks-ai/goose-skillsSkill1.4k7d agoMITA72Claude Code, Codex
create-chatgpt-mockupgooseworks-ai/goose-skillsSkill1.4k7d agoMITA90Claude Code, Codex
company-contact-findergooseworks-ai/goose-skillsSkill1.4k7d agoMITA55Claude Code, Codex
render-cosmic-mythology-voiceovergooseworks-ai/goose-skillsSkill1.4k7d agoMITA225Claude Code, Codex