# pc-author Create, add, remove, update, and configure `.pre-commit-config.yaml`. ## What it does Manages the pre-commit configuration file in any git repo. When invoked, it scans the repo for languages, proposes appropriate hooks with rationale, and writes or modifies `.pre-commit-config.yaml`. It validates every write with `pre-commit validate-config` and flags stale revision pins. It does not run hooks or install them into `.git/hooks/` — use `pc-run` for that. ## Usage ``` /pc-author ``` Invoke with no arguments. The skill determines from context whether to create a new config or modify an existing one. ## Files | File | Purpose | |------|---------| | `SKILL.md` | Skill instructions for agents | | `references/create-config.md` | Loaded when the repo has no `.pre-commit-config.yaml` — the create-from-scratch flow | | `references/modify-config.md` | Loaded when a `.pre-commit-config.yaml` already exists — add, remove, top-level keys, rev staleness | | `references/hooks-by-language.md` | Hook recommendations by detected language/extension | | `references/README.md` | Index of files in references/ | | `references/sources.md` | Provenance — research sources that informed this skill |