Skip to content
Back to skills

Repo Hygiene

ASecurity

Repo hygiene audit and pre-commit gate for wezdeck: broken relative markdown links, bash -n, mermaid on staged docs, secret heuristics, line budgets, bilingual README.md ↔ README.zh-CN.md structural parity. Use when installing commit hooks, running a full-repo size/link audit, or when the user asks for 卫生审计 / doc-link check / line-budget review / README 中英文同步检查. Not adversarial-review and not design-review.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 29, 2026
ai-agentsbashgit

Security analysis

A100/100

Pro scans all 16 files and shows the line behind each finding

Scanned September 29, 2026

npx -y skills add yunsii/wezdeck --skill repo-hygiene --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Repo Hygiene?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Repo Hygiene
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yunsii-repo-hygiene/badge)](https://www.skillsdirectory.com/skills/yunsii-repo-hygiene)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: repo-hygiene
description: >
  Repo hygiene audit and pre-commit gate for wezdeck: broken relative markdown
  links, bash -n, mermaid on staged docs, secret heuristics, line budgets,
  bilingual README.md ↔ README.zh-CN.md structural parity.
  Use when installing commit hooks, running a full-repo size/link audit, or
  when the user asks for 卫生审计 / doc-link check / line-budget review /
  README 中英文同步检查.
  Not adversarial-review and not design-review.
---

# repo-hygiene

## When

- Install or refresh the local pre-commit gate
- Full-repo hygiene report before a “全面评审” or worktree recycle
- Debug why a commit was blocked by the hygiene hook

## Do not use for

- Runtime diff quality → `adversarial-review`
- RFC / 方案 accept-reject → design-review checklist in `validation.md`

## Commands

```bash
# one-time (shared git dir → all worktrees)
skills/repo-hygiene/install-hooks.sh

# L0 (also run by the hook)
skills/repo-hygiene/run.sh pre-commit

# L1 report (summary first)
skills/repo-hygiene/run.sh audit
skills/repo-hygiene/run.sh audit --verbose
skills/repo-hygiene/run.sh audit --backticks   # opt-in path heuristic
skills/repo-hygiene/run.sh audit --strict      # fail non-allowlisted OVER-HARD

# fixtures
skills/repo-hygiene/test.sh
```

Budgets: `budgets.conf`. README en/zh tokens: `readme-parity.conf` (checker:
`lib/readme-parity.py`). Operator notes: `docs/daily-workflow.md#repo-hygiene`.

Emergency bypass only: `WEZTERM_HYGIENE_SKIP=1`. Soften heading-anchor fails: `WEZTERM_HYGIENE_SOFT_ANCHORS=1`.

When editing either root README, update the twin in the same commit — L0 compares
heading outline, relative links, fences/tables, and durable tokens.

Files in this skill

  • SKILL.md1.7 KB
  • budgets.conf1.7 KB
  • hooks/pre-commit674 B
  • install-hooks.sh1.7 KB
  • lib/common.sh2 KB
  • lib/links.sh6.3 KB
  • lib/readme-parity.py7.3 KB
  • lib/readme-parity.sh1.3 KB
  • lib/secrets-heuristics.sh1.1 KB
  • lib/shell-syntax.sh528 B
  • lib/sizes.sh5.2 KB
  • lib/staged.sh1.1 KB
  • readme-parity.conf830 B
  • run.sh11.9 KB
  • test-diagnostics-split.sh2.1 KB
  • test.sh10.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.