Guard docs/ to only allow design/ and tasks/#89
Conversation
A pre-commit hook now blocks commits that add files under docs/ outside of docs/design/ and docs/tasks/. The error message guides agents to the correct path, preventing tool-generated directories like docs/superpowers/ from accumulating. Also removes the existing docs/superpowers/ tree that was created by an external tool. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughAdded a pre-commit hook to guard against accidental deletions of documentation files in the Changes
Poem
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Verification: verify:selfResult: ✅ PASS in 101.4s
Verification: verify:integrationResult: ✅ PASS |
Summary
docs/outside ofdocs/design/anddocs/tasks/docs/superpowers/docs/superpowers/directoryTest plan
docs/superpowers/test.mdblocks the commitdocs/design/anddocs/tasks/commit normally--diff-filter=d)pnpm verify:fastpasses🤖 Generated with Claude Code
Summary by CodeRabbit