repository-hygiene

repository-hygiene is a skill for Codex from cz1993/vibe-coding-repository-standard. It costs 52 tokens per session (368 once invoked), scanned A, original, Apache-2.0.

A read-only review of a software repository's documentation, agent instructions, scripts, generated files, duplicate code, tests, and related project material.

In plain words
What is it for?
Use it to assess repository cleanliness and governance, classify files by their status, and produce a risk-ranked cleanup proposal.
Why use it?
It helps identify stale, duplicated, generated, or uncertain items before anyone removes or changes them.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to assess repository cleanliness and governance, classify files by their status, and produce a risk-ranked cleanup proposal.

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

Made for: Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/cz1993/vibe-coding-repository-standard/repository-hygiene/github.svg)](https://agentmods.dev/skills/cz1993/vibe-coding-repository-standard/repository-hygiene)
Your own site
<a href="https://agentmods.dev/skills/cz1993/vibe-coding-repository-standard/repository-hygiene"><img src="https://agentmods.dev/badge/skills/cz1993/vibe-coding-repository-standard/repository-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 repository-hygiene

Your own site · 80×15
<a href="https://agentmods.dev/skills/cz1993/vibe-coding-repository-standard/repository-hygiene"><img src="https://agentmods.dev/badge/skills/cz1993/vibe-coding-repository-standard/repository-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 368 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.00052 $0.00368
Opus 5 $0.00026 $0.00184
Sonnet 5 $0.00010 $0.00074
Haiku 4.5 $0.00005 $0.00037

Measured 12d ago against content hash 6998a7ef2a62, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

repository-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 12d 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.

standard/template/.agents/skills/repository-hygiene/SKILL.md · 50 lines

What it actually says

Repository Hygiene Audit

Inputs

  • repository root;
  • audit scope;
  • approved standard version;
  • known production/scheduler/operator context, if safely available.

Constraints

  • Read-only by default.
  • Do not access production or client data.
  • Do not delete, move, rename, refactor, upgrade, or rewrite during the audit.
  • Do not treat missing static references as proof of no external caller.
  • Do not optimize for file-count reduction.

Procedure

  1. Inventory documentation, agent instructions, skills, custom agents, hooks, memory, MCP, scripts, generated output, tests, CI, deployment, and entry points.
  2. For candidate stale items, check imports/callers, CLI registration, scheduler/CI, deployment/IaC, runbooks, operators, external integrations, and data/file side effects.
  3. Classify each item:
    • keep;
    • merge;
    • move to an authoritative location;
    • generated;
    • superseded and safe to delete;
    • retention/archive required;
    • unknown and investigate.
  4. Identify rules better enforced by tests/CI.
  5. Identify context duplication and instruction precedence problems.
  6. Produce a risk-ranked proposal with evidence and validation steps.

Output

  • inventory and classification;
  • evidence for proposed removals;
  • contradictions and unknowns;
  • proposed small cleanup changesets;
  • rules to convert into executable controls;
  • expected context/maintenance improvement;
  • items deliberately retained.

Deletion and refactoring require a separate reviewed change.

Files

What ships with it

1 file 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. 12d ago First seen · 50 lines · 52 tokens per session scan A 6998a7ef2a62

Subscribe to this mod's changes

repository-hygiene is a skill published in the GitHub repository cz1993/vibe-coding-repository-standard (21 stars, last pushed 27d ago), licensed Apache-2.0. It adds 52 tokens to every session and 368 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

scoped-change

Judgment rules for locating the correct boundary of a requested change: staying inert outside it while completing every required site inside it. Use when scope is ambiguous, a diff touches neighboring surfaces, required dependent edits are unclear, or a proposed compatibility layer, migration, fallback, flag…

scarletkc/agents · 69 tokens

marketing-copy

Write outbound promotional copy for a product or project: launch and update posts for community platforms and social media, store page descriptions and short blurbs, landing page headlines and calls to action, press-style announcements, and the naming of a product for another language or market. Covers what may be…

scarletkc/agents · 121 tokens

hooksmith

Use when designing or reviewing safe Grok Build hooks for linting, tests, formatting, notifications, command guards, lifecycle automation, or project hook trust decisions.

DominikTobureto/awesome-grok-build · 35 tokens

repo-health-check

Use when auditing a repo before changes to find the smallest safe PR, quality risks, stale docs, missing tests, ignored-file gaps, or agent setup issues. Best first skill for unfamiliar codebases.

DominikTobureto/awesome-grok-build · 44 tokens

architecture-review

Use for clean architecture, modular monoliths, hexagonal boundaries, service boundaries, data flow, dependency direction, ADRs, or large feature planning.

DominikTobureto/awesome-grok-build · 34 tokens

frontend-ux-engineer

Use for frontend features, Next.js/React/Vue/Svelte UI, accessibility, responsive layout, design polish, state handling, forms, visual QA, or product workflow improvements.

DominikTobureto/awesome-grok-build · 42 tokens