fit

fit is a skill for Claude Code from mthines/agent-skills. It costs 90 tokens per session (1,129 once invoked), scanned A, original, MIT.

A reporting skill that evaluates whether a proposed code change or plan fits its purpose, including reuse, simplicity, performance, and robustness. It can also inventory whether added files and symbols should be reused, extended, or newly created.

In plain words
What is it for?
Reviewing plans, diffs, and proposed implementation structure.
Why use it?
It exposes unnecessarily complex or poorly fitted approaches before code is changed, without editing files itself.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the mthines-agent-skills plugin — 54 skills, 3 agents, 2 hooks shipped together

Good fit Reviewing plans, diffs, and proposed implementation structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mthines/agent-skills/fit
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 mthines/agent-skills --skill fit
Clone the repo
git clone --depth 1 https://github.com/mthines/agent-skills

Made for: Claude Code.

Or install mthines-agent-skills, the plugin that ships this one along with the rest of its 54 skills, 3 agents, 2 hooks.

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 fit

README.md
[![agentmods](https://agentmods.dev/badge/skills/mthines/agent-skills/fit/github.svg)](https://agentmods.dev/skills/mthines/agent-skills/fit)
Your own site
<a href="https://agentmods.dev/skills/mthines/agent-skills/fit"><img src="https://agentmods.dev/badge/skills/mthines/agent-skills/fit/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 fit

Your own site · 80×15
<a href="https://agentmods.dev/skills/mthines/agent-skills/fit"><img src="https://agentmods.dev/badge/skills/mthines/agent-skills/fit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,129 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.00090 $0.01129
Opus 5.5 $0.00036 $0.00452
Sonnet 5.5 $0.00018 $0.00226
Haiku 4.5 $0.00009 $0.00113

Measured 8d ago against content hash cfc4471cda83, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fit 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/reuse-inventory.mjs), 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.

skills/quality/fit/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Optimize approach

Answer one question: is this the best approach for what the change is trying to do — and if not, what is? Judge the shape of the solution, not its lines. Report only; never edit files.

Lens-eligible for the pr-reviewer agent: lens.md auto-loads on deep reviews.

Args Mode Output
files, a plan.md path, or none approach (default) Steps 0–3 below: at most two proposals, or one optimal line
--inventory [--base <ref>] inventory One verdict per item node "${CLAUDE_SKILL_DIR}/scripts/reuse-inventory.mjs" --base <ref> lists — rules/reuse-inventory.md (why: references/reuse-inventory.md); aw's post-build quality pass calls this mode

Step 0 — Scope

  1. Target: the named files or plan.md; else the branch diff (git diff <base>...HEAD, base default origin/main).
  2. Intent: one or two lines from the plan, the PR title and body, or the commit messages.
  3. Split the target into approach units — one cohesive way of solving one sub-goal. Judge each unit separately.
  4. Read every unit in full, plus its callers and any existing utility or pattern an alternative would reuse (grep before you claim one exists).

Step 1 — Score the four axes

Axis A better approach would… Look for
Codebase-fit reuse a utility, hook, or pattern the change reinvents a hand-rolled helper duplicating an export; a bespoke pattern next to a shared one
Simplicity remove a structural layer the goal does not need a class where a function suffices; premature generality; needless indirection
Performance change complexity or cut work the current shape forces O(n²) where O(n) is natural; per-item queries where one batch works
Robustness pick a shape that cannot hit a failure class the current one invites invariants kept by hand that a type or DB constraint would enforce; a race the shape allows

Read the full file on GitHub · 87 lines

Files

What ships with it

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

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. 8d ago First seen · 87 lines · 90 tokens per session scan A cfc4471cda83

Subscribe to this mod's changes

fit is a skill published in the GitHub repository mthines/agent-skills (22 stars, last pushed yesterday), licensed MIT. It adds 90 tokens to every session and 1,129 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-11-25.

Related

fit compared with skills from other repositories

fit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fitmthines/agent-skillsSkill22yesterdayMITA90Claude Code
ego-lite-simplifycitrolabs/ego-liteSkill26kyesterdayMITA68Codex
create-pull-requestCodelyTV/agent-harnessSkill36310d agononeA64Claude Code
code-review-and-qualityshennawardana23/skillmeSkill41mo agoApache-2.0A86Claude Code
coding-standardsshennawardana23/skillmeSkill41mo agoApache-2.0A106Claude Code
doubt-driven-developmentshennawardana23/skillmeSkill41mo agoApache-2.0A81Claude Code
best-practicesshennawardana23/skillmeSkill41mo agoApache-2.0A49Claude Code