mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-15 21:33:04 +08:00
Integrates useful changes from #1882, #1884, #1889, #1893, #1898, #1899, and #1903: - fix rule install docs to preserve language directories - correct Ruby security command examples - harden dev-server hook command-substitution parsing - add Prisma patterns skill and catalog/package surfaces - allow first-time protected config creation while blocking existing configs - read cost metrics from Stop hook transcripts - emit suggest-compact additionalContext on stdout Co-authored-by: Jamkris <dltmdgus1412@gmail.com> Co-authored-by: Levi-Evan <levishantz@gmail.com> Co-authored-by: gaurav0107 <gauravdubey0107@gmail.com> Co-authored-by: richm-spp <richard.millar@salarypackagingplus.com.au> Co-authored-by: zomia <zomians@outlook.jp> Co-authored-by: donghyeun02 <donghyeun02@gmail.com>
1.3 KiB
1.3 KiB
paths
| paths | |||||
|---|---|---|---|---|---|
|
Ruby Hooks
This file extends common/hooks.md with Ruby and Rails specific content.
PostToolUse Hooks
Configure project-local hooks to prefer binstubs and checked-in tooling:
- RuboCop: run
bundle exec rubocop -A <file>or the project's safer formatter command after Ruby edits. - Brakeman: run
bundle exec brakeman --no-progressafter security-sensitive Rails changes. - Tests: run the narrowest matching
bin/rails test ...orbundle exec rspec ...command for touched files. - Bundler audit: run
bundle exec bundle-audit check --updatewhenGemfileorGemfile.lockchanges and the project has bundler-audit installed.
Warnings
- Warn on committed
debugger,binding.irb,binding.pry,puts,pp, orpcalls in application code. - Warn when an edit disables CSRF protection, expands mass-assignment, or adds raw SQL without parameterization.
- Warn when a migration changes data destructively without a reversible path or documented rollout plan.
CI Gate Suggestions
bundle exec rubocop
bundle exec brakeman --no-progress
bin/rails test
bundle exec rspec
Use only the commands that are present in the project; do not install new hook dependencies without maintainer approval.