## Why Pre-commit config management was entirely manual — no skill existed to help create, modify, or validate `.pre-commit-config.yaml`, or to run, install, and maintain the pre-commit setup. These two skills close that gap with clear scope separation: authoring vs. execution. ## Implementation Notes - `pc-author` owns `.pre-commit-config.yaml` only (no hook publishing, no install). Runs `pre-commit validate-config` after every write. Shallow file-extension scan drives proactive hook recommendations; rev staleness is flagged against `references/hooks-by-language.md` rather than hardcoded versions. Remove path reverts on failure. - `pc-run` owns install, run, autoupdate, gc, and clean. Defaults to `--all-files`. Install warns about existing `.git/hooks/` files being overwritten by `-f`. Clean requires HITL confirmation. Failure interpretation delegates to `references/failure-patterns.md`. - Provenance wired to `plugins/kyberforge/docs/research/docs/pre-commit/`. - Both skills resolve via the existing `"skills/"` glob in `plugin.json`. ## Impact Two new slash commands available after `claude plugin install kyberforge@holocron`: `/pc-author` and `/pc-run`. Refs: #12 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P87CiC58Ru2PPWYTeXtjHT
pc-run
Runs, installs, updates, and maintains pre-commit hooks in a local git clone.
What it does
pc-run handles everything that happens after .pre-commit-config.yaml exists: wiring hooks into git, running them, bumping their versions, and maintaining the cache. When hooks fail, it identifies the cause and suggests a concrete fix — it does not auto-fix files or edit the config. For creating or editing .pre-commit-config.yaml, use pc-author instead.
Before you start
pre-commitmust be installed and available onPATH- A
.pre-commit-config.yamlmust exist at the repo root (usepc-authorto create one)
Usage
Common invocations:
/pc-run— run all hooks against all files (default)/pc-run install— wire hooks into.git/hooks//pc-run autoupdate— bump allrevvalues to latest/pc-run clean— wipe the pre-commit cache (requires confirmation)
Files
| File | Purpose |
|---|---|
SKILL.md |
Skill instructions for agents |
references/failure-patterns.md |
Hook failure causes and concrete fix suggestions |
references/sources.md |
Provenance: research sources that informed this skill |
references/README.md |
Directory index for references/ |