artifact-hygiene

artifact-hygiene is a skill for Claude Code from flurdy/agent-skills. It costs 30 tokens per session (3,783 once invoked), scanned A, original, MIT.

A local, read-only audit that checks whether files and unpublished Git history are safe to publish, while presenting the agent with redacted findings rather than raw file contents.

In plain words
What is it for?
Use it to review tracked, staged, unstaged, and untracked text files, plus unpublished commit messages and patches, before sharing repository content.
Why use it?
It can reveal secrets or other publishability problems without editing files, changing Git history, contacting remote services, or blocking the development workflow.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; mentions Claude Code; mentions Codex.

Good fit Use it to review tracked, staged, unstaged, and untracked text files, plus unpublished commit messages and patches, before sharing repository content.

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

Made for: Claude Code.

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 artifact-hygiene

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

agentmods 80×15 button for artifact-hygiene

Your own site · 80×15
<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>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,783 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.00030 $0.03783
Opus 5.5 $0.00012 $0.01513
Sonnet 5.5 $0.00006 $0.00757
Haiku 4.5 $0.00003 $0.00378

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

Security

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.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/artifact_hygiene.py, tests/test_artifact_hygiene.py, tests/test-skill-contract.sh), 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/artifact-hygiene/SKILL.md · 269 lines

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 HEAD rather 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.

Read the full file on GitHub · 269 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. 7d ago Changed · +2 lines 2a2635a07ad8
  2. 1mo ago Changed · +1 lines 1b6f21307158
  3. 1mo ago Changed · +13 lines ad55f390f545
  4. 1mo ago Changed · +7 lines 0234e9382d6e
  5. 1mo ago Changed a25ff5292fd5
  6. 1mo ago Changed · +5 lines f81a27c70290
  7. 1mo ago Changed · +5 lines df4a0a298faf
  8. 2mo ago Changed · +101 lines 611638dec53c
  9. 2mo ago Changed · +11 lines dd0440b8ac9e
  10. 2mo ago First seen · 124 lines · 30 tokens per session scan A 70026f2af2df

Subscribe to this mod's changes

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.

Related

artifact-hygiene compared with skills from other repositories

artifact-hygiene next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
artifact-hygieneflurdy/agent-skillsSkill10yesterdayMITA30Claude Code
merge-batchdiegosouzapw/OmniRouteSkill91k5d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15kyesterdayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.8ktodayMITA20Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k3d agoMITA51Claude Code
comet-githubrpamis/cometSkill3.3kyesterdayMITA72Claude Code, Codex
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex