factory-kit-audit

factory-kit-audit is a skill for Claude Code from nonlinear-xyz/factory-kit. It costs 24 tokens per session (421 once invoked), scanned A, original, MIT.

A read-only report that measures how many tokens the factory kit uses and identifies its largest files or other trimming candidates.

In plain words
What is it for?
Use it to compare baseline and on-demand token usage, find the heaviest assets, and decide what to trim.
Why use it?
It shows whether the kit loads too much information by default and where reducing its size could lower the cost of each session.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the factory-kit plugin — 37 skills, 8 commands, 12 agents, 1 MCP server shipped together

Good fit Use it to compare baseline and on-demand token usage, find the heaviest assets, and decide what to trim.

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

Made for: Claude Code.

Or install factory-kit, the plugin that ships this one along with the rest of its 37 skills, 8 commands, 12 agents, 1 MCP server.

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 factory-kit-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/nonlinear-xyz/factory-kit/factory-kit-audit.svg)](https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-kit-audit)
Your own site
<a href="https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-kit-audit"><img src="https://agentmods.dev/badge/skills/nonlinear-xyz/factory-kit/factory-kit-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 421 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.00024 $0.00421
Opus 5 $0.00012 $0.00211
Sonnet 5 $0.00005 $0.00084
Haiku 4.5 $0.00002 $0.00042

Measured 7d ago against content hash 267d0e445f27, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

factory-kit-audit 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 7d ago.

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/factory-kit-audit/SKILL.md · 31 lines

What it actually says

You're auditing the factory-kit's token cost. This is a read-only report — no files change, no symlinks touched.

What to do

  1. Resolve the kit root. The script lives at bin/kit-audit.sh in the installed kit. Prefer the host's current-skill-directory capability and walk up from skills/factory-kit-audit/ to the plugin root. For symlink installs, resolve the current SKILL.md symlink before walking up. Do not assume a fixed home-directory checkout.

    If the kit can't be found, tell the user to run the kit's install.sh first and stop.

  2. Run the audit. Execute <kit_root>/bin/kit-audit.sh through the host's shell capability. The script prints the report to stdout.

  3. Show the output verbatim in a fenced code block. Don't reformat it — the column alignment matters.

  4. One-line takeaway. Below the code block, a single sentence calling out what matters most. Pick from:

    • Baseline cost framing — "Baseline is Xk tokens per session; everything else is on-demand."
    • Outlier flag — if the trim section named outliers, restate the action
    • All-good — "Kit is balanced; no trim work needed."

    No further commentary. The numbers speak; you point at the one thing worth doing.

Style

Follow factory-voice.md. This is a diagnostic — terse, numbers-first, no narration. If the user asks "why X is so large," then dig in. Don't volunteer interpretation beyond the one-line takeaway.

The script's estimate is ~4 chars per token. Real tokenizer counts differ by 10-20%. Don't overstate precision — the relative shape across assets is what's actionable, not the absolute numbers.

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. 7d ago First seen · 31 lines · 24 tokens per session scan A 267d0e445f27

Subscribe to this mod's changes

factory-kit-audit is a skill published in the GitHub repository nonlinear-xyz/factory-kit (9 stars, last pushed 1mo ago), licensed MIT. It adds 24 tokens to every session and 421 once invoked, about $0.0001 per session on Opus 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-08-31.