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 flurdy/agent-skills --skill artifact-hygienegit clone --depth 1 https://github.com/flurdy/agent-skillsWrote 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/flurdy/agent-skills/artifact-hygiene)<a href="https://agentmods.dev/skills/flurdy/agent-skills/artifact-hygiene"><img src="https://agentmods.dev/badge/skills/flurdy/agent-skills/artifact-hygiene/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/flurdy/agent-skills/artifact-hygiene"><img src="https://agentmods.dev/badge/skills/flurdy/agent-skills/artifact-hygiene.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.00030 | $0.03783 |
| Opus 5.5 | $0.00012 | $0.01513 |
| Sonnet 5.5 | $0.00006 | $0.00757 |
| Haiku 4.5 | $0.00003 | $0.00378 |
Grade A, and why
artifact-hygiene 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.
How it starts
The opening of the file, as written. The whole thing — 269 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Artifact Hygiene
Run the local-only proof of concept that checks whether repository content is safe to publish. The
helper is the only component allowed to read candidate content. The active model receives normalized,
redacted findings and coverage—not raw candidate content. Claude Code uses the Sonnet alias for this
bounded interpretation; Pi continues to route by model-tier.
This skill is advisory and read-only. It never fetches, follows links, calls remote services, validates credentials, installs hooks, blocks CI, edits files, changes Git state, rewrites history, or creates tracker or remote state.
Placement and enforcement
The helper and skill remain together under ~/.agents/skills/ as the portable, client-neutral audit
discovered by Pi, Claude Code, and Codex. The model can render its redacted advisory report; a hook
cannot. Enforcement therefore stays in thin client-specific hooks that call the helper and map its
result to allow or deny, such as the
Claude Code push gate in ai-tools,
without copying detectors or report logic.
Scope
The proof of concept scans:
- the full publishable working tree: tracked regular text files plus staged, unstaged, and untracked-not-ignored regular text files; and
- unpublished branch commit messages and per-path patches relative to a locally available
default-branch ref, without fetching. If no remote-backed base is available, it scans all commits
reachable from
HEADrather than treating the current local branch as published.
History is scanned through bounded per-record stdin calls, not an unrestricted scanner Git walk.
Patches use uncolored, separate-parent unified diffs with root-commit patches enabled, regardless
of local presentation settings.
Hunk-aware, LF-delimited extraction preserves added content beginning with ++, including lines
resembling file headers; unsupported hunk formats produce partial coverage, never a clean result.
Hunk offsets map every added line back to its file line, so history findings report the file line
rather than the position among a commit's added lines.
Blob sizes are checked before generating patches; deletions introduce no content. When a large
predecessor becomes a small file, the full new file is scanned conservatively instead of building a
huge deletion patch. Such findings can include unchanged lines. Repository diff attributes cannot hide
text, and paths are treated literally.
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.
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.
- 7d ago Changed · +2 lines 2a2635a07ad8
- 1mo ago Changed · +1 lines 1b6f21307158
- 1mo ago Changed · +13 lines ad55f390f545
- 1mo ago Changed · +7 lines 0234e9382d6e
- 1mo ago Changed a25ff5292fd5
- 1mo ago Changed · +5 lines f81a27c70290
- 1mo ago Changed · +5 lines df4a0a298faf
- 2mo ago Changed · +101 lines 611638dec53c
- 2mo ago Changed · +11 lines dd0440b8ac9e
- 2mo ago First seen · 124 lines · 30 tokens per session scan A 70026f2af2df
artifact-hygiene is a skill published in the GitHub repository flurdy/agent-skills (10 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 3,783 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-31.
artifact-hygiene compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| artifact-hygieneflurdy/agent-skills | Skill | 10 | yesterday | MIT | A | 30 | Claude Code |
| merge-batchdiegosouzapw/OmniRoute | Skill | 91k | 5d ago | MIT | A | 46 | Claude Code |
| prowler-commitprowler-cloud/prowler | Skill | 15k | yesterday | Apache-2.0 | A | 44 | Claude Code, Codex |
| gh-auth-isolationgithub/gh-aw | Skill | 5.8k | today | MIT | A | 20 | Claude Code, Codex |
| github-skillzeenie-ai/OpenCompany | Skill | 1.1k | 3d ago | MIT | A | 51 | Claude Code |
| comet-githubrpamis/comet | Skill | 3.3k | yesterday | MIT | A | 72 | Claude Code, Codex |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | today | MIT | A | 51 | Claude Code, Codex |