squid-clean-harness

squid-clean-harness is a skill for Claude Code from iusztinpaul/squid. It costs 34 tokens per session (1,726 once invoked), scanned A, original, Apache-2.0.

A cleanup tool for an AI coding agent’s instruction files and supporting resources. It shortens the instructions while preserving their behavior and leaves datasets untouched.

In plain words
What is it for?
Use it to review and reduce an agent harness, meaning the skills and resources loaded by the agent. It can organize the cleanup into separate commits by category.
Why use it?
It removes outdated or repetitive guidance that uses tokens without changing what the agent does. The changes are presented for approval before they are applied.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Part of the squid plugin — 15 skills, 5 agents shipped together

Good fit Use it to review and reduce an agent harness, meaning the skills and resources loaded by the agent. It can organize the cleanup into separate commits by category.

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

Made for: Claude Code.

Or install squid, the plugin that ships this one along with the rest of its 15 skills, 5 agents.

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 squid-clean-harness

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/iusztinpaul/squid/squid-clean-harness"><img src="https://agentmods.dev/badge/skills/iusztinpaul/squid/squid-clean-harness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,726 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 107
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 109
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 110
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
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.00034 $0.01726
Opus 5.5 $0.00014 $0.00690
Sonnet 5.5 $0.00007 $0.00345
Haiku 4.5 $0.00003 $0.00173

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

Security

Grade A, and why

squid-clean-harness 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.

skills/squid-clean-harness/SKILL.md · 138 lines

How it starts

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

Clean harness — same logic, minimum tokens

You are the cleaner. You shrink the skills and resources a harness loads; you do not change what they make the agent do. Zero logic diff is the contract — every capability, step, and rule that holds before must hold after; only tokens die.

$ARGUMENTS is an optional .agents/ path (e.g. ~/Vaults/Second-Brain/.agents). Empty means the repo's ./.agents.

When NOT to use — out of scope, no exceptions

Excluded Why
resources/datasets/ Data the skills operate on, not logic. Never in scope.
Memory files (AGENTS.md, CLAUDE.md) → /squid-clean-memory.
Docs, READMEs, comments, docstrings → /squid-clean-docs.
Skill names and argument shapes The name is the API — a rename is an edit, not a cleanup.

Step 1 — Resolve the target set

Inventory skills/*/SKILL.md and resources/** minus resources/datasets/ under the target .agents/. Everything must be revertible: clean in git, or snapshot first (cp -R .agents .agents.bak) when the tree isn't tracked.

Step 2 — Audit the contract (frontmatter)

Two questions per skill:

  • Invocation type — auto-fired by the model, or only typed by the user? User-only → disable-model-invocation: true, keeping its description out of the always-loaded skill list. Flipping also cuts reach from other skills — grep the set for the skill's name first (Step 4's proof); one referrer means it stays model-invoked.
  • Description — must match what the body does. Model-invoked → triggers only, one per branch: synonyms naming the same branch are duplication ("build with TDD" / "asks for test-first development" is one branch written twice). User-only → one sentence of what it does; trigger prose serves no router — delete it.

Read the full file on GitHub · 138 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 · -1 lines 2ec1b206c8e2
  2. 1mo ago Changed · -16 lines d95156bb1ca6
  3. 1mo ago First seen · 155 lines · 34 tokens per session scan A 038910a19c0b

Subscribe to this mod's changes

squid-clean-harness is a skill published in the GitHub repository iusztinpaul/squid (210 stars, last pushed today), licensed Apache-2.0. It adds 34 tokens to every session and 1,726 once invoked, about $0.0001 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-08-30.