@the-bearded-bear/claude-craft 9.2.0 → 9.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dev/i18n/base/Angular/rules/00-project-context.md.template +1 -1
- package/Dev/i18n/base/Angular/rules/03-coding-standards.md +17 -16
- package/Dev/i18n/base/Angular/rules/06-tooling.md +2 -2
- package/Dev/i18n/base/CSharp/rules/06-tooling.md +8 -6
- package/Dev/i18n/base/Common/hooks/scripts/block-dangerous-commands.sh +93 -48
- package/Dev/i18n/base/Common/hooks/scripts/guard-network.sh +58 -0
- package/Dev/i18n/base/Common/hooks/scripts/lib/hook-io.sh +181 -0
- package/Dev/i18n/base/Common/hooks/scripts/notify-slack.sh +21 -32
- package/Dev/i18n/base/Common/hooks/scripts/output-filter.sh +23 -0
- package/Dev/i18n/base/Common/hooks/scripts/output-size-hint.sh +19 -0
- package/Dev/i18n/base/Common/hooks/scripts/post-edit-lint.sh +29 -53
- package/Dev/i18n/base/Common/hooks/scripts/post-tool-failure.sh +50 -0
- package/Dev/i18n/base/Common/hooks/scripts/pre-commit-check.sh +59 -63
- package/Dev/i18n/base/Common/hooks/scripts/pre-compact.sh +52 -0
- package/Dev/i18n/base/Common/hooks/scripts/protect-sensitive-files.sh +16 -0
- package/Dev/i18n/base/Common/hooks/scripts/quality-gate.sh +49 -92
- package/Dev/i18n/base/Common/hooks/scripts/session-end.sh +51 -0
- package/Dev/i18n/base/Common/hooks/scripts/session-init.sh +45 -69
- package/Dev/i18n/base/Common/hooks/templates/examples/README.md +59 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/auto-format.json +18 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/block-dangerous-commands.json +18 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/context-reinject.json +28 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/output-filter.json +18 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/pre-compact.json +18 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/protect-files.json +18 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/security-block.json +18 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/stop-hook.json +16 -0
- package/Dev/i18n/base/Common/hooks/templates/examples/user-prompt-submit.json +16 -0
- package/Dev/i18n/base/Common/hooks/templates/hooks.default.json +72 -0
- package/Dev/i18n/base/Common/hooks/templates/{settings-hooks.json → hooks.full.json} +22 -23
- package/Dev/i18n/base/Common/hooks/templates/hooks.memory.json +62 -0
- package/Dev/i18n/base/Common/templates/AGENTS.md.template +1 -1
- package/Dev/i18n/base/Common/templates/settings.json.template +46 -0
- package/Dev/i18n/base/Flutter/rules/00-project-context.md.template +9 -9
- package/Dev/i18n/base/Laravel/checks/code-quality.md +1 -1
- package/Dev/i18n/base/Laravel/rules/00-project-context.md.template +2 -2
- package/Dev/i18n/base/Laravel/rules/06-tooling.md +10 -8
- package/Dev/i18n/base/Laravel/rules/07-testing-laravel.md +2 -0
- package/Dev/i18n/base/Laravel/rules/08-quality-tools.md +2 -2
- package/Dev/i18n/base/PHP/rules/00-project-context.md.template +2 -2
- package/Dev/i18n/base/Tauri/rules/02-architecture-tauri.md +1 -0
- package/Dev/i18n/base/Vercel/checks/all.md +1 -1
- package/Dev/i18n/base/Vercel/checks/architecture.md +1 -1
- package/Dev/i18n/base/Vercel/rules/02-architecture-vercel.md +4 -2
- package/Dev/i18n/base/Vercel/rules/06-tooling.md +7 -5
- package/Dev/i18n/base/Vercel/rules/11-security-vercel.md +1 -1
- package/Dev/i18n/base/Vite/rules/06-tooling.md +2 -1
- package/Dev/i18n/base/Vite/rules/08-quality-tools.md +1 -1
- package/Dev/i18n/base/VueJS/rules/06-tooling.md +3 -3
- package/Dev/i18n/base/VueJS/rules/07-testing-vuejs.md +9 -8
- package/Dev/i18n/base/VueJS/rules/08-quality-tools.md +1 -1
- package/Dev/i18n/base/WordPress/checklists/new-feature.md +59 -0
- package/Dev/i18n/base/WordPress/checklists/pre-commit.md +125 -0
- package/Dev/i18n/base/WordPress/checks/all.md +257 -0
- package/Dev/i18n/base/WordPress/checks/architecture.md +157 -0
- package/Dev/i18n/base/WordPress/checks/code-quality.md +158 -0
- package/Dev/i18n/base/WordPress/checks/security.md +158 -0
- package/Dev/i18n/base/WordPress/checks/testing.md +157 -0
- package/Dev/i18n/base/WordPress/commands/check.md +28 -0
- package/Dev/i18n/base/WordPress/rules/00-project-context.md.template +169 -0
- package/Dev/i18n/base/WordPress/rules/02-architecture-wordpress.md +174 -0
- package/Dev/i18n/base/WordPress/rules/03-coding-standards.md +98 -0
- package/Dev/i18n/base/WordPress/rules/06-tooling.md +146 -0
- package/Dev/i18n/base/WordPress/rules/07-testing-wordpress.md +150 -0
- package/Dev/i18n/base/WordPress/rules/08-quality-tools.md +161 -0
- package/Dev/i18n/base/WordPress/rules/11-security-wordpress.md +175 -0
- package/Dev/i18n/base/WordPress/skills/woocommerce/REFERENCE.md +214 -0
- package/Dev/i18n/base/WordPress/skills/woocommerce/SKILL.md +40 -0
- package/Dev/i18n/base/WordPress/skills/woocommerce/checklist.md +66 -0
- package/Dev/i18n/base/WordPress/templates/block.md +235 -0
- package/Dev/i18n/base/WordPress/templates/plugin-bootstrap.md +215 -0
- package/Dev/i18n/base/WordPress/templates/rest-endpoint.md +246 -0
- package/Dev/i18n/de/Angular/CLAUDE.md.template +2 -1
- package/Dev/i18n/de/Angular/agents/angular-reviewer.md +23 -7
- package/Dev/i18n/de/Common/agents/devops-engineer.md +1 -1
- package/Dev/i18n/de/Common/agents/migration-specialist.md +1 -1
- package/Dev/i18n/de/Common/commands/ralph-run.md +3 -3
- package/Dev/i18n/de/Common/commands/setup-rtk.md +2 -9
- package/Dev/i18n/de/Common/hooks/HOOKS-QUICKSTART.md +33 -45
- package/Dev/i18n/de/Common/rules/04-solid-principles.md +2 -2
- package/Dev/i18n/de/Common/rules/09-git-workflow.md +7 -1
- package/Dev/i18n/de/Common/rules/10-documentation.md +2 -2
- package/Dev/i18n/de/Common/rules/11-security.md +12 -12
- package/Dev/i18n/de/Common/rules/12-context-management.md +5 -3
- package/Dev/i18n/de/Flutter/commands/analyze-performance.md +1 -1
- package/Dev/i18n/de/Flutter/rules/06-tooling.md +6 -2
- package/Dev/i18n/de/Flutter/rules/11-security-flutter.md +1 -1
- package/Dev/i18n/de/PHP/rules/03-coding-standards.md +10 -0
- package/Dev/i18n/de/PHP/rules/06-tooling.md +7 -3
- package/Dev/i18n/de/Paperclip/CLAUDE.md.template +2 -2
- package/Dev/i18n/de/Paperclip/README.md +1 -1
- package/Dev/i18n/de/Paperclip/checks/security.md +1 -0
- package/Dev/i18n/de/Paperclip/rules/11-security-paperclip.md +3 -1
- package/Dev/i18n/de/Python/agents/python-reviewer.md +1 -1
- package/Dev/i18n/de/Python/checks/code-quality.md +4 -4
- package/Dev/i18n/de/Python/checks/security.md +2 -2
- package/Dev/i18n/de/Python/checks/testing.md +2 -2
- package/Dev/i18n/de/Python/rules/02-architecture.md +1 -8
- package/Dev/i18n/de/Python/rules/03-coding-standards.md +16 -5
- package/Dev/i18n/de/Python/templates/repository.md +2 -2
- package/Dev/i18n/de/React/rules/02-architecture.md +17 -20
- package/Dev/i18n/de/React/rules/03-coding-standards.md +15 -16
- package/Dev/i18n/de/React/templates/component.md +11 -9
- package/Dev/i18n/de/ReactNative/agents/reactnative-reviewer.md +4 -4
- package/Dev/i18n/de/ReactNative/rules/06-tooling.md +15 -14
- package/Dev/i18n/de/ReactNative/rules/14-navigation.md +2 -0
- package/Dev/i18n/de/Ruby/agents/ruby-reviewer.md +1 -1
- package/Dev/i18n/de/Ruby/rules/06-tooling.md +2 -2
- package/Dev/i18n/de/Ruby/rules/11-security-ruby.md +13 -1
- package/Dev/i18n/de/Rust/rules/03-coding-standards.md +1 -1
- package/Dev/i18n/de/Rust/rules/11-security-rust.md +1 -1
- package/Dev/i18n/de/Symfony/adr/README.md +1 -1
- package/Dev/i18n/de/Symfony/checks/code-quality.md +2 -2
- package/Dev/i18n/de/Symfony/rules/03-coding-standards.md +15 -0
- package/Dev/i18n/de/Symfony/rules/06-docker-hadolint.md +1 -1
- package/Dev/i18n/de/Symfony/rules/08-quality-tools.md +1 -3
- package/Dev/i18n/de/Symfony/rules/15-doctrine-extensions.md +5 -5
- package/Dev/i18n/de/Symfony/rules/16-i18n.md +1 -1
- package/Dev/i18n/de/Symfony/templates/README.md +1 -1
- package/Dev/i18n/de/Tauri/agents/tauri-reviewer.md +3 -0
- package/Dev/i18n/de/Vercel/agents/vercel-reviewer.md +1 -0
- package/Dev/i18n/de/Vercel/checks/all.md +1 -1
- package/Dev/i18n/de/Vite/agents/vite-reviewer.md +11 -11
- package/Dev/i18n/de/WordPress/CLAUDE.md.template +100 -0
- package/Dev/i18n/de/WordPress/agents/wordpress-reviewer.md +350 -0
- package/Dev/i18n/de/WordPress/checks/all.md +242 -0
- package/Dev/i18n/de/WordPress/commands/check.md +28 -0
- package/Dev/i18n/en/Angular/CLAUDE.md.template +3 -2
- package/Dev/i18n/en/Angular/agents/angular-reviewer.md +23 -7
- package/Dev/i18n/en/Common/agents/devops-engineer.md +1 -1
- package/Dev/i18n/en/Common/agents/migration-specialist.md +1 -1
- package/Dev/i18n/en/Common/commands/ralph-run.md +3 -3
- package/Dev/i18n/en/Common/commands/setup-rtk.md +2 -9
- package/Dev/i18n/en/Common/hooks/HOOKS-QUICKSTART.md +31 -43
- package/Dev/i18n/en/Common/rules/04-solid-principles.md +2 -2
- package/Dev/i18n/en/Common/rules/09-git-workflow.md +7 -1
- package/Dev/i18n/en/Common/rules/10-documentation.md +2 -2
- package/Dev/i18n/en/Common/rules/11-security.md +12 -12
- package/Dev/i18n/en/Common/rules/12-context-management.md +5 -3
- package/Dev/i18n/en/Flutter/commands/analyze-performance.md +1 -1
- package/Dev/i18n/en/Flutter/rules/06-tooling.md +6 -2
- package/Dev/i18n/en/Flutter/rules/11-security-flutter.md +1 -1
- package/Dev/i18n/en/Laravel/CLAUDE.md.template +1 -1
- package/Dev/i18n/en/Laravel/agents/laravel-reviewer.md +3 -3
- package/Dev/i18n/en/PHP/rules/03-coding-standards.md +10 -0
- package/Dev/i18n/en/PHP/rules/06-tooling.md +7 -3
- package/Dev/i18n/en/Paperclip/CLAUDE.md.template +2 -2
- package/Dev/i18n/en/Paperclip/README.md +1 -1
- package/Dev/i18n/en/Paperclip/checks/security.md +1 -0
- package/Dev/i18n/en/Paperclip/rules/11-security-paperclip.md +3 -1
- package/Dev/i18n/en/Python/agents/python-reviewer.md +1 -1
- package/Dev/i18n/en/Python/checks/code-quality.md +4 -4
- package/Dev/i18n/en/Python/checks/security.md +2 -2
- package/Dev/i18n/en/Python/checks/testing.md +2 -2
- package/Dev/i18n/en/Python/rules/02-architecture.md +1 -8
- package/Dev/i18n/en/Python/rules/03-coding-standards.md +16 -5
- package/Dev/i18n/en/Python/templates/repository.md +2 -2
- package/Dev/i18n/en/React/rules/02-architecture.md +17 -20
- package/Dev/i18n/en/React/rules/03-coding-standards.md +15 -16
- package/Dev/i18n/en/React/templates/component.md +11 -9
- package/Dev/i18n/en/ReactNative/agents/reactnative-reviewer.md +4 -4
- package/Dev/i18n/en/ReactNative/rules/02-architecture.md +4 -4
- package/Dev/i18n/en/ReactNative/rules/06-tooling.md +15 -14
- package/Dev/i18n/en/ReactNative/rules/07-testing-reactnative.md +1 -1
- package/Dev/i18n/en/ReactNative/rules/14-navigation.md +2 -0
- package/Dev/i18n/en/Ruby/agents/ruby-reviewer.md +1 -1
- package/Dev/i18n/en/Ruby/rules/06-tooling.md +2 -2
- package/Dev/i18n/en/Ruby/rules/11-security-ruby.md +13 -1
- package/Dev/i18n/en/Rust/rules/03-coding-standards.md +1 -1
- package/Dev/i18n/en/Rust/rules/11-security-rust.md +1 -1
- package/Dev/i18n/en/Symfony/adr/README.md +1 -1
- package/Dev/i18n/en/Symfony/checks/code-quality.md +2 -2
- package/Dev/i18n/en/Symfony/rules/03-coding-standards.md +15 -0
- package/Dev/i18n/en/Symfony/rules/06-docker-hadolint.md +1 -1
- package/Dev/i18n/en/Symfony/rules/08-quality-tools.md +1 -3
- package/Dev/i18n/en/Symfony/rules/15-doctrine-extensions.md +5 -5
- package/Dev/i18n/en/Symfony/rules/16-i18n.md +1 -1
- package/Dev/i18n/en/Symfony/templates/README.md +1 -1
- package/Dev/i18n/en/Tauri/agents/tauri-reviewer.md +3 -0
- package/Dev/i18n/en/Vercel/agents/vercel-reviewer.md +1 -0
- package/Dev/i18n/en/Vercel/checks/all.md +1 -1
- package/Dev/i18n/en/Vite/agents/vite-reviewer.md +11 -11
- package/Dev/i18n/en/WordPress/CLAUDE.md.template +100 -0
- package/Dev/i18n/en/WordPress/agents/wordpress-reviewer.md +350 -0
- package/Dev/i18n/en/WordPress/checks/all.md +241 -0
- package/Dev/i18n/en/WordPress/commands/check.md +28 -0
- package/Dev/i18n/es/Angular/CLAUDE.md.template +3 -2
- package/Dev/i18n/es/Angular/agents/angular-reviewer.md +23 -7
- package/Dev/i18n/es/Common/agents/devops-engineer.md +1 -1
- package/Dev/i18n/es/Common/agents/migration-specialist.md +1 -1
- package/Dev/i18n/es/Common/commands/ralph-run.md +3 -3
- package/Dev/i18n/es/Common/commands/setup-rtk.md +2 -9
- package/Dev/i18n/es/Common/hooks/HOOKS-QUICKSTART.md +33 -45
- package/Dev/i18n/es/Common/rules/04-solid-principles.md +2 -2
- package/Dev/i18n/es/Common/rules/09-git-workflow.md +7 -1
- package/Dev/i18n/es/Common/rules/10-documentation.md +2 -2
- package/Dev/i18n/es/Common/rules/11-security.md +12 -12
- package/Dev/i18n/es/Common/rules/12-context-management.md +5 -3
- package/Dev/i18n/es/Flutter/commands/analyze-performance.md +1 -1
- package/Dev/i18n/es/Flutter/rules/06-tooling.md +6 -2
- package/Dev/i18n/es/Flutter/rules/11-security-flutter.md +1 -1
- package/Dev/i18n/es/Laravel/agents/laravel-reviewer.md +2 -2
- package/Dev/i18n/es/PHP/rules/03-coding-standards.md +10 -0
- package/Dev/i18n/es/PHP/rules/06-tooling.md +7 -3
- package/Dev/i18n/es/Paperclip/CLAUDE.md.template +2 -2
- package/Dev/i18n/es/Paperclip/README.md +1 -1
- package/Dev/i18n/es/Paperclip/checks/security.md +1 -0
- package/Dev/i18n/es/Paperclip/rules/11-security-paperclip.md +3 -1
- package/Dev/i18n/es/Python/agents/python-reviewer.md +1 -1
- package/Dev/i18n/es/Python/checks/code-quality.md +4 -4
- package/Dev/i18n/es/Python/checks/security.md +2 -2
- package/Dev/i18n/es/Python/checks/testing.md +2 -2
- package/Dev/i18n/es/Python/rules/02-architecture.md +1 -8
- package/Dev/i18n/es/Python/rules/03-coding-standards.md +16 -5
- package/Dev/i18n/es/Python/templates/repository.md +2 -2
- package/Dev/i18n/es/React/rules/03-coding-standards.md +15 -16
- package/Dev/i18n/es/React/templates/component.md +11 -9
- package/Dev/i18n/es/ReactNative/agents/reactnative-reviewer.md +4 -4
- package/Dev/i18n/es/ReactNative/rules/06-tooling.md +15 -14
- package/Dev/i18n/es/ReactNative/rules/14-navigation.md +2 -0
- package/Dev/i18n/es/Ruby/agents/ruby-reviewer.md +1 -1
- package/Dev/i18n/es/Ruby/rules/06-tooling.md +2 -2
- package/Dev/i18n/es/Ruby/rules/11-security-ruby.md +13 -1
- package/Dev/i18n/es/Rust/rules/03-coding-standards.md +1 -1
- package/Dev/i18n/es/Rust/rules/11-security-rust.md +1 -1
- package/Dev/i18n/es/Symfony/adr/README.md +1 -1
- package/Dev/i18n/es/Symfony/checks/code-quality.md +2 -2
- package/Dev/i18n/es/Symfony/rules/03-coding-standards.md +15 -0
- package/Dev/i18n/es/Symfony/rules/06-docker-hadolint.md +1 -1
- package/Dev/i18n/es/Symfony/rules/08-quality-tools.md +1 -3
- package/Dev/i18n/es/Symfony/rules/15-doctrine-extensions.md +5 -5
- package/Dev/i18n/es/Symfony/rules/16-i18n.md +1 -1
- package/Dev/i18n/es/Symfony/templates/README.md +1 -1
- package/Dev/i18n/es/Tauri/agents/tauri-reviewer.md +3 -0
- package/Dev/i18n/es/Vercel/agents/vercel-reviewer.md +2 -1
- package/Dev/i18n/es/Vercel/checks/all.md +1 -1
- package/Dev/i18n/es/Vite/agents/vite-reviewer.md +11 -11
- package/Dev/i18n/es/WordPress/CLAUDE.md.template +100 -0
- package/Dev/i18n/es/WordPress/agents/wordpress-reviewer.md +350 -0
- package/Dev/i18n/es/WordPress/checks/all.md +241 -0
- package/Dev/i18n/es/WordPress/commands/check.md +28 -0
- package/Dev/i18n/fr/Angular/CLAUDE.md.template +3 -2
- package/Dev/i18n/fr/Angular/agents/angular-reviewer.md +23 -7
- package/Dev/i18n/fr/Common/agents/devops-engineer.md +1 -1
- package/Dev/i18n/fr/Common/agents/migration-specialist.md +1 -1
- package/Dev/i18n/fr/Common/commands/ralph-run.md +3 -3
- package/Dev/i18n/fr/Common/commands/setup-rtk.md +2 -9
- package/Dev/i18n/fr/Common/hooks/HOOKS-QUICKSTART.md +32 -44
- package/Dev/i18n/fr/Common/rules/04-solid-principles.md +2 -2
- package/Dev/i18n/fr/Common/rules/09-git-workflow.md +7 -1
- package/Dev/i18n/fr/Common/rules/10-documentation.md +2 -2
- package/Dev/i18n/fr/Common/rules/11-security.md +12 -12
- package/Dev/i18n/fr/Common/rules/12-context-management.md +5 -3
- package/Dev/i18n/fr/Flutter/commands/analyze-performance.md +1 -1
- package/Dev/i18n/fr/Flutter/rules/02-architecture.md +4 -4
- package/Dev/i18n/fr/Flutter/rules/06-tooling.md +6 -2
- package/Dev/i18n/fr/Flutter/rules/11-security-flutter.md +1 -1
- package/Dev/i18n/fr/Laravel/CLAUDE.md.template +1 -1
- package/Dev/i18n/fr/Laravel/agents/laravel-reviewer.md +3 -3
- package/Dev/i18n/fr/PHP/rules/03-coding-standards.md +10 -0
- package/Dev/i18n/fr/PHP/rules/06-tooling.md +7 -3
- package/Dev/i18n/fr/Paperclip/CLAUDE.md.template +2 -2
- package/Dev/i18n/fr/Paperclip/README.md +1 -1
- package/Dev/i18n/fr/Paperclip/checks/security.md +1 -0
- package/Dev/i18n/fr/Paperclip/rules/11-security-paperclip.md +3 -1
- package/Dev/i18n/fr/Python/agents/python-reviewer.md +1 -1
- package/Dev/i18n/fr/Python/checks/code-quality.md +4 -4
- package/Dev/i18n/fr/Python/checks/security.md +2 -2
- package/Dev/i18n/fr/Python/checks/testing.md +2 -2
- package/Dev/i18n/fr/Python/commands/dependency-audit.md +1 -2
- package/Dev/i18n/fr/Python/commands/generate-endpoint.md +7 -11
- package/Dev/i18n/fr/Python/commands/generate-model.md +6 -6
- package/Dev/i18n/fr/Python/rules/02-architecture.md +9 -24
- package/Dev/i18n/fr/Python/rules/03-coding-standards.md +19 -7
- package/Dev/i18n/fr/Python/templates/repository.md +9 -10
- package/Dev/i18n/fr/React/commands/generate-component.md +52 -51
- package/Dev/i18n/fr/React/rules/02-architecture.md +17 -20
- package/Dev/i18n/fr/React/rules/03-coding-standards.md +15 -16
- package/Dev/i18n/fr/React/templates/component.md +11 -9
- package/Dev/i18n/fr/ReactNative/agents/reactnative-reviewer.md +4 -4
- package/Dev/i18n/fr/ReactNative/rules/06-tooling.md +15 -14
- package/Dev/i18n/fr/ReactNative/rules/14-navigation.md +2 -0
- package/Dev/i18n/fr/Ruby/agents/ruby-reviewer.md +1 -1
- package/Dev/i18n/fr/Ruby/rules/06-tooling.md +2 -2
- package/Dev/i18n/fr/Ruby/rules/11-security-ruby.md +13 -1
- package/Dev/i18n/fr/Rust/rules/03-coding-standards.md +1 -1
- package/Dev/i18n/fr/Rust/rules/11-security-rust.md +1 -1
- package/Dev/i18n/fr/Symfony/adr/README.md +1 -1
- package/Dev/i18n/fr/Symfony/checks/code-quality.md +2 -2
- package/Dev/i18n/fr/Symfony/rules/03-coding-standards.md +15 -0
- package/Dev/i18n/fr/Symfony/rules/06-docker-hadolint.md +1 -1
- package/Dev/i18n/fr/Symfony/rules/08-quality-tools.md +1 -3
- package/Dev/i18n/fr/Symfony/rules/15-doctrine-extensions.md +5 -5
- package/Dev/i18n/fr/Symfony/rules/16-i18n.md +1 -1
- package/Dev/i18n/fr/Symfony/templates/README.md +1 -1
- package/Dev/i18n/fr/Tauri/agents/tauri-reviewer.md +3 -0
- package/Dev/i18n/fr/Vercel/agents/vercel-reviewer.md +1 -0
- package/Dev/i18n/fr/Vercel/checks/all.md +1 -1
- package/Dev/i18n/fr/Vite/agents/vite-reviewer.md +11 -11
- package/Dev/i18n/fr/WordPress/CLAUDE.md.template +100 -0
- package/Dev/i18n/fr/WordPress/agents/wordpress-reviewer.md +350 -0
- package/Dev/i18n/fr/WordPress/checks/all.md +242 -0
- package/Dev/i18n/fr/WordPress/commands/check.md +28 -0
- package/Dev/i18n/pt/Angular/CLAUDE.md.template +3 -2
- package/Dev/i18n/pt/Angular/agents/angular-reviewer.md +23 -7
- package/Dev/i18n/pt/Common/agents/devops-engineer.md +1 -1
- package/Dev/i18n/pt/Common/agents/migration-specialist.md +1 -1
- package/Dev/i18n/pt/Common/commands/ralph-run.md +3 -3
- package/Dev/i18n/pt/Common/commands/setup-rtk.md +2 -9
- package/Dev/i18n/pt/Common/hooks/HOOKS-QUICKSTART.md +33 -45
- package/Dev/i18n/pt/Common/rules/04-solid-principles.md +2 -2
- package/Dev/i18n/pt/Common/rules/09-git-workflow.md +7 -1
- package/Dev/i18n/pt/Common/rules/10-documentation.md +2 -2
- package/Dev/i18n/pt/Common/rules/11-security.md +12 -12
- package/Dev/i18n/pt/Common/rules/12-context-management.md +5 -3
- package/Dev/i18n/pt/Flutter/commands/analyze-performance.md +1 -1
- package/Dev/i18n/pt/Flutter/rules/06-tooling.md +6 -2
- package/Dev/i18n/pt/Flutter/rules/11-security-flutter.md +1 -1
- package/Dev/i18n/pt/Laravel/agents/laravel-reviewer.md +2 -2
- package/Dev/i18n/pt/PHP/rules/03-coding-standards.md +10 -0
- package/Dev/i18n/pt/PHP/rules/06-tooling.md +7 -3
- package/Dev/i18n/pt/Paperclip/CLAUDE.md.template +2 -2
- package/Dev/i18n/pt/Paperclip/README.md +1 -1
- package/Dev/i18n/pt/Paperclip/checks/security.md +1 -0
- package/Dev/i18n/pt/Paperclip/rules/11-security-paperclip.md +3 -1
- package/Dev/i18n/pt/Python/agents/python-reviewer.md +1 -1
- package/Dev/i18n/pt/Python/checks/code-quality.md +4 -4
- package/Dev/i18n/pt/Python/checks/security.md +2 -2
- package/Dev/i18n/pt/Python/checks/testing.md +2 -2
- package/Dev/i18n/pt/Python/rules/02-architecture.md +1 -8
- package/Dev/i18n/pt/Python/rules/03-coding-standards.md +16 -5
- package/Dev/i18n/pt/Python/templates/repository.md +2 -2
- package/Dev/i18n/pt/React/rules/02-architecture.md +17 -20
- package/Dev/i18n/pt/React/rules/03-coding-standards.md +15 -16
- package/Dev/i18n/pt/React/templates/component.md +12 -10
- package/Dev/i18n/pt/ReactNative/agents/reactnative-reviewer.md +4 -4
- package/Dev/i18n/pt/ReactNative/rules/06-tooling.md +15 -14
- package/Dev/i18n/pt/ReactNative/rules/14-navigation.md +2 -0
- package/Dev/i18n/pt/Ruby/agents/ruby-reviewer.md +1 -1
- package/Dev/i18n/pt/Ruby/rules/06-tooling.md +2 -2
- package/Dev/i18n/pt/Ruby/rules/11-security-ruby.md +13 -1
- package/Dev/i18n/pt/Rust/rules/03-coding-standards.md +1 -1
- package/Dev/i18n/pt/Rust/rules/11-security-rust.md +1 -1
- package/Dev/i18n/pt/Symfony/adr/README.md +1 -1
- package/Dev/i18n/pt/Symfony/checks/code-quality.md +2 -2
- package/Dev/i18n/pt/Symfony/rules/03-coding-standards.md +15 -0
- package/Dev/i18n/pt/Symfony/rules/06-docker-hadolint.md +1 -1
- package/Dev/i18n/pt/Symfony/rules/08-quality-tools.md +1 -3
- package/Dev/i18n/pt/Symfony/rules/15-doctrine-extensions.md +5 -5
- package/Dev/i18n/pt/Symfony/rules/16-i18n.md +1 -1
- package/Dev/i18n/pt/Symfony/templates/README.md +1 -1
- package/Dev/i18n/pt/Tauri/agents/tauri-reviewer.md +3 -0
- package/Dev/i18n/pt/Vercel/agents/vercel-reviewer.md +1 -0
- package/Dev/i18n/pt/Vercel/checks/all.md +1 -1
- package/Dev/i18n/pt/Vite/agents/vite-reviewer.md +11 -11
- package/Dev/i18n/pt/WordPress/CLAUDE.md.template +100 -0
- package/Dev/i18n/pt/WordPress/agents/wordpress-reviewer.md +350 -0
- package/Dev/i18n/pt/WordPress/checks/all.md +241 -0
- package/Dev/i18n/pt/WordPress/commands/check.md +28 -0
- package/Dev/scripts/check-config.sh +1 -1
- package/Dev/scripts/install-common-rules.sh +65 -0
- package/Dev/scripts/install-from-config.sh +3 -0
- package/Dev/scripts/install-paperclip-rules.sh +1 -1
- package/Dev/scripts/install-wordpress-rules.sh +153 -0
- package/Dev/scripts/lib/merge-hooks.mjs +110 -0
- package/Dev/scripts/memory-lifecycle/README.md +10 -9
- package/Dev/scripts/memory-lifecycle/_db.sh +1 -1
- package/Dev/scripts/memory-lifecycle/post-tool.sh +1 -1
- package/Dev/scripts/memory-lifecycle/pre-compact.sh +5 -5
- package/Dev/scripts/memory-lifecycle/prompt-submit.sh +1 -1
- package/Dev/scripts/memory-lifecycle/session-end.sh +1 -1
- package/Dev/scripts/memory-lifecycle/session-start.sh +5 -4
- package/Dev/stack-profiles/wordpress/permissions.txt +10 -0
- package/Dev/stack-profiles/wordpress/quality.md +4 -0
- package/Dev/stack-profiles/wordpress/stack.txt +2 -0
- package/Infra/i18n/de/Ansible/agents/ansible-architect.md +3 -1
- package/Infra/i18n/de/Ansible/agents/ansible-debug.md +1 -0
- package/Infra/i18n/de/Ansible/agents/ansible-deployment.md +3 -0
- package/Infra/i18n/de/Ansible/agents/ansible-security.md +2 -0
- package/Infra/i18n/de/Ansible/commands/security-audit.md +1 -1
- package/Infra/i18n/de/Coolify/agents/coolify-debug.md +1 -0
- package/Infra/i18n/de/Coolify/agents/coolify-deployment.md +5 -1
- package/Infra/i18n/de/Coolify/commands/coolify-debug.md +1 -0
- package/Infra/i18n/de/Coolify/commands/coolify-deploy.md +1 -0
- package/Infra/i18n/de/FrankenPHP/agents/frankenphp-architect.md +4 -2
- package/Infra/i18n/de/FrankenPHP/agents/frankenphp-deployment.md +2 -2
- package/Infra/i18n/de/FrankenPHP/agents/frankenphp-security.md +1 -1
- package/Infra/i18n/de/FrankenPHP/commands/deploy-setup.md +1 -1
- package/Infra/i18n/de/Hcloud/agents/hcloud-architect.md +16 -14
- package/Infra/i18n/de/Hcloud/agents/hcloud-cost.md +11 -9
- package/Infra/i18n/de/Hcloud/agents/hcloud-deployment.md +1 -1
- package/Infra/i18n/de/Hcloud/agents/hcloud-security.md +1 -1
- package/Infra/i18n/de/Hcloud/commands/architecture.md +2 -2
- package/Infra/i18n/de/Hcloud/commands/debug.md +3 -3
- package/Infra/i18n/de/Kubernetes/agents/kubernetes-architect.md +4 -0
- package/Infra/i18n/de/Kubernetes/agents/kubernetes-deployment.md +31 -0
- package/Infra/i18n/de/Kubernetes/agents/kubernetes-security.md +5 -1
- package/Infra/i18n/de/OpenTofu/agents/opentofu-architect.md +3 -1
- package/Infra/i18n/de/OpenTofu/agents/opentofu-deployment.md +2 -2
- package/Infra/i18n/de/OpenTofu/agents/opentofu-security.md +5 -5
- package/Infra/i18n/de/OpenTofu/commands/security-audit.md +1 -1
- package/Infra/i18n/de/PgBouncer/agents/pgbouncer-architect.md +1 -0
- package/Infra/i18n/de/PgBouncer/agents/pgbouncer-deployment.md +3 -3
- package/Infra/i18n/de/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
- package/Infra/i18n/de/PgBouncer/commands/deploy-setup.md +1 -1
- package/Infra/i18n/en/Ansible/agents/ansible-architect.md +3 -1
- package/Infra/i18n/en/Ansible/agents/ansible-debug.md +1 -0
- package/Infra/i18n/en/Ansible/agents/ansible-deployment.md +3 -0
- package/Infra/i18n/en/Ansible/agents/ansible-security.md +2 -0
- package/Infra/i18n/en/Ansible/commands/security-audit.md +1 -1
- package/Infra/i18n/en/Coolify/agents/coolify-debug.md +1 -0
- package/Infra/i18n/en/Coolify/agents/coolify-deployment.md +5 -1
- package/Infra/i18n/en/Coolify/commands/coolify-debug.md +1 -0
- package/Infra/i18n/en/Coolify/commands/coolify-deploy.md +1 -0
- package/Infra/i18n/en/FrankenPHP/agents/frankenphp-architect.md +4 -2
- package/Infra/i18n/en/FrankenPHP/agents/frankenphp-deployment.md +2 -2
- package/Infra/i18n/en/FrankenPHP/agents/frankenphp-security.md +1 -1
- package/Infra/i18n/en/FrankenPHP/commands/deploy-setup.md +1 -1
- package/Infra/i18n/en/Hcloud/agents/hcloud-architect.md +10 -8
- package/Infra/i18n/en/Hcloud/agents/hcloud-cost.md +11 -9
- package/Infra/i18n/en/Hcloud/agents/hcloud-deployment.md +1 -1
- package/Infra/i18n/en/Kubernetes/agents/kubernetes-architect.md +4 -0
- package/Infra/i18n/en/Kubernetes/agents/kubernetes-deployment.md +31 -0
- package/Infra/i18n/en/Kubernetes/agents/kubernetes-security.md +5 -1
- package/Infra/i18n/en/OpenTofu/agents/opentofu-architect.md +3 -1
- package/Infra/i18n/en/OpenTofu/agents/opentofu-deployment.md +2 -2
- package/Infra/i18n/en/OpenTofu/agents/opentofu-security.md +5 -5
- package/Infra/i18n/en/OpenTofu/commands/security-audit.md +1 -1
- package/Infra/i18n/en/PgBouncer/agents/pgbouncer-architect.md +1 -0
- package/Infra/i18n/en/PgBouncer/agents/pgbouncer-deployment.md +3 -3
- package/Infra/i18n/en/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
- package/Infra/i18n/en/PgBouncer/commands/deploy-setup.md +1 -1
- package/Infra/i18n/es/Ansible/agents/ansible-architect.md +3 -1
- package/Infra/i18n/es/Ansible/agents/ansible-debug.md +1 -0
- package/Infra/i18n/es/Ansible/agents/ansible-deployment.md +3 -0
- package/Infra/i18n/es/Ansible/agents/ansible-security.md +2 -0
- package/Infra/i18n/es/Ansible/commands/security-audit.md +1 -1
- package/Infra/i18n/es/Coolify/agents/coolify-debug.md +1 -0
- package/Infra/i18n/es/Coolify/agents/coolify-deployment.md +5 -1
- package/Infra/i18n/es/Coolify/commands/coolify-debug.md +1 -0
- package/Infra/i18n/es/Coolify/commands/coolify-deploy.md +1 -0
- package/Infra/i18n/es/FrankenPHP/agents/frankenphp-architect.md +4 -2
- package/Infra/i18n/es/FrankenPHP/agents/frankenphp-deployment.md +2 -2
- package/Infra/i18n/es/FrankenPHP/agents/frankenphp-security.md +1 -1
- package/Infra/i18n/es/FrankenPHP/commands/deploy-setup.md +1 -1
- package/Infra/i18n/es/Hcloud/agents/hcloud-architect.md +11 -9
- package/Infra/i18n/es/Hcloud/agents/hcloud-cost.md +11 -9
- package/Infra/i18n/es/Hcloud/agents/hcloud-deployment.md +1 -1
- package/Infra/i18n/es/Hcloud/commands/debug.md +1 -1
- package/Infra/i18n/es/Kubernetes/agents/kubernetes-architect.md +4 -0
- package/Infra/i18n/es/Kubernetes/agents/kubernetes-deployment.md +31 -0
- package/Infra/i18n/es/Kubernetes/agents/kubernetes-security.md +5 -1
- package/Infra/i18n/es/OpenTofu/agents/opentofu-architect.md +3 -1
- package/Infra/i18n/es/OpenTofu/agents/opentofu-deployment.md +2 -2
- package/Infra/i18n/es/OpenTofu/agents/opentofu-security.md +5 -5
- package/Infra/i18n/es/OpenTofu/commands/security-audit.md +1 -1
- package/Infra/i18n/es/PgBouncer/agents/pgbouncer-architect.md +1 -0
- package/Infra/i18n/es/PgBouncer/agents/pgbouncer-deployment.md +3 -3
- package/Infra/i18n/es/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
- package/Infra/i18n/es/PgBouncer/commands/deploy-setup.md +1 -1
- package/Infra/i18n/fr/Ansible/agents/ansible-architect.md +3 -1
- package/Infra/i18n/fr/Ansible/agents/ansible-debug.md +1 -0
- package/Infra/i18n/fr/Ansible/agents/ansible-deployment.md +3 -0
- package/Infra/i18n/fr/Ansible/agents/ansible-security.md +2 -0
- package/Infra/i18n/fr/Ansible/commands/security-audit.md +1 -1
- package/Infra/i18n/fr/Coolify/agents/coolify-debug.md +1 -0
- package/Infra/i18n/fr/Coolify/agents/coolify-deployment.md +5 -1
- package/Infra/i18n/fr/Coolify/commands/coolify-debug.md +1 -0
- package/Infra/i18n/fr/Coolify/commands/coolify-deploy.md +1 -0
- package/Infra/i18n/fr/FrankenPHP/agents/frankenphp-architect.md +4 -2
- package/Infra/i18n/fr/FrankenPHP/agents/frankenphp-deployment.md +2 -2
- package/Infra/i18n/fr/FrankenPHP/agents/frankenphp-security.md +1 -1
- package/Infra/i18n/fr/FrankenPHP/commands/deploy-setup.md +1 -1
- package/Infra/i18n/fr/Hcloud/agents/hcloud-architect.md +7 -5
- package/Infra/i18n/fr/Hcloud/agents/hcloud-cost.md +11 -9
- package/Infra/i18n/fr/Hcloud/agents/hcloud-deployment.md +1 -1
- package/Infra/i18n/fr/Kubernetes/agents/kubernetes-architect.md +4 -0
- package/Infra/i18n/fr/Kubernetes/agents/kubernetes-deployment.md +31 -0
- package/Infra/i18n/fr/Kubernetes/agents/kubernetes-security.md +5 -1
- package/Infra/i18n/fr/OpenTofu/agents/opentofu-architect.md +3 -1
- package/Infra/i18n/fr/OpenTofu/agents/opentofu-deployment.md +2 -2
- package/Infra/i18n/fr/OpenTofu/agents/opentofu-security.md +5 -5
- package/Infra/i18n/fr/OpenTofu/commands/security-audit.md +1 -1
- package/Infra/i18n/fr/PgBouncer/agents/pgbouncer-architect.md +1 -0
- package/Infra/i18n/fr/PgBouncer/agents/pgbouncer-deployment.md +3 -3
- package/Infra/i18n/fr/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
- package/Infra/i18n/fr/PgBouncer/commands/deploy-setup.md +1 -1
- package/Infra/i18n/pt/Ansible/agents/ansible-architect.md +3 -1
- package/Infra/i18n/pt/Ansible/agents/ansible-debug.md +1 -0
- package/Infra/i18n/pt/Ansible/agents/ansible-deployment.md +3 -0
- package/Infra/i18n/pt/Ansible/agents/ansible-security.md +2 -0
- package/Infra/i18n/pt/Ansible/commands/security-audit.md +1 -1
- package/Infra/i18n/pt/Coolify/agents/coolify-debug.md +1 -0
- package/Infra/i18n/pt/Coolify/agents/coolify-deployment.md +5 -1
- package/Infra/i18n/pt/Coolify/commands/coolify-debug.md +1 -0
- package/Infra/i18n/pt/Coolify/commands/coolify-deploy.md +1 -0
- package/Infra/i18n/pt/FrankenPHP/agents/frankenphp-architect.md +4 -2
- package/Infra/i18n/pt/FrankenPHP/agents/frankenphp-deployment.md +2 -2
- package/Infra/i18n/pt/FrankenPHP/agents/frankenphp-security.md +1 -1
- package/Infra/i18n/pt/FrankenPHP/commands/deploy-setup.md +1 -1
- package/Infra/i18n/pt/Hcloud/agents/hcloud-architect.md +9 -7
- package/Infra/i18n/pt/Hcloud/agents/hcloud-cost.md +11 -9
- package/Infra/i18n/pt/Hcloud/agents/hcloud-deployment.md +1 -1
- package/Infra/i18n/pt/Hcloud/commands/architecture.md +1 -1
- package/Infra/i18n/pt/Hcloud/commands/debug.md +1 -1
- package/Infra/i18n/pt/Kubernetes/agents/kubernetes-architect.md +4 -0
- package/Infra/i18n/pt/Kubernetes/agents/kubernetes-deployment.md +31 -0
- package/Infra/i18n/pt/Kubernetes/agents/kubernetes-security.md +5 -1
- package/Infra/i18n/pt/OpenTofu/agents/opentofu-architect.md +3 -1
- package/Infra/i18n/pt/OpenTofu/agents/opentofu-deployment.md +2 -2
- package/Infra/i18n/pt/OpenTofu/agents/opentofu-security.md +5 -5
- package/Infra/i18n/pt/OpenTofu/commands/security-audit.md +1 -1
- package/Infra/i18n/pt/PgBouncer/agents/pgbouncer-architect.md +1 -0
- package/Infra/i18n/pt/PgBouncer/agents/pgbouncer-deployment.md +3 -3
- package/Infra/i18n/pt/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
- package/Infra/i18n/pt/PgBouncer/commands/deploy-setup.md +1 -1
- package/README.md +27 -15
- package/Tools/PluginExport/export-plugin.sh +15 -17
- package/Tools/Ralph/README.md +17 -7
- package/Tools/Ralph/hooks/lib/ralph-common.sh +101 -0
- package/Tools/Ralph/hooks/pre-tool-context.sh +28 -0
- package/Tools/Ralph/hooks/session-restore.sh +94 -0
- package/Tools/Ralph/hooks/stop-dod-gate.sh +60 -0
- package/Tools/Ralph/lib/hooks-generator.sh +109 -93
- package/bundles/cursor/.cursorrules +11 -10
- package/bundles/windsurf/.windsurfrules +11 -10
- package/cli/index.js +1 -0
- package/cli/lib/doctor.js +4 -3
- package/cli/lib/help.js +1 -0
- package/cli/lib/installer.js +1 -1
- package/cli/lib/parse-args.js +12 -0
- package/cli/lib/tech-registry.js +15 -5
- package/package.json +2 -1
- package/Dev/i18n/de/Common/hooks/scripts/post-tool-failure.sh +0 -89
- package/Dev/i18n/de/Common/hooks/scripts/pre-compact.sh +0 -53
- package/Dev/i18n/de/Common/hooks/scripts/session-end.sh +0 -98
- package/Dev/i18n/de/Common/templates/settings.json.template +0 -128
- package/Dev/i18n/en/Common/hooks/scripts/post-tool-failure.sh +0 -89
- package/Dev/i18n/en/Common/hooks/scripts/pre-compact.sh +0 -53
- package/Dev/i18n/en/Common/hooks/scripts/session-end.sh +0 -98
- package/Dev/i18n/en/Common/templates/settings.json.template +0 -128
- package/Dev/i18n/es/Common/hooks/scripts/post-tool-failure.sh +0 -89
- package/Dev/i18n/es/Common/hooks/scripts/pre-compact.sh +0 -53
- package/Dev/i18n/es/Common/hooks/scripts/session-end.sh +0 -98
- package/Dev/i18n/es/Common/templates/settings.json.template +0 -128
- package/Dev/i18n/fr/Common/hooks/scripts/post-tool-failure.sh +0 -88
- package/Dev/i18n/fr/Common/hooks/scripts/pre-compact.sh +0 -53
- package/Dev/i18n/fr/Common/hooks/scripts/session-end.sh +0 -98
- package/Dev/i18n/fr/Common/templates/settings.json.template +0 -128
- package/Dev/i18n/pt/Common/hooks/scripts/post-tool-failure.sh +0 -89
- package/Dev/i18n/pt/Common/hooks/scripts/pre-compact.sh +0 -53
- package/Dev/i18n/pt/Common/hooks/scripts/session-end.sh +0 -98
- package/Dev/i18n/pt/Common/templates/settings.json.template +0 -128
- package/Tools/Ralph/.ralph/hooks/pre-tool-context.sh +0 -100
- package/Tools/Ralph/.ralph/hooks/session-restore.sh +0 -118
- package/Tools/Ralph/.ralph/hooks/status-injector.sh +0 -147
- package/Tools/Ralph/.ralph/hooks/stop-dod-gate.sh +0 -137
|
@@ -2,13 +2,22 @@
|
|
|
2
2
|
set -euo pipefail
|
|
3
3
|
# =============================================================================
|
|
4
4
|
# Ralph Wiggum - Hooks Generator Module
|
|
5
|
-
#
|
|
5
|
+
# Installe les scripts de hooks Ralph dans le projet et fusionne leur configuration
|
|
6
|
+
# dans .claude/settings.json sans jamais toucher aux hooks de l'utilisateur
|
|
7
|
+
# (fusion via Dev/scripts/lib/merge-hooks.mjs, entrées Ralph repérées par `/.ralph/hooks/`).
|
|
6
8
|
# =============================================================================
|
|
7
9
|
|
|
8
10
|
# Hooks configuration
|
|
9
11
|
HOOKS_ENABLED="${HOOKS_ENABLED:-true}"
|
|
10
12
|
HOOKS_MODE="${HOOKS_MODE:-advanced}"
|
|
11
|
-
|
|
13
|
+
# Répertoire des scripts dans le projet : ${HOOKS_DIR:-$PWD/.ralph/hooks} (résolu à l'appel)
|
|
14
|
+
|
|
15
|
+
# Sources fournies avec le paquet (Tools/Ralph/hooks et Dev/ voisins de Tools/).
|
|
16
|
+
_RALPH_HOOKS_SRC="$(cd "$(dirname "${BASH_SOURCE[0]}")/../hooks" && pwd)"
|
|
17
|
+
_RALPH_SHARED_SRC="$_RALPH_HOOKS_SRC/../../../Dev/i18n/base/Common/hooks/scripts"
|
|
18
|
+
|
|
19
|
+
# Marqueur identifiant les entrées Ralph dans settings.json
|
|
20
|
+
RALPH_HOOKS_MATCH="/.ralph/hooks/"
|
|
12
21
|
|
|
13
22
|
# =============================================================================
|
|
14
23
|
# Initialize Hooks
|
|
@@ -21,7 +30,7 @@ init_hooks() {
|
|
|
21
30
|
fi
|
|
22
31
|
|
|
23
32
|
# Load settings from config
|
|
24
|
-
if [[ -n "$CONFIG_FILE" && -f "$CONFIG_FILE" ]] && command -v yq &> /dev/null; then
|
|
33
|
+
if [[ -n "${CONFIG_FILE:-}" && -f "$CONFIG_FILE" ]] && command -v yq &> /dev/null; then
|
|
25
34
|
local enabled
|
|
26
35
|
enabled=$(yq e '.hooks.enabled // "true"' "$CONFIG_FILE" 2>/dev/null)
|
|
27
36
|
HOOKS_ENABLED="$enabled"
|
|
@@ -31,33 +40,63 @@ init_hooks() {
|
|
|
31
40
|
HOOKS_MODE="$mode"
|
|
32
41
|
fi
|
|
33
42
|
|
|
34
|
-
#
|
|
35
|
-
mkdir -p "$HOOKS_DIR"
|
|
36
|
-
|
|
37
|
-
# Ensure hook scripts exist and are executable
|
|
43
|
+
# Copy scripts into the project if absent and make them executable
|
|
38
44
|
ensure_hook_scripts
|
|
39
45
|
|
|
40
46
|
print_verbose "Hooks initialized (mode: $HOOKS_MODE)"
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
# =============================================================================
|
|
44
|
-
# Ensure Hook Scripts Exist
|
|
50
|
+
# Ensure Hook Scripts Exist (copied from the package when absent)
|
|
45
51
|
# =============================================================================
|
|
46
52
|
|
|
53
|
+
_copy_hook_script() {
|
|
54
|
+
local src="$1" dest="$2"
|
|
55
|
+
if [[ ! -f "$src" ]]; then
|
|
56
|
+
print_warning "Hook script source not found: $src"
|
|
57
|
+
return 0
|
|
58
|
+
fi
|
|
59
|
+
if [[ ! -f "$dest" ]]; then
|
|
60
|
+
mkdir -p "$(dirname "$dest")"
|
|
61
|
+
cp "$src" "$dest"
|
|
62
|
+
fi
|
|
63
|
+
if head -1 "$dest" | grep -q "^#!"; then
|
|
64
|
+
chmod +x "$dest"
|
|
65
|
+
fi
|
|
66
|
+
}
|
|
67
|
+
|
|
47
68
|
ensure_hook_scripts() {
|
|
48
|
-
local
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
for script in "${scripts[@]}"; do
|
|
56
|
-
local script_path="$HOOKS_DIR/$script"
|
|
57
|
-
if [[ -f "$script_path" ]] && head -1 "$script_path" | grep -q "^#!"; then
|
|
58
|
-
chmod +x "$script_path"
|
|
59
|
-
fi
|
|
69
|
+
local dest="${HOOKS_DIR:-$PWD/.ralph/hooks}"
|
|
70
|
+
local script
|
|
71
|
+
|
|
72
|
+
mkdir -p "$dest/lib"
|
|
73
|
+
|
|
74
|
+
for script in stop-dod-gate.sh session-restore.sh pre-tool-context.sh lib/ralph-common.sh; do
|
|
75
|
+
_copy_hook_script "$_RALPH_HOOKS_SRC/$script" "$dest/$script"
|
|
60
76
|
done
|
|
77
|
+
|
|
78
|
+
# Gardes partagées : la DoD ne lance une commande qu'après leur verdict
|
|
79
|
+
for script in block-dangerous-commands.sh guard-network.sh lib/hook-io.sh; do
|
|
80
|
+
_copy_hook_script "$_RALPH_SHARED_SRC/$script" "$dest/$script"
|
|
81
|
+
done
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
# =============================================================================
|
|
85
|
+
# merge-hooks.mjs resolution
|
|
86
|
+
# =============================================================================
|
|
87
|
+
|
|
88
|
+
# Affiche le chemin de merge-hooks.mjs ; échoue (avec avertissement) si node ou le script manque.
|
|
89
|
+
_ralph_merge_hooks_js() {
|
|
90
|
+
local js="${RALPH_MERGE_HOOKS_JS:-$_RALPH_HOOKS_SRC/../../../Dev/scripts/lib/merge-hooks.mjs}"
|
|
91
|
+
if ! command -v node &>/dev/null; then
|
|
92
|
+
print_warning "node not found: .claude/settings.json left untouched"
|
|
93
|
+
return 1
|
|
94
|
+
fi
|
|
95
|
+
if [[ ! -f "$js" ]]; then
|
|
96
|
+
print_warning "merge-hooks.mjs not found ($js): .claude/settings.json left untouched"
|
|
97
|
+
return 1
|
|
98
|
+
fi
|
|
99
|
+
printf '%s' "$js"
|
|
61
100
|
}
|
|
62
101
|
|
|
63
102
|
# =============================================================================
|
|
@@ -66,46 +105,39 @@ ensure_hook_scripts() {
|
|
|
66
105
|
|
|
67
106
|
generate_hooks_config() {
|
|
68
107
|
local output_file="${1:-.claude/settings.json}"
|
|
69
|
-
local project_dir="${2:-.}"
|
|
70
108
|
|
|
71
|
-
|
|
72
|
-
|
|
109
|
+
local merge_js
|
|
110
|
+
merge_js=$(_ralph_merge_hooks_js) || return 0
|
|
73
111
|
|
|
74
|
-
|
|
75
|
-
local existing_settings="{}"
|
|
76
|
-
if [[ -f "$output_file" ]]; then
|
|
77
|
-
existing_settings=$(cat "$output_file" 2>/dev/null || echo "{}")
|
|
78
|
-
fi
|
|
112
|
+
ensure_hook_scripts
|
|
79
113
|
|
|
80
|
-
|
|
81
|
-
local hooks_config
|
|
114
|
+
local fragment_body
|
|
82
115
|
case "$HOOKS_MODE" in
|
|
83
116
|
simple)
|
|
84
|
-
|
|
117
|
+
fragment_body=$(generate_simple_hooks_config)
|
|
85
118
|
;;
|
|
86
119
|
advanced)
|
|
87
|
-
|
|
120
|
+
fragment_body=$(generate_advanced_hooks_config)
|
|
88
121
|
;;
|
|
89
122
|
*)
|
|
90
123
|
print_warning "Unknown hooks mode: $HOOKS_MODE, using simple"
|
|
91
|
-
|
|
124
|
+
fragment_body=$(generate_simple_hooks_config)
|
|
92
125
|
;;
|
|
93
126
|
esac
|
|
94
127
|
|
|
95
|
-
|
|
96
|
-
local
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
128
|
+
mkdir -p "$(dirname "$output_file")"
|
|
129
|
+
local fragment="${output_file}.ralph-fragment.$$"
|
|
130
|
+
printf '{"hooks": %s}\n' "$fragment_body" > "$fragment"
|
|
131
|
+
|
|
132
|
+
# Retire d'abord les anciennes entrées Ralph (chemins absolus d'avant, `once`, ...),
|
|
133
|
+
# puis ajoute les courantes : les hooks de l'utilisateur ne sont jamais touchés.
|
|
134
|
+
if node "$merge_js" remove --settings "$output_file" --match "$RALPH_HOOKS_MATCH" >/dev/null \
|
|
135
|
+
&& node "$merge_js" add --settings "$output_file" --fragment "$fragment" >/dev/null; then
|
|
136
|
+
print_success "${MSG_HOOKS_CONFIG_GENERATED:-Hooks configuration generated}: $output_file"
|
|
100
137
|
else
|
|
101
|
-
|
|
102
|
-
merged="{\"hooks\": $hooks_config}"
|
|
138
|
+
print_warning "Hooks configuration could not be merged into $output_file"
|
|
103
139
|
fi
|
|
104
|
-
|
|
105
|
-
# Write to file
|
|
106
|
-
echo "$merged" > "$output_file"
|
|
107
|
-
|
|
108
|
-
print_success "${MSG_HOOKS_CONFIG_GENERATED:-Hooks configuration generated}: $output_file"
|
|
140
|
+
rm -f "$fragment"
|
|
109
141
|
}
|
|
110
142
|
|
|
111
143
|
# =============================================================================
|
|
@@ -113,18 +145,15 @@ generate_hooks_config() {
|
|
|
113
145
|
# =============================================================================
|
|
114
146
|
|
|
115
147
|
generate_simple_hooks_config() {
|
|
116
|
-
|
|
117
|
-
hooks_dir_abs=$(cd "$HOOKS_DIR" 2>/dev/null && pwd || echo "$PWD/$HOOKS_DIR")
|
|
118
|
-
|
|
119
|
-
cat <<EOF
|
|
148
|
+
cat <<'EOF'
|
|
120
149
|
{
|
|
121
150
|
"Stop": [
|
|
122
151
|
{
|
|
123
|
-
"matcher": ".*",
|
|
124
152
|
"hooks": [
|
|
125
153
|
{
|
|
126
154
|
"type": "command",
|
|
127
|
-
"command": "$
|
|
155
|
+
"command": "bash \"$CLAUDE_PROJECT_DIR/.ralph/hooks/stop-dod-gate.sh\"",
|
|
156
|
+
"timeout": 300
|
|
128
157
|
}
|
|
129
158
|
]
|
|
130
159
|
}
|
|
@@ -138,41 +167,38 @@ EOF
|
|
|
138
167
|
# =============================================================================
|
|
139
168
|
|
|
140
169
|
generate_advanced_hooks_config() {
|
|
141
|
-
|
|
142
|
-
hooks_dir_abs=$(cd "$HOOKS_DIR" 2>/dev/null && pwd || echo "$PWD/$HOOKS_DIR")
|
|
143
|
-
|
|
144
|
-
cat <<EOF
|
|
170
|
+
cat <<'EOF'
|
|
145
171
|
{
|
|
146
172
|
"SessionStart": [
|
|
147
173
|
{
|
|
148
|
-
"matcher": ".*",
|
|
149
174
|
"hooks": [
|
|
150
175
|
{
|
|
151
176
|
"type": "command",
|
|
152
|
-
"command": "$
|
|
177
|
+
"command": "bash \"$CLAUDE_PROJECT_DIR/.ralph/hooks/session-restore.sh\"",
|
|
178
|
+
"timeout": 10
|
|
153
179
|
}
|
|
154
180
|
]
|
|
155
181
|
}
|
|
156
182
|
],
|
|
157
183
|
"PreToolUse": [
|
|
158
184
|
{
|
|
159
|
-
"matcher": "
|
|
185
|
+
"matcher": "Agent|Task",
|
|
160
186
|
"hooks": [
|
|
161
187
|
{
|
|
162
188
|
"type": "command",
|
|
163
|
-
"command": "$
|
|
164
|
-
"
|
|
189
|
+
"command": "bash \"$CLAUDE_PROJECT_DIR/.ralph/hooks/pre-tool-context.sh\"",
|
|
190
|
+
"timeout": 5
|
|
165
191
|
}
|
|
166
192
|
]
|
|
167
193
|
}
|
|
168
194
|
],
|
|
169
195
|
"Stop": [
|
|
170
196
|
{
|
|
171
|
-
"matcher": ".*",
|
|
172
197
|
"hooks": [
|
|
173
198
|
{
|
|
174
199
|
"type": "command",
|
|
175
|
-
"command": "$
|
|
200
|
+
"command": "bash \"$CLAUDE_PROJECT_DIR/.ralph/hooks/stop-dod-gate.sh\"",
|
|
201
|
+
"timeout": 300
|
|
176
202
|
}
|
|
177
203
|
]
|
|
178
204
|
}
|
|
@@ -247,7 +273,7 @@ EOF
|
|
|
247
273
|
}
|
|
248
274
|
|
|
249
275
|
# =============================================================================
|
|
250
|
-
# Remove Hooks Configuration
|
|
276
|
+
# Remove Hooks Configuration (uniquement les entrées Ralph)
|
|
251
277
|
# =============================================================================
|
|
252
278
|
|
|
253
279
|
remove_hooks_config() {
|
|
@@ -257,13 +283,11 @@ remove_hooks_config() {
|
|
|
257
283
|
return 0
|
|
258
284
|
fi
|
|
259
285
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
print_info "Hooks configuration removed from $settings_file"
|
|
266
|
-
fi
|
|
286
|
+
local merge_js
|
|
287
|
+
merge_js=$(_ralph_merge_hooks_js) || return 0
|
|
288
|
+
|
|
289
|
+
if node "$merge_js" remove --settings "$settings_file" --match "$RALPH_HOOKS_MATCH" >/dev/null; then
|
|
290
|
+
print_info "Ralph hooks removed from $settings_file"
|
|
267
291
|
fi
|
|
268
292
|
}
|
|
269
293
|
|
|
@@ -273,27 +297,29 @@ remove_hooks_config() {
|
|
|
273
297
|
|
|
274
298
|
validate_hooks_setup() {
|
|
275
299
|
local errors=0
|
|
300
|
+
local hooks_dir="${HOOKS_DIR:-$PWD/.ralph/hooks}"
|
|
276
301
|
|
|
277
302
|
# Check hooks directory
|
|
278
|
-
if [[ ! -d "$
|
|
279
|
-
print_warning "Hooks directory not found: $
|
|
303
|
+
if [[ ! -d "$hooks_dir" ]]; then
|
|
304
|
+
print_warning "Hooks directory not found: $hooks_dir"
|
|
280
305
|
errors=$((errors + 1))
|
|
281
306
|
fi
|
|
282
307
|
|
|
283
308
|
# Check required scripts
|
|
284
309
|
local required_scripts=("stop-dod-gate.sh")
|
|
285
310
|
if [[ "$HOOKS_MODE" == "advanced" ]]; then
|
|
286
|
-
required_scripts+=("session-restore.sh" "
|
|
311
|
+
required_scripts+=("session-restore.sh" "pre-tool-context.sh")
|
|
287
312
|
fi
|
|
288
313
|
|
|
314
|
+
local script
|
|
289
315
|
for script in "${required_scripts[@]}"; do
|
|
290
|
-
local script_path="$
|
|
316
|
+
local script_path="$hooks_dir/$script"
|
|
291
317
|
if [[ ! -f "$script_path" ]]; then
|
|
292
318
|
print_warning "Hook script not found: $script_path"
|
|
293
319
|
errors=$((errors + 1))
|
|
294
320
|
elif [[ ! -x "$script_path" ]]; then
|
|
295
321
|
print_warning "Hook script not executable: $script_path"
|
|
296
|
-
if
|
|
322
|
+
if head -1 "$script_path" | grep -q "^#!"; then
|
|
297
323
|
chmod +x "$script_path" 2>/dev/null && print_info "Made executable: $script_path"
|
|
298
324
|
else
|
|
299
325
|
print_warning "Skipped chmod: no shebang in $script_path"
|
|
@@ -303,13 +329,9 @@ validate_hooks_setup() {
|
|
|
303
329
|
|
|
304
330
|
# Check Claude settings
|
|
305
331
|
if [[ -f ".claude/settings.json" ]]; then
|
|
306
|
-
if
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
if [[ -z "$has_hooks" ]]; then
|
|
310
|
-
print_warning "No hooks configured in .claude/settings.json"
|
|
311
|
-
errors=$((errors + 1))
|
|
312
|
-
fi
|
|
332
|
+
if ! grep -q "$RALPH_HOOKS_MATCH" ".claude/settings.json"; then
|
|
333
|
+
print_warning "No Ralph hooks configured in .claude/settings.json"
|
|
334
|
+
errors=$((errors + 1))
|
|
313
335
|
fi
|
|
314
336
|
else
|
|
315
337
|
print_warning ".claude/settings.json not found"
|
|
@@ -326,18 +348,12 @@ validate_hooks_setup() {
|
|
|
326
348
|
}
|
|
327
349
|
|
|
328
350
|
# =============================================================================
|
|
329
|
-
# Hook
|
|
351
|
+
# Hook Contract Reference (Claude Code)
|
|
330
352
|
# =============================================================================
|
|
331
353
|
#
|
|
332
|
-
# Exit codes
|
|
333
|
-
#
|
|
334
|
-
#
|
|
335
|
-
#
|
|
336
|
-
#
|
|
337
|
-
# Hook output format:
|
|
338
|
-
# JSON object with optional fields:
|
|
339
|
-
# - message: string to display
|
|
340
|
-
# - additionalContext: string to inject into Claude's context
|
|
341
|
-
# - error: error message (for exit code 1)
|
|
354
|
+
# Payload JSON on stdin. Exit codes: 0 = ok, 2 = block (stderr shown to the model).
|
|
355
|
+
# Output reaching the model: hookSpecificOutput.{hookEventName, additionalContext}.
|
|
356
|
+
# Stop: print {"decision":"block","reason":"..."} with exit 0 ; `stop_hook_active`
|
|
357
|
+
# is true when the hook already forced a continuation (must then allow the stop).
|
|
342
358
|
#
|
|
343
359
|
# =============================================================================
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
# Claude-Craft - Multi-Technology Framework
|
|
10
10
|
|
|
11
|
-
**Version:** 9.2.
|
|
11
|
+
**Version:** 9.2.1 | **Languages:** en, fr, es, de, pt
|
|
12
12
|
|
|
13
|
-
A comprehensive AI-assisted development framework for Claude Code with
|
|
13
|
+
A comprehensive AI-assisted development framework for Claude Code with 17 technology stacks, 33 specialized agents (+39 infra agents on-demand), 143 commands across 18 namespaces, and BMAD v6 project management.
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
@@ -22,18 +22,19 @@ A comprehensive AI-assisted development framework for Claude Code with 16 techno
|
|
|
22
22
|
| **Symfony / PHP** | 8.1 / PHP 8.4+ | Clean Architecture | DDD, Hexagonal, API Platform, HTTP-less apps, JsonStreamer |
|
|
23
23
|
| **Flutter / Dart** | 3.47 / Dart 3.13 | Clean Architecture | BLoC v9, Riverpod 3, Material 3, Impeller |
|
|
24
24
|
| **React** | 19.3 + Compiler 1.0 | Feature-based | Hooks, Zustand, React Query, Server Components |
|
|
25
|
-
| **React Native** | 0.
|
|
25
|
+
| **React Native** | 0.88 (New Architecture) — Expo SDK 58 | Feature-based | Navigation 7, Reanimated 4, TurboModules |
|
|
26
26
|
| **Angular** | 22 | Domain-driven | Signals, Signal Forms (stable), Zoneless par défaut, OnPush défaut, httpResource (TS 6) |
|
|
27
27
|
| **Vue.js** | 3.5+ (3.6 RC Vapor) | Composition API | Pinia 4, Vue Router 5, Vite 8, Vitest, Alien Signals |
|
|
28
28
|
| **Vite** _(community, framework-agnostic)_ | 8.3 | Vanilla / Library / Multi-page | `build.lib`, `vite-plugin-dts`, `input` multi-page, Workers/WASM |
|
|
29
|
-
| **Vercel** _(community, deployment platform)_ |
|
|
29
|
+
| **Vercel** _(community, deployment platform)_ | 65.14.0 | Platform config (framework-agnostic) | `vercel.json`, Functions (Node.js/Fluid Compute), ISR, Cron Jobs, Storage |
|
|
30
30
|
| **Tauri** _(community, desktop & mobile)_ | 2.12 | Rust core + web frontend (framework-agnostic) | Commands/IPC, capabilities & permissions, CSP, Isolation, plugins, signed updater, iOS/Android |
|
|
31
|
+
| **WordPress** _(community, plugins & block themes)_ | 7.1 / PHP 7.4+ (8.3+ recommandé) | Plugin/theme + hooks | block.json, theme.json, REST API, WP-CLI, WPCS, PHPStan, wp-env ; WooCommerce 11.2 via skill optionnel |
|
|
31
32
|
| **Laravel** | 13.x / PHP 8.3+ (8.5 recommandé) | Clean Architecture | Actions, Pest 4/5 (Pest 5 : PHP 8.4+), Sanctum, AI SDK, Passkey |
|
|
32
33
|
| **Python** | 3.15 / 3.14+ | Clean Architecture / Hexagonal | FastAPI, async/await, Pydantic, free-threading, JIT |
|
|
33
34
|
| **PHP** | 8.5 (Property Hooks 8.4+) | Clean Architecture | PER-CS 3.0 (ex-PSR-12), PHPStan Level 10, Pest 5 |
|
|
34
35
|
| **Ruby / Rails** | 8.1 / Ruby 4.0 | Rails Way (pragmatic Clean) | Service/Form/Query objects, Hotwire, Solid Queue, RSpec/Minitest, Brakeman |
|
|
35
36
|
| **Rust / Axum** | 0.8 / Rust 1.99 (edition 2024) | Layered workspace (Hexagonal) | Tokio, Tower, SQLx, thiserror + RFC 9457, cargo-nextest, Clippy, cargo-deny |
|
|
36
|
-
| **Paperclip** | 2026.
|
|
37
|
+
| **Paperclip** | 2026.1106.0 | Two-layer (control plane + adapters) | Node.js 24.11+, TypeScript, Vitest, PostgreSQL, governance-first |
|
|
37
38
|
|
|
38
39
|
### Technology Quick Links
|
|
39
40
|
|
|
@@ -66,7 +67,7 @@ See `@.claude/INDEX.md` for condensed checklists and patterns.
|
|
|
66
67
|
|
|
67
68
|
## Available Commands (18 namespaces, 143 commands)
|
|
68
69
|
|
|
69
|
-
Core: `/common:*`, `/workflow:*`, `/team:*`, `/qa:*`, `/uiux:*` | Tech: `/symfony:*`, `/react:*`, `/flutter:*`, `/python:*`, `/angular:*`, `/vuejs:*`, `/laravel:*`, `/reactnative:*`, `/csharp:*`, `/php:*` _(et `/paperclip:*` via `--tech=paperclip`)_ | Infra (via `@devops-engineer`): Docker 29.9.
|
|
70
|
+
Core: `/common:*`, `/workflow:*`, `/team:*`, `/qa:*`, `/uiux:*` | Tech: `/symfony:*`, `/react:*`, `/flutter:*`, `/python:*`, `/angular:*`, `/vuejs:*`, `/laravel:*`, `/reactnative:*`, `/csharp:*`, `/php:*` _(et `/paperclip:*` via `--tech=paperclip`)_ | Infra (via `@devops-engineer`): Docker 29.9.3, Coolify v4.7.5, K8s 1.37.2, OpenTofu 1.13.9, Ansible 2.22.0, FrankenPHP 1.13.5, PgBouncer 1.26.1 | Project: `/gate:*`, `/project:*`
|
|
70
71
|
|
|
71
72
|
Full reference: [Commands](../docs/COMMANDS.md) | [CLI Reference](../docs/CLI-REFERENCE.md)
|
|
72
73
|
|
|
@@ -181,7 +182,7 @@ make install-symfony TARGET=. RULES_LANG=en
|
|
|
181
182
|
|
|
182
183
|
## Claude Code Compatibility
|
|
183
184
|
|
|
184
|
-
**Minimum Version:** 2.1.
|
|
185
|
+
**Minimum Version:** 2.1.321 (CVE-2026-86063 / CVE-2026-103435 / CVE-2026-103012 patched) | **Recommended:** 2.1.322 (Opus 5.5, Sonnet 5.5, Haiku 5.5, MCP 2026-07-28, hooks `onFailure: "block"`) — See `@.claude/COMPATIBILITY.md` for full changelog (v2.1.20+).
|
|
185
186
|
|
|
186
187
|
---
|
|
187
188
|
|
|
@@ -203,7 +204,7 @@ See `.claude/rules/12-context-management.md` for detailed guidance.
|
|
|
203
204
|
| **Token optimization** | Use `/common:setup-rtk` for 55-65% token savings |
|
|
204
205
|
| **Sub-agent model** | Set `CLAUDE_CODE_SUBAGENT_MODEL=claude-sonnet-5-5` for cost savings |
|
|
205
206
|
|
|
206
|
-
See
|
|
207
|
+
See `Dev/i18n/base/Common/hooks/templates/examples/` for ready-to-use hook templates.
|
|
207
208
|
|
|
208
209
|
## Quick Reference Index
|
|
209
210
|
|
|
@@ -307,7 +308,7 @@ SRP | OCP | LSP | ISP | DIP — See full rules in .claude/rules/04-solid-princip
|
|
|
307
308
|
|
|
308
309
|
| Metrique | Cible | Limite |
|
|
309
310
|
|----------|-------|--------|
|
|
310
|
-
| **Cognitive Complexity** (primaire
|
|
311
|
+
| **Cognitive Complexity** (metrique primaire) | < 7 | < 10 |
|
|
311
312
|
| Lignes par methode | < 10 | < 20 |
|
|
312
313
|
| Complexite cyclomatique | < 5 | < 10 |
|
|
313
314
|
| Profondeur d'indentation | 2 | 3 max |
|
|
@@ -315,7 +316,7 @@ SRP | OCP | LSP | ISP | DIP — See full rules in .claude/rules/04-solid-princip
|
|
|
315
316
|
|
|
316
317
|
> **Seuils < 7 / < 10 = choix interne du projet**, volontairement plus strict que le défaut de la règle Sonar S3776 (15 par fonction) : à relâcher si le contexte de l'équipe l'exige.
|
|
317
318
|
>
|
|
318
|
-
> **Cognitive Complexity** (SonarQube
|
|
319
|
+
> **Cognitive Complexity** (SonarQube) est la metrique primaire retenue ici : elle mesure la difficulte humaine de comprehension et prevaut sur la stricte limite de 20 lignes. Source : [Sonar, Cognitive Complexity (livre blanc)](https://www.sonarsource.com/docs/CognitiveComplexity.pdf).
|
|
319
320
|
|
|
320
321
|
**Regles :** Early returns (guard clauses), pas de else imbrique, nommage explicite, composition > heritage.
|
|
321
322
|
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
# Claude-Craft - Multi-Technology Framework
|
|
10
10
|
|
|
11
|
-
**Version:** 9.2.
|
|
11
|
+
**Version:** 9.2.1 | **Languages:** en, fr, es, de, pt
|
|
12
12
|
|
|
13
|
-
A comprehensive AI-assisted development framework for Claude Code with
|
|
13
|
+
A comprehensive AI-assisted development framework for Claude Code with 17 technology stacks, 33 specialized agents (+39 infra agents on-demand), 143 commands across 18 namespaces, and BMAD v6 project management.
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
@@ -22,18 +22,19 @@ A comprehensive AI-assisted development framework for Claude Code with 16 techno
|
|
|
22
22
|
| **Symfony / PHP** | 8.1 / PHP 8.4+ | Clean Architecture | DDD, Hexagonal, API Platform, HTTP-less apps, JsonStreamer |
|
|
23
23
|
| **Flutter / Dart** | 3.47 / Dart 3.13 | Clean Architecture | BLoC v9, Riverpod 3, Material 3, Impeller |
|
|
24
24
|
| **React** | 19.3 + Compiler 1.0 | Feature-based | Hooks, Zustand, React Query, Server Components |
|
|
25
|
-
| **React Native** | 0.
|
|
25
|
+
| **React Native** | 0.88 (New Architecture) — Expo SDK 58 | Feature-based | Navigation 7, Reanimated 4, TurboModules |
|
|
26
26
|
| **Angular** | 22 | Domain-driven | Signals, Signal Forms (stable), Zoneless par défaut, OnPush défaut, httpResource (TS 6) |
|
|
27
27
|
| **Vue.js** | 3.5+ (3.6 RC Vapor) | Composition API | Pinia 4, Vue Router 5, Vite 8, Vitest, Alien Signals |
|
|
28
28
|
| **Vite** _(community, framework-agnostic)_ | 8.3 | Vanilla / Library / Multi-page | `build.lib`, `vite-plugin-dts`, `input` multi-page, Workers/WASM |
|
|
29
|
-
| **Vercel** _(community, deployment platform)_ |
|
|
29
|
+
| **Vercel** _(community, deployment platform)_ | 65.14.0 | Platform config (framework-agnostic) | `vercel.json`, Functions (Node.js/Fluid Compute), ISR, Cron Jobs, Storage |
|
|
30
30
|
| **Tauri** _(community, desktop & mobile)_ | 2.12 | Rust core + web frontend (framework-agnostic) | Commands/IPC, capabilities & permissions, CSP, Isolation, plugins, signed updater, iOS/Android |
|
|
31
|
+
| **WordPress** _(community, plugins & block themes)_ | 7.1 / PHP 7.4+ (8.3+ recommandé) | Plugin/theme + hooks | block.json, theme.json, REST API, WP-CLI, WPCS, PHPStan, wp-env ; WooCommerce 11.2 via skill optionnel |
|
|
31
32
|
| **Laravel** | 13.x / PHP 8.3+ (8.5 recommandé) | Clean Architecture | Actions, Pest 4/5 (Pest 5 : PHP 8.4+), Sanctum, AI SDK, Passkey |
|
|
32
33
|
| **Python** | 3.15 / 3.14+ | Clean Architecture / Hexagonal | FastAPI, async/await, Pydantic, free-threading, JIT |
|
|
33
34
|
| **PHP** | 8.5 (Property Hooks 8.4+) | Clean Architecture | PER-CS 3.0 (ex-PSR-12), PHPStan Level 10, Pest 5 |
|
|
34
35
|
| **Ruby / Rails** | 8.1 / Ruby 4.0 | Rails Way (pragmatic Clean) | Service/Form/Query objects, Hotwire, Solid Queue, RSpec/Minitest, Brakeman |
|
|
35
36
|
| **Rust / Axum** | 0.8 / Rust 1.99 (edition 2024) | Layered workspace (Hexagonal) | Tokio, Tower, SQLx, thiserror + RFC 9457, cargo-nextest, Clippy, cargo-deny |
|
|
36
|
-
| **Paperclip** | 2026.
|
|
37
|
+
| **Paperclip** | 2026.1106.0 | Two-layer (control plane + adapters) | Node.js 24.11+, TypeScript, Vitest, PostgreSQL, governance-first |
|
|
37
38
|
|
|
38
39
|
### Technology Quick Links
|
|
39
40
|
|
|
@@ -66,7 +67,7 @@ See `@.claude/INDEX.md` for condensed checklists and patterns.
|
|
|
66
67
|
|
|
67
68
|
## Available Commands (18 namespaces, 143 commands)
|
|
68
69
|
|
|
69
|
-
Core: `/common:*`, `/workflow:*`, `/team:*`, `/qa:*`, `/uiux:*` | Tech: `/symfony:*`, `/react:*`, `/flutter:*`, `/python:*`, `/angular:*`, `/vuejs:*`, `/laravel:*`, `/reactnative:*`, `/csharp:*`, `/php:*` _(et `/paperclip:*` via `--tech=paperclip`)_ | Infra (via `@devops-engineer`): Docker 29.9.
|
|
70
|
+
Core: `/common:*`, `/workflow:*`, `/team:*`, `/qa:*`, `/uiux:*` | Tech: `/symfony:*`, `/react:*`, `/flutter:*`, `/python:*`, `/angular:*`, `/vuejs:*`, `/laravel:*`, `/reactnative:*`, `/csharp:*`, `/php:*` _(et `/paperclip:*` via `--tech=paperclip`)_ | Infra (via `@devops-engineer`): Docker 29.9.3, Coolify v4.7.5, K8s 1.37.2, OpenTofu 1.13.9, Ansible 2.22.0, FrankenPHP 1.13.5, PgBouncer 1.26.1 | Project: `/gate:*`, `/project:*`
|
|
70
71
|
|
|
71
72
|
Full reference: [Commands](../docs/COMMANDS.md) | [CLI Reference](../docs/CLI-REFERENCE.md)
|
|
72
73
|
|
|
@@ -181,7 +182,7 @@ make install-symfony TARGET=. RULES_LANG=en
|
|
|
181
182
|
|
|
182
183
|
## Claude Code Compatibility
|
|
183
184
|
|
|
184
|
-
**Minimum Version:** 2.1.
|
|
185
|
+
**Minimum Version:** 2.1.321 (CVE-2026-86063 / CVE-2026-103435 / CVE-2026-103012 patched) | **Recommended:** 2.1.322 (Opus 5.5, Sonnet 5.5, Haiku 5.5, MCP 2026-07-28, hooks `onFailure: "block"`) — See `@.claude/COMPATIBILITY.md` for full changelog (v2.1.20+).
|
|
185
186
|
|
|
186
187
|
---
|
|
187
188
|
|
|
@@ -203,7 +204,7 @@ See `.claude/rules/12-context-management.md` for detailed guidance.
|
|
|
203
204
|
| **Token optimization** | Use `/common:setup-rtk` for 55-65% token savings |
|
|
204
205
|
| **Sub-agent model** | Set `CLAUDE_CODE_SUBAGENT_MODEL=claude-sonnet-5-5` for cost savings |
|
|
205
206
|
|
|
206
|
-
See
|
|
207
|
+
See `Dev/i18n/base/Common/hooks/templates/examples/` for ready-to-use hook templates.
|
|
207
208
|
|
|
208
209
|
## Quick Reference Index
|
|
209
210
|
|
|
@@ -307,7 +308,7 @@ SRP | OCP | LSP | ISP | DIP — See full rules in .claude/rules/04-solid-princip
|
|
|
307
308
|
|
|
308
309
|
| Metrique | Cible | Limite |
|
|
309
310
|
|----------|-------|--------|
|
|
310
|
-
| **Cognitive Complexity** (primaire
|
|
311
|
+
| **Cognitive Complexity** (metrique primaire) | < 7 | < 10 |
|
|
311
312
|
| Lignes par methode | < 10 | < 20 |
|
|
312
313
|
| Complexite cyclomatique | < 5 | < 10 |
|
|
313
314
|
| Profondeur d'indentation | 2 | 3 max |
|
|
@@ -315,7 +316,7 @@ SRP | OCP | LSP | ISP | DIP — See full rules in .claude/rules/04-solid-princip
|
|
|
315
316
|
|
|
316
317
|
> **Seuils < 7 / < 10 = choix interne du projet**, volontairement plus strict que le défaut de la règle Sonar S3776 (15 par fonction) : à relâcher si le contexte de l'équipe l'exige.
|
|
317
318
|
>
|
|
318
|
-
> **Cognitive Complexity** (SonarQube
|
|
319
|
+
> **Cognitive Complexity** (SonarQube) est la metrique primaire retenue ici : elle mesure la difficulte humaine de comprehension et prevaut sur la stricte limite de 20 lignes. Source : [Sonar, Cognitive Complexity (livre blanc)](https://www.sonarsource.com/docs/CognitiveComplexity.pdf).
|
|
319
320
|
|
|
320
321
|
**Regles :** Early returns (guard clauses), pas de else imbrique, nommage explicite, composition > heritage.
|
|
321
322
|
|
package/cli/index.js
CHANGED
|
@@ -157,6 +157,7 @@ class ClaudeCraftCLI {
|
|
|
157
157
|
}
|
|
158
158
|
this.config.technologies = [options.tech];
|
|
159
159
|
}
|
|
160
|
+
if (options.hooks) this.config.hooks = options.hooks;
|
|
160
161
|
this.config.targetPath = path.resolve(targetPath || this.config.targetPath);
|
|
161
162
|
|
|
162
163
|
const ctx = { CLI_ROOT, VERSION };
|
package/cli/lib/doctor.js
CHANGED
|
@@ -33,9 +33,10 @@ function loadClaudeCodeVersion(key, fallback) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// Security floor: plugin SHA-pin bypass (CVE-2026-86063, fixed 2.1.179), symlink
|
|
36
|
-
// TOCTOU write (CVE-2026-103435, 2.1.129), managed settings bypass (CVE-2026-103012, 2.1.260)
|
|
37
|
-
|
|
38
|
-
const
|
|
36
|
+
// TOCTOU write (CVE-2026-103435, 2.1.129), managed settings bypass (CVE-2026-103012, 2.1.260),
|
|
37
|
+
// Bash permission and MCP OAuth fixes (2.1.321, no GHSA published).
|
|
38
|
+
const MIN_CLAUDE_CODE = loadClaudeCodeVersion('minimum', '2.1.321');
|
|
39
|
+
const RECOMMENDED_CLAUDE_CODE = loadClaudeCodeVersion('recommended', '2.1.322');
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
42
|
* Compare two semver-ish version strings (`major.minor.patch`).
|
package/cli/lib/help.js
CHANGED
|
@@ -65,6 +65,7 @@ ${c.bold}Options:${c.reset}
|
|
|
65
65
|
${c.yellow}--version, -v${c.reset} Show version
|
|
66
66
|
${c.yellow}--lang=XX${c.reset} Language (en, fr, es, de, pt)
|
|
67
67
|
${c.yellow}--tech=NAME${c.reset} Technology (${Object.keys(TECHNOLOGIES).join(', ')})
|
|
68
|
+
${c.yellow}--hooks=MODE${c.reset} Hooks: default, full, none; add ",memory" for SQLite memory (default: default)
|
|
68
69
|
${c.yellow}--auto${c.reset} Zero-prompt install (auto-detect stack + locale)
|
|
69
70
|
${c.yellow}--from=URL${c.reset} Install from a remote team config JSON URL
|
|
70
71
|
${c.yellow}--target=PATH${c.reset} Target directory (for skill subcommands)
|
package/cli/lib/installer.js
CHANGED
|
@@ -277,7 +277,7 @@ export async function runInstallation(cli, { CLI_ROOT }) {
|
|
|
277
277
|
console.log(`${c.cyan}[1/${totalSteps}]${c.reset} Installing common rules...`);
|
|
278
278
|
runScript(
|
|
279
279
|
path.join(scriptsDir, 'install-common-rules.sh'),
|
|
280
|
-
[langArg, ...stackArgs, cli.config.targetPath],
|
|
280
|
+
[langArg, ...stackArgs, ...(cli.config.hooks ? [`--hooks=${cli.config.hooks}`] : []), cli.config.targetPath],
|
|
281
281
|
CLI_ROOT
|
|
282
282
|
);
|
|
283
283
|
|
package/cli/lib/parse-args.js
CHANGED
|
@@ -30,6 +30,18 @@ function validateOption(key, value) {
|
|
|
30
30
|
}
|
|
31
31
|
break;
|
|
32
32
|
}
|
|
33
|
+
case 'hooks': {
|
|
34
|
+
// Un profil (default|full|none) + l'add-on optionnel `memory`, séparés par des virgules.
|
|
35
|
+
const parts = typeof value === 'string' ? value.split(',') : [];
|
|
36
|
+
const profiles = parts.filter((p) => ['default', 'full', 'none'].includes(p));
|
|
37
|
+
const addons = parts.filter((p) => p === 'memory');
|
|
38
|
+
if (profiles.length !== 1 || addons.length > 1 || profiles.length + addons.length !== parts.length) {
|
|
39
|
+
throw new Error(
|
|
40
|
+
`Invalid value for --hooks: must be default, full or none, optionally followed by ",memory" (e.g. default,memory), got "${value}"`
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
33
45
|
case 'output': {
|
|
34
46
|
if (typeof value === 'string') {
|
|
35
47
|
if (value.split('/').includes('..') || value.split('\\').includes('..')) {
|
package/cli/lib/tech-registry.js
CHANGED
|
@@ -61,7 +61,7 @@ const TECH_REGISTRY = {
|
|
|
61
61
|
namespace: 'reactnative',
|
|
62
62
|
i18nDir: 'ReactNative',
|
|
63
63
|
installScript: 'install-reactnative-rules.sh',
|
|
64
|
-
version: '0.
|
|
64
|
+
version: '0.88',
|
|
65
65
|
tier: 2,
|
|
66
66
|
},
|
|
67
67
|
angular: {
|
|
@@ -121,7 +121,7 @@ const TECH_REGISTRY = {
|
|
|
121
121
|
namespace: 'vercel',
|
|
122
122
|
i18nDir: 'Vercel',
|
|
123
123
|
installScript: 'install-vercel-rules.sh',
|
|
124
|
-
version: '
|
|
124
|
+
version: '65.14.0',
|
|
125
125
|
tier: 3,
|
|
126
126
|
},
|
|
127
127
|
tauri: {
|
|
@@ -134,6 +134,16 @@ const TECH_REGISTRY = {
|
|
|
134
134
|
version: '2.12',
|
|
135
135
|
tier: 3,
|
|
136
136
|
},
|
|
137
|
+
wordpress: {
|
|
138
|
+
name: 'wordpress',
|
|
139
|
+
displayName: 'WordPress',
|
|
140
|
+
desc: 'Plugins & block themes: blocks (block.json), REST API, WP-CLI, WPCS/PHPStan, wp-env; WooCommerce as opt-in skill',
|
|
141
|
+
namespace: 'wordpress',
|
|
142
|
+
i18nDir: 'WordPress',
|
|
143
|
+
installScript: 'install-wordpress-rules.sh',
|
|
144
|
+
version: '7.1',
|
|
145
|
+
tier: 3,
|
|
146
|
+
},
|
|
137
147
|
php: {
|
|
138
148
|
name: 'php',
|
|
139
149
|
displayName: 'PHP',
|
|
@@ -185,7 +195,7 @@ const TECH_REGISTRY = {
|
|
|
185
195
|
namespace: 'paperclip',
|
|
186
196
|
i18nDir: 'Paperclip',
|
|
187
197
|
installScript: 'install-paperclip-rules.sh',
|
|
188
|
-
version: '2026.
|
|
198
|
+
version: '2026.1106.0',
|
|
189
199
|
tier: 2,
|
|
190
200
|
},
|
|
191
201
|
docker: {
|
|
@@ -195,7 +205,7 @@ const TECH_REGISTRY = {
|
|
|
195
205
|
namespace: 'docker',
|
|
196
206
|
i18nDir: 'Docker',
|
|
197
207
|
installScript: 'install-docker-rules.sh',
|
|
198
|
-
version: '29.9.
|
|
208
|
+
version: '29.9.3',
|
|
199
209
|
tier: null,
|
|
200
210
|
},
|
|
201
211
|
coolify: {
|
|
@@ -205,7 +215,7 @@ const TECH_REGISTRY = {
|
|
|
205
215
|
namespace: 'coolify',
|
|
206
216
|
i18nDir: 'Coolify',
|
|
207
217
|
installScript: 'install-coolify-rules.sh',
|
|
208
|
-
version: '4.
|
|
218
|
+
version: '4.7.5',
|
|
209
219
|
tier: null,
|
|
210
220
|
},
|
|
211
221
|
};
|