flurdy/agent-skills/artifact-hygiene
Claude Code and agent skill by flurdy/agent-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Run a local-only, read-only advisory audit of publishable working-tree files and unpublished branch history with redaction-safe findings.
Install
npx vskill@latest install flurdy/agent-skills/artifact-hygieneSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as flurdy/agent-skills/artifact-hygiene.
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.
It uses an audit-owned Gitleaks configuration and empty ignore file, scrubs scanner configuration from the environment, ignores inline scanner allow-comments, and never passes a baseline. Repository scanner configuration cannot suppress the audit. Before any clean result, a private runtime canary must prove that the selected scanner and audit configuration can detect the pinned secret shape. The helper also reports known session-share links, Bead references, email addresses, name-like personal data (personal names), AI attribution trailers or boilerplate, and scanner-suppression controls without exposing matched values.
The custom-detectors coverage source proves every built-in non-secret detector still matches its private canary. Missing detector coverage produces a partial result, never a clean result. Personal-name detection is advisory and contextual: it detects direct requests to contact a named person or handle, not capitalized technical phrases. A fixed built-in list of common non-name nouns (for example Support, Settings, Stack) keeps headings such as Contact Support or Call Stack from matching; it has no clone-local override. Expected Co-authored-by: and Signed-off-by: trailers are excluded from personal-data findings. Bead-reference, personal-data, and AI-attribution detectors scan unpublished history only—commit messages and added patch lines—rather than re-reporting content already published on the base branch. Bead references and personal-data matches in dependency lockfiles are ignored, as are email addresses under reserved example domains. Email addresses in the owner, created_by, and assignee fields of Beads .beads/issues.jsonl records are treated as structural attribution; unrelated fields remain reportable.
The Bead-reference detectors are split by certainty. beads.reference matches known prefixes with any 3–8 character base36 suffix and optional .N children, and blocks new content. beads.generic-shape matches any other hyphenated word whose 3–8 character suffix contains both letters and digits (for example non-auth0); it is a low-confidence advisory finding whose remediation names git config --local --add artifactHygiene.beadPrefixes <prefix>, so ordinary words never block while declared prefixes do. It never re-reports a known prefix, so a checked-in file can only widen detection. Generic matching ignores numeric-only fixture values such as test-stt-123 and member-uuid-123; known prefixes still match numeric-only IDs. Unknown-prefix numeric-only and digitless IDs are not detected by this heuristic. Generic prefixes require each hyphen-separated segment to start with a letter, so prefixes such as project-2 need to be known explicitly. This is not a blanket test-file exemption: mixed-suffix fixtures can still match. Known prefixes come from clone-local artifactHygiene.beadPrefixes (multi-valued or comma-separated), ARTIFACT_HYGIENE_BEAD_PREFIXES, and the repository's own .beads/config.yaml issue-prefix and .beads/issues.jsonl IDs; target.beadPrefixSource reports which. Plain hyphenated words such as dry-run are not reported, nor are <prefix>-beads Dolt remote repository names. Email matches immediately followed by : are treated as scp-style Git URLs and matches immediately preceded by :// as URL userinfo (git+ssh://git@host/…). Complete scoped or unscoped npm package@version tokens enclosed in single backticks are excluded only when the token is at most 512 bytes, its version is strict SemVer, and the email-like domain's last label starts with a digit. Alphabetic-ending prerelease domains remain reportable, even in scoped specs. The same strict version and 512-byte token limits apply to scoped or unscoped npm specifiers in URL paths: the complete specifier must follow / and end at /, end-of-input, whitespace, a quote/backtick, or a surrounding bracket delimiter. Recognition is lexical, not URL fetching or full URL parsing; a bounded 512-byte preceding token context rejects query/fragment content and malformed scopes, and unbounded prefixes remain reportable. Bare specs, ranges, malformed tokens, and adjacent email matches receive no new exemption. Only the validated npm match is skipped; line reporting, audit deadlines, canaries, and secret scanning remain active. This built-in exemption adds no clone-local override or target.policy allowance. In unpublished history only, the detector also recognizes strictly versioned uses: references on added lines in top-level .github/workflows/*.yml or .yaml files. This is bounded lexical recognition, not full YAML parsing: the entire owner/repository/path plus SemVer token must fit the 512-byte limit, excluding matching quotes, trailing whitespace and comments. Only email-shaped spans contained in a validated reference whose last matched domain label starts with a digit are exempt; alphabetic-ending prerelease domains remain reportable. Recognition and the forward-only span lookup check the audit deadline, including exempt matches. Adjacent comments, expressions, malformed references, other paths, and secret scanning remain unchanged. The detector sees added lines rather than full YAML, so it does not validate surrounding YAML context. This does not skip whole lines or arbitrary code spans. Personal-name matches stop at identifier boundaries, and paths under an artifact-hygiene/ directory are exempt from the non-secret detectors because the audit's own source and fixtures necessarily contain canary shapes; secret scanning still covers them.
A clone may allow Bead references only with local, unshared configuration:
The selected override is reported in target.policy; a checked-in configuration file cannot disable a detector.
A clone may allow one exact public-by-design client key using the redacted finding's allowId:
The fingerprint is bound to the scanner rule and exact matched value, not its path or line, so replacing the key produces a new finding. Matching findings remain visible under suppressed and in the summary. Only valid IDs from clone-local Git configuration are honored; repository files, environment variables, global Git configuration, paths, and scanner rule names cannot grant this allowance. The helper hashes the scanner match in private process memory and never emits the raw value.
Oversized blobs
Files over 1,000,000 bytes (including binary files) are not scanned. The helper hashes working-tree bytes incrementally using Git's raw blob format, without running filters or writing objects. Index and history entries use their exact Git blob IDs. SHA-1 and SHA-256 repositories are supported.
- A blob reachable anywhere in the locally available remote-backed default base's history is
skipped-by-policy with reason published-base-history, including renamed or reintroduced blobs. This proves local remote-tracking reachability, not live remote state; the helper never fetches.
- An unpublished blob remains partial (
file-too-large) and denies publication, with its path,
blob ID, and required manual override in sizeDecisions.
- After independently reviewing the unscanned content, a clone may allow exactly that blob:
``bash git config --local --add artifactHygiene.allowLargeBlobs <full-blob-id> ``
Only lowercase, full-length IDs matching the repository object format are accepted (multi-valued or comma-separated). Changed bytes require another allowance. Only direct clone-local Git configuration is honored: checked-in files, Git config includes, environment variables, and global configuration cannot grant it. Active allowances appear as +allow-large-blobs in target.policy; applied skips have reason local-blob-allowance.
sizeDecisions records each skipped or denied source/path/commit/blob combination, the byte size, reason, and safe remediation. Policy skips keep coverage complete and do not consume the scanned-byte budget; they do not claim content was inspected. A missing base cannot prove publication. Failed or bounded-out reachability checks produce publication-proof-failed; scanner failures, history-read failures, file changes, timeouts, and other resource limits still deny, even with a blob allowance. Reachability first reads one bounded base-tip tree, then uses a cached, bounded git log --find-object proof for each distinct blob absent from that tree. Checks use the remote-backed base commit, with replace refs, grafts, repository log presentation, commit graphs, renames, signatures, and path limits disabled. Git 2.31 or newer is required for published-blob skips. The shared command output and audit deadline still apply; proof failures deny. Size decisions are capped at 2,000, with overflow reported as partial rather than silently omitted.
GitHub pull requests, Jira, comments, attachments, linked pages, other repositories, full-history remediation, policy authoring, and enforcement are out of scope.
Graded publication policy
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/artifact-hygiene/SKILL.md
Popularity
- Repository stars
- 10
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/flurdy/agent-skills/artifact-hygiene)