You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] generate-docs pre-commit hook misses new skill directories #144
The generate-docs pre-commit hook does not trigger when skill directories are added or modified under .cursor/skills/. This means docs/SKILL_PIPELINE.md can become stale without the developer noticing during local commits.
docs/generate.py scans .cursor/skills/*/SKILL.md to build the skills table in SKILL_PIPELINE.md. When a new skill directory is added (e.g. pr_solve), the hook does not fire during local commits because the changed files don't match the filter. CI catches it with --all-files, but the developer only finds out after pushing.
This ensures the hook fires whenever skills are added, removed, or modified.
Alternatives Considered
Do nothing — CI catches it with --all-files, but the feedback loop is slow and creates noise.
Add git add docs/SKILL_PIPELINE.md to the hook entry — The hook already auto-stages README.md, CONTRIBUTE.md, and TESTING.md, but SKILL_PIPELINE.md is missing from the git add list. Both the trigger pattern and the staging list should be updated together.
Impact
Prevents a class of CI failures where generated docs are stale after adding or modifying skills.
#626 (part of #625) moves skills from .cursor/skills/ to .claude/skills/, changing bothdocs/generate.py's scan path and the pre-commit hook's files filter — which absorbs this fix. Will close/redirect when #626 lands.
Fixed — the generate-docs hook's files: filter now matches .claude/skills/.*/SKILL.md, so adding/modifying a skill directory triggers regeneration of docs/SKILL_PIPELINE.md locally (generator scans .claude/skills/*/SKILL.md). New skill dirs are no longer missed. Closing.
Activity
c-vigo commentedon Jun 23, 2026
#626 (part of #625) moves skills from
.cursor/skills/to.claude/skills/, changing bothdocs/generate.py's scan path and the pre-commit hook'sfilesfilter — which absorbs this fix. Will close/redirect when #626 lands.chore(claude): make .claude the SSoT for rules & skills (#646)
c-vigo commentedon Jul 2, 2026
Fixed — the
generate-docshook'sfiles:filter now matches.claude/skills/.*/SKILL.md, so adding/modifying a skill directory triggers regeneration ofdocs/SKILL_PIPELINE.mdlocally (generator scans.claude/skills/*/SKILL.md). New skill dirs are no longer missed. Closing.