feat(kyberforge): add pc-author and pc-run skills for pre-commit management #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two new skills for managing pre-commit in any repo. Both live in
plugins/kyberforge/skills/. Provenance wires toplugins/kyberforge/docs/research/docs/pre-commit/.pc-authorOwns
.pre-commit-config.yamlauthoring: create, add hooks, remove hooks, configure top-level keys.Routing:
Key behaviours:
git ls-files) to detect languages, then recommend hooks fromreferences/hooks-by-language.md(always consult the reference — not training-data revs). User confirms before any write.pre-commit validate-config. Abort and show error if non-zero.revin the user's config againstreferences/hooks-by-language.md. Flag mismatches and direct user topc-run autoupdate. Do not modify revs.fail_fast,default_stages,exclude, etc.): handle only on explicit request.Out of scope:
.pre-commit-hooks.yamlauthoring,pre-commit install, running hooks.pc-runOwns installing, running, updating, and maintaining the pre-commit setup.
Routing by intent:
pre-commit run --all-files(default)pre-commit run(staged files only)pre-commit installwith explicit warningpre-commit install-hookspre-commit autoupdatepre-commit gcpre-commit uninstallKey behaviours:
--all-files; never silently staged-only..pre-commit-config.yaml.ls .git/hooks/first. If hook files exist, warn explicitly thatpre-commit installwill refuse unless-fis passed, which will overwrite existing hooks. Only run on explicit request.~/.cache/pre-commit, forces full re-download) and wait for explicit yes.Out of scope:
.pre-commit-config.yamledits, hook authoring.Checklist
pc-author: fix remove path confirmation gate (FAIL)pc-author: remove hardcoded staleness version list; use reference-file comparison (SUGGESTION)pc-author: makehooks-by-language.mdlookup unconditional (SUGGESTION)pc-author: add shallow scan to "add hook" path, not only "create from scratch" (GAP)pc-run: fill in README.md (FAIL)pc-run: fix README.md file table — remove phantom files, list real files (FAIL)pc-run: fix install accuracy — pre-commit refuses without-f, does not migrate (FAIL)pc-run: remove orphan sentence line 99 (SUGGESTION)pc-run: addinstall-hooksanduninstallto route table (SUGGESTION)pc-run: add fenced code block forpre-commit clean(SUGGESTION)validate-provenance.shplugins/kyberforge/plugin.jsonglob