@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.
Files changed (557) hide show
  1. package/Dev/i18n/base/Angular/rules/00-project-context.md.template +1 -1
  2. package/Dev/i18n/base/Angular/rules/03-coding-standards.md +17 -16
  3. package/Dev/i18n/base/Angular/rules/06-tooling.md +2 -2
  4. package/Dev/i18n/base/CSharp/rules/06-tooling.md +8 -6
  5. package/Dev/i18n/base/Common/hooks/scripts/block-dangerous-commands.sh +93 -48
  6. package/Dev/i18n/base/Common/hooks/scripts/guard-network.sh +58 -0
  7. package/Dev/i18n/base/Common/hooks/scripts/lib/hook-io.sh +181 -0
  8. package/Dev/i18n/base/Common/hooks/scripts/notify-slack.sh +21 -32
  9. package/Dev/i18n/base/Common/hooks/scripts/output-filter.sh +23 -0
  10. package/Dev/i18n/base/Common/hooks/scripts/output-size-hint.sh +19 -0
  11. package/Dev/i18n/base/Common/hooks/scripts/post-edit-lint.sh +29 -53
  12. package/Dev/i18n/base/Common/hooks/scripts/post-tool-failure.sh +50 -0
  13. package/Dev/i18n/base/Common/hooks/scripts/pre-commit-check.sh +59 -63
  14. package/Dev/i18n/base/Common/hooks/scripts/pre-compact.sh +52 -0
  15. package/Dev/i18n/base/Common/hooks/scripts/protect-sensitive-files.sh +16 -0
  16. package/Dev/i18n/base/Common/hooks/scripts/quality-gate.sh +49 -92
  17. package/Dev/i18n/base/Common/hooks/scripts/session-end.sh +51 -0
  18. package/Dev/i18n/base/Common/hooks/scripts/session-init.sh +45 -69
  19. package/Dev/i18n/base/Common/hooks/templates/examples/README.md +59 -0
  20. package/Dev/i18n/base/Common/hooks/templates/examples/auto-format.json +18 -0
  21. package/Dev/i18n/base/Common/hooks/templates/examples/block-dangerous-commands.json +18 -0
  22. package/Dev/i18n/base/Common/hooks/templates/examples/context-reinject.json +28 -0
  23. package/Dev/i18n/base/Common/hooks/templates/examples/output-filter.json +18 -0
  24. package/Dev/i18n/base/Common/hooks/templates/examples/pre-compact.json +18 -0
  25. package/Dev/i18n/base/Common/hooks/templates/examples/protect-files.json +18 -0
  26. package/Dev/i18n/base/Common/hooks/templates/examples/security-block.json +18 -0
  27. package/Dev/i18n/base/Common/hooks/templates/examples/stop-hook.json +16 -0
  28. package/Dev/i18n/base/Common/hooks/templates/examples/user-prompt-submit.json +16 -0
  29. package/Dev/i18n/base/Common/hooks/templates/hooks.default.json +72 -0
  30. package/Dev/i18n/base/Common/hooks/templates/{settings-hooks.json → hooks.full.json} +22 -23
  31. package/Dev/i18n/base/Common/hooks/templates/hooks.memory.json +62 -0
  32. package/Dev/i18n/base/Common/templates/AGENTS.md.template +1 -1
  33. package/Dev/i18n/base/Common/templates/settings.json.template +46 -0
  34. package/Dev/i18n/base/Flutter/rules/00-project-context.md.template +9 -9
  35. package/Dev/i18n/base/Laravel/checks/code-quality.md +1 -1
  36. package/Dev/i18n/base/Laravel/rules/00-project-context.md.template +2 -2
  37. package/Dev/i18n/base/Laravel/rules/06-tooling.md +10 -8
  38. package/Dev/i18n/base/Laravel/rules/07-testing-laravel.md +2 -0
  39. package/Dev/i18n/base/Laravel/rules/08-quality-tools.md +2 -2
  40. package/Dev/i18n/base/PHP/rules/00-project-context.md.template +2 -2
  41. package/Dev/i18n/base/Tauri/rules/02-architecture-tauri.md +1 -0
  42. package/Dev/i18n/base/Vercel/checks/all.md +1 -1
  43. package/Dev/i18n/base/Vercel/checks/architecture.md +1 -1
  44. package/Dev/i18n/base/Vercel/rules/02-architecture-vercel.md +4 -2
  45. package/Dev/i18n/base/Vercel/rules/06-tooling.md +7 -5
  46. package/Dev/i18n/base/Vercel/rules/11-security-vercel.md +1 -1
  47. package/Dev/i18n/base/Vite/rules/06-tooling.md +2 -1
  48. package/Dev/i18n/base/Vite/rules/08-quality-tools.md +1 -1
  49. package/Dev/i18n/base/VueJS/rules/06-tooling.md +3 -3
  50. package/Dev/i18n/base/VueJS/rules/07-testing-vuejs.md +9 -8
  51. package/Dev/i18n/base/VueJS/rules/08-quality-tools.md +1 -1
  52. package/Dev/i18n/base/WordPress/checklists/new-feature.md +59 -0
  53. package/Dev/i18n/base/WordPress/checklists/pre-commit.md +125 -0
  54. package/Dev/i18n/base/WordPress/checks/all.md +257 -0
  55. package/Dev/i18n/base/WordPress/checks/architecture.md +157 -0
  56. package/Dev/i18n/base/WordPress/checks/code-quality.md +158 -0
  57. package/Dev/i18n/base/WordPress/checks/security.md +158 -0
  58. package/Dev/i18n/base/WordPress/checks/testing.md +157 -0
  59. package/Dev/i18n/base/WordPress/commands/check.md +28 -0
  60. package/Dev/i18n/base/WordPress/rules/00-project-context.md.template +169 -0
  61. package/Dev/i18n/base/WordPress/rules/02-architecture-wordpress.md +174 -0
  62. package/Dev/i18n/base/WordPress/rules/03-coding-standards.md +98 -0
  63. package/Dev/i18n/base/WordPress/rules/06-tooling.md +146 -0
  64. package/Dev/i18n/base/WordPress/rules/07-testing-wordpress.md +150 -0
  65. package/Dev/i18n/base/WordPress/rules/08-quality-tools.md +161 -0
  66. package/Dev/i18n/base/WordPress/rules/11-security-wordpress.md +175 -0
  67. package/Dev/i18n/base/WordPress/skills/woocommerce/REFERENCE.md +214 -0
  68. package/Dev/i18n/base/WordPress/skills/woocommerce/SKILL.md +40 -0
  69. package/Dev/i18n/base/WordPress/skills/woocommerce/checklist.md +66 -0
  70. package/Dev/i18n/base/WordPress/templates/block.md +235 -0
  71. package/Dev/i18n/base/WordPress/templates/plugin-bootstrap.md +215 -0
  72. package/Dev/i18n/base/WordPress/templates/rest-endpoint.md +246 -0
  73. package/Dev/i18n/de/Angular/CLAUDE.md.template +2 -1
  74. package/Dev/i18n/de/Angular/agents/angular-reviewer.md +23 -7
  75. package/Dev/i18n/de/Common/agents/devops-engineer.md +1 -1
  76. package/Dev/i18n/de/Common/agents/migration-specialist.md +1 -1
  77. package/Dev/i18n/de/Common/commands/ralph-run.md +3 -3
  78. package/Dev/i18n/de/Common/commands/setup-rtk.md +2 -9
  79. package/Dev/i18n/de/Common/hooks/HOOKS-QUICKSTART.md +33 -45
  80. package/Dev/i18n/de/Common/rules/04-solid-principles.md +2 -2
  81. package/Dev/i18n/de/Common/rules/09-git-workflow.md +7 -1
  82. package/Dev/i18n/de/Common/rules/10-documentation.md +2 -2
  83. package/Dev/i18n/de/Common/rules/11-security.md +12 -12
  84. package/Dev/i18n/de/Common/rules/12-context-management.md +5 -3
  85. package/Dev/i18n/de/Flutter/commands/analyze-performance.md +1 -1
  86. package/Dev/i18n/de/Flutter/rules/06-tooling.md +6 -2
  87. package/Dev/i18n/de/Flutter/rules/11-security-flutter.md +1 -1
  88. package/Dev/i18n/de/PHP/rules/03-coding-standards.md +10 -0
  89. package/Dev/i18n/de/PHP/rules/06-tooling.md +7 -3
  90. package/Dev/i18n/de/Paperclip/CLAUDE.md.template +2 -2
  91. package/Dev/i18n/de/Paperclip/README.md +1 -1
  92. package/Dev/i18n/de/Paperclip/checks/security.md +1 -0
  93. package/Dev/i18n/de/Paperclip/rules/11-security-paperclip.md +3 -1
  94. package/Dev/i18n/de/Python/agents/python-reviewer.md +1 -1
  95. package/Dev/i18n/de/Python/checks/code-quality.md +4 -4
  96. package/Dev/i18n/de/Python/checks/security.md +2 -2
  97. package/Dev/i18n/de/Python/checks/testing.md +2 -2
  98. package/Dev/i18n/de/Python/rules/02-architecture.md +1 -8
  99. package/Dev/i18n/de/Python/rules/03-coding-standards.md +16 -5
  100. package/Dev/i18n/de/Python/templates/repository.md +2 -2
  101. package/Dev/i18n/de/React/rules/02-architecture.md +17 -20
  102. package/Dev/i18n/de/React/rules/03-coding-standards.md +15 -16
  103. package/Dev/i18n/de/React/templates/component.md +11 -9
  104. package/Dev/i18n/de/ReactNative/agents/reactnative-reviewer.md +4 -4
  105. package/Dev/i18n/de/ReactNative/rules/06-tooling.md +15 -14
  106. package/Dev/i18n/de/ReactNative/rules/14-navigation.md +2 -0
  107. package/Dev/i18n/de/Ruby/agents/ruby-reviewer.md +1 -1
  108. package/Dev/i18n/de/Ruby/rules/06-tooling.md +2 -2
  109. package/Dev/i18n/de/Ruby/rules/11-security-ruby.md +13 -1
  110. package/Dev/i18n/de/Rust/rules/03-coding-standards.md +1 -1
  111. package/Dev/i18n/de/Rust/rules/11-security-rust.md +1 -1
  112. package/Dev/i18n/de/Symfony/adr/README.md +1 -1
  113. package/Dev/i18n/de/Symfony/checks/code-quality.md +2 -2
  114. package/Dev/i18n/de/Symfony/rules/03-coding-standards.md +15 -0
  115. package/Dev/i18n/de/Symfony/rules/06-docker-hadolint.md +1 -1
  116. package/Dev/i18n/de/Symfony/rules/08-quality-tools.md +1 -3
  117. package/Dev/i18n/de/Symfony/rules/15-doctrine-extensions.md +5 -5
  118. package/Dev/i18n/de/Symfony/rules/16-i18n.md +1 -1
  119. package/Dev/i18n/de/Symfony/templates/README.md +1 -1
  120. package/Dev/i18n/de/Tauri/agents/tauri-reviewer.md +3 -0
  121. package/Dev/i18n/de/Vercel/agents/vercel-reviewer.md +1 -0
  122. package/Dev/i18n/de/Vercel/checks/all.md +1 -1
  123. package/Dev/i18n/de/Vite/agents/vite-reviewer.md +11 -11
  124. package/Dev/i18n/de/WordPress/CLAUDE.md.template +100 -0
  125. package/Dev/i18n/de/WordPress/agents/wordpress-reviewer.md +350 -0
  126. package/Dev/i18n/de/WordPress/checks/all.md +242 -0
  127. package/Dev/i18n/de/WordPress/commands/check.md +28 -0
  128. package/Dev/i18n/en/Angular/CLAUDE.md.template +3 -2
  129. package/Dev/i18n/en/Angular/agents/angular-reviewer.md +23 -7
  130. package/Dev/i18n/en/Common/agents/devops-engineer.md +1 -1
  131. package/Dev/i18n/en/Common/agents/migration-specialist.md +1 -1
  132. package/Dev/i18n/en/Common/commands/ralph-run.md +3 -3
  133. package/Dev/i18n/en/Common/commands/setup-rtk.md +2 -9
  134. package/Dev/i18n/en/Common/hooks/HOOKS-QUICKSTART.md +31 -43
  135. package/Dev/i18n/en/Common/rules/04-solid-principles.md +2 -2
  136. package/Dev/i18n/en/Common/rules/09-git-workflow.md +7 -1
  137. package/Dev/i18n/en/Common/rules/10-documentation.md +2 -2
  138. package/Dev/i18n/en/Common/rules/11-security.md +12 -12
  139. package/Dev/i18n/en/Common/rules/12-context-management.md +5 -3
  140. package/Dev/i18n/en/Flutter/commands/analyze-performance.md +1 -1
  141. package/Dev/i18n/en/Flutter/rules/06-tooling.md +6 -2
  142. package/Dev/i18n/en/Flutter/rules/11-security-flutter.md +1 -1
  143. package/Dev/i18n/en/Laravel/CLAUDE.md.template +1 -1
  144. package/Dev/i18n/en/Laravel/agents/laravel-reviewer.md +3 -3
  145. package/Dev/i18n/en/PHP/rules/03-coding-standards.md +10 -0
  146. package/Dev/i18n/en/PHP/rules/06-tooling.md +7 -3
  147. package/Dev/i18n/en/Paperclip/CLAUDE.md.template +2 -2
  148. package/Dev/i18n/en/Paperclip/README.md +1 -1
  149. package/Dev/i18n/en/Paperclip/checks/security.md +1 -0
  150. package/Dev/i18n/en/Paperclip/rules/11-security-paperclip.md +3 -1
  151. package/Dev/i18n/en/Python/agents/python-reviewer.md +1 -1
  152. package/Dev/i18n/en/Python/checks/code-quality.md +4 -4
  153. package/Dev/i18n/en/Python/checks/security.md +2 -2
  154. package/Dev/i18n/en/Python/checks/testing.md +2 -2
  155. package/Dev/i18n/en/Python/rules/02-architecture.md +1 -8
  156. package/Dev/i18n/en/Python/rules/03-coding-standards.md +16 -5
  157. package/Dev/i18n/en/Python/templates/repository.md +2 -2
  158. package/Dev/i18n/en/React/rules/02-architecture.md +17 -20
  159. package/Dev/i18n/en/React/rules/03-coding-standards.md +15 -16
  160. package/Dev/i18n/en/React/templates/component.md +11 -9
  161. package/Dev/i18n/en/ReactNative/agents/reactnative-reviewer.md +4 -4
  162. package/Dev/i18n/en/ReactNative/rules/02-architecture.md +4 -4
  163. package/Dev/i18n/en/ReactNative/rules/06-tooling.md +15 -14
  164. package/Dev/i18n/en/ReactNative/rules/07-testing-reactnative.md +1 -1
  165. package/Dev/i18n/en/ReactNative/rules/14-navigation.md +2 -0
  166. package/Dev/i18n/en/Ruby/agents/ruby-reviewer.md +1 -1
  167. package/Dev/i18n/en/Ruby/rules/06-tooling.md +2 -2
  168. package/Dev/i18n/en/Ruby/rules/11-security-ruby.md +13 -1
  169. package/Dev/i18n/en/Rust/rules/03-coding-standards.md +1 -1
  170. package/Dev/i18n/en/Rust/rules/11-security-rust.md +1 -1
  171. package/Dev/i18n/en/Symfony/adr/README.md +1 -1
  172. package/Dev/i18n/en/Symfony/checks/code-quality.md +2 -2
  173. package/Dev/i18n/en/Symfony/rules/03-coding-standards.md +15 -0
  174. package/Dev/i18n/en/Symfony/rules/06-docker-hadolint.md +1 -1
  175. package/Dev/i18n/en/Symfony/rules/08-quality-tools.md +1 -3
  176. package/Dev/i18n/en/Symfony/rules/15-doctrine-extensions.md +5 -5
  177. package/Dev/i18n/en/Symfony/rules/16-i18n.md +1 -1
  178. package/Dev/i18n/en/Symfony/templates/README.md +1 -1
  179. package/Dev/i18n/en/Tauri/agents/tauri-reviewer.md +3 -0
  180. package/Dev/i18n/en/Vercel/agents/vercel-reviewer.md +1 -0
  181. package/Dev/i18n/en/Vercel/checks/all.md +1 -1
  182. package/Dev/i18n/en/Vite/agents/vite-reviewer.md +11 -11
  183. package/Dev/i18n/en/WordPress/CLAUDE.md.template +100 -0
  184. package/Dev/i18n/en/WordPress/agents/wordpress-reviewer.md +350 -0
  185. package/Dev/i18n/en/WordPress/checks/all.md +241 -0
  186. package/Dev/i18n/en/WordPress/commands/check.md +28 -0
  187. package/Dev/i18n/es/Angular/CLAUDE.md.template +3 -2
  188. package/Dev/i18n/es/Angular/agents/angular-reviewer.md +23 -7
  189. package/Dev/i18n/es/Common/agents/devops-engineer.md +1 -1
  190. package/Dev/i18n/es/Common/agents/migration-specialist.md +1 -1
  191. package/Dev/i18n/es/Common/commands/ralph-run.md +3 -3
  192. package/Dev/i18n/es/Common/commands/setup-rtk.md +2 -9
  193. package/Dev/i18n/es/Common/hooks/HOOKS-QUICKSTART.md +33 -45
  194. package/Dev/i18n/es/Common/rules/04-solid-principles.md +2 -2
  195. package/Dev/i18n/es/Common/rules/09-git-workflow.md +7 -1
  196. package/Dev/i18n/es/Common/rules/10-documentation.md +2 -2
  197. package/Dev/i18n/es/Common/rules/11-security.md +12 -12
  198. package/Dev/i18n/es/Common/rules/12-context-management.md +5 -3
  199. package/Dev/i18n/es/Flutter/commands/analyze-performance.md +1 -1
  200. package/Dev/i18n/es/Flutter/rules/06-tooling.md +6 -2
  201. package/Dev/i18n/es/Flutter/rules/11-security-flutter.md +1 -1
  202. package/Dev/i18n/es/Laravel/agents/laravel-reviewer.md +2 -2
  203. package/Dev/i18n/es/PHP/rules/03-coding-standards.md +10 -0
  204. package/Dev/i18n/es/PHP/rules/06-tooling.md +7 -3
  205. package/Dev/i18n/es/Paperclip/CLAUDE.md.template +2 -2
  206. package/Dev/i18n/es/Paperclip/README.md +1 -1
  207. package/Dev/i18n/es/Paperclip/checks/security.md +1 -0
  208. package/Dev/i18n/es/Paperclip/rules/11-security-paperclip.md +3 -1
  209. package/Dev/i18n/es/Python/agents/python-reviewer.md +1 -1
  210. package/Dev/i18n/es/Python/checks/code-quality.md +4 -4
  211. package/Dev/i18n/es/Python/checks/security.md +2 -2
  212. package/Dev/i18n/es/Python/checks/testing.md +2 -2
  213. package/Dev/i18n/es/Python/rules/02-architecture.md +1 -8
  214. package/Dev/i18n/es/Python/rules/03-coding-standards.md +16 -5
  215. package/Dev/i18n/es/Python/templates/repository.md +2 -2
  216. package/Dev/i18n/es/React/rules/03-coding-standards.md +15 -16
  217. package/Dev/i18n/es/React/templates/component.md +11 -9
  218. package/Dev/i18n/es/ReactNative/agents/reactnative-reviewer.md +4 -4
  219. package/Dev/i18n/es/ReactNative/rules/06-tooling.md +15 -14
  220. package/Dev/i18n/es/ReactNative/rules/14-navigation.md +2 -0
  221. package/Dev/i18n/es/Ruby/agents/ruby-reviewer.md +1 -1
  222. package/Dev/i18n/es/Ruby/rules/06-tooling.md +2 -2
  223. package/Dev/i18n/es/Ruby/rules/11-security-ruby.md +13 -1
  224. package/Dev/i18n/es/Rust/rules/03-coding-standards.md +1 -1
  225. package/Dev/i18n/es/Rust/rules/11-security-rust.md +1 -1
  226. package/Dev/i18n/es/Symfony/adr/README.md +1 -1
  227. package/Dev/i18n/es/Symfony/checks/code-quality.md +2 -2
  228. package/Dev/i18n/es/Symfony/rules/03-coding-standards.md +15 -0
  229. package/Dev/i18n/es/Symfony/rules/06-docker-hadolint.md +1 -1
  230. package/Dev/i18n/es/Symfony/rules/08-quality-tools.md +1 -3
  231. package/Dev/i18n/es/Symfony/rules/15-doctrine-extensions.md +5 -5
  232. package/Dev/i18n/es/Symfony/rules/16-i18n.md +1 -1
  233. package/Dev/i18n/es/Symfony/templates/README.md +1 -1
  234. package/Dev/i18n/es/Tauri/agents/tauri-reviewer.md +3 -0
  235. package/Dev/i18n/es/Vercel/agents/vercel-reviewer.md +2 -1
  236. package/Dev/i18n/es/Vercel/checks/all.md +1 -1
  237. package/Dev/i18n/es/Vite/agents/vite-reviewer.md +11 -11
  238. package/Dev/i18n/es/WordPress/CLAUDE.md.template +100 -0
  239. package/Dev/i18n/es/WordPress/agents/wordpress-reviewer.md +350 -0
  240. package/Dev/i18n/es/WordPress/checks/all.md +241 -0
  241. package/Dev/i18n/es/WordPress/commands/check.md +28 -0
  242. package/Dev/i18n/fr/Angular/CLAUDE.md.template +3 -2
  243. package/Dev/i18n/fr/Angular/agents/angular-reviewer.md +23 -7
  244. package/Dev/i18n/fr/Common/agents/devops-engineer.md +1 -1
  245. package/Dev/i18n/fr/Common/agents/migration-specialist.md +1 -1
  246. package/Dev/i18n/fr/Common/commands/ralph-run.md +3 -3
  247. package/Dev/i18n/fr/Common/commands/setup-rtk.md +2 -9
  248. package/Dev/i18n/fr/Common/hooks/HOOKS-QUICKSTART.md +32 -44
  249. package/Dev/i18n/fr/Common/rules/04-solid-principles.md +2 -2
  250. package/Dev/i18n/fr/Common/rules/09-git-workflow.md +7 -1
  251. package/Dev/i18n/fr/Common/rules/10-documentation.md +2 -2
  252. package/Dev/i18n/fr/Common/rules/11-security.md +12 -12
  253. package/Dev/i18n/fr/Common/rules/12-context-management.md +5 -3
  254. package/Dev/i18n/fr/Flutter/commands/analyze-performance.md +1 -1
  255. package/Dev/i18n/fr/Flutter/rules/02-architecture.md +4 -4
  256. package/Dev/i18n/fr/Flutter/rules/06-tooling.md +6 -2
  257. package/Dev/i18n/fr/Flutter/rules/11-security-flutter.md +1 -1
  258. package/Dev/i18n/fr/Laravel/CLAUDE.md.template +1 -1
  259. package/Dev/i18n/fr/Laravel/agents/laravel-reviewer.md +3 -3
  260. package/Dev/i18n/fr/PHP/rules/03-coding-standards.md +10 -0
  261. package/Dev/i18n/fr/PHP/rules/06-tooling.md +7 -3
  262. package/Dev/i18n/fr/Paperclip/CLAUDE.md.template +2 -2
  263. package/Dev/i18n/fr/Paperclip/README.md +1 -1
  264. package/Dev/i18n/fr/Paperclip/checks/security.md +1 -0
  265. package/Dev/i18n/fr/Paperclip/rules/11-security-paperclip.md +3 -1
  266. package/Dev/i18n/fr/Python/agents/python-reviewer.md +1 -1
  267. package/Dev/i18n/fr/Python/checks/code-quality.md +4 -4
  268. package/Dev/i18n/fr/Python/checks/security.md +2 -2
  269. package/Dev/i18n/fr/Python/checks/testing.md +2 -2
  270. package/Dev/i18n/fr/Python/commands/dependency-audit.md +1 -2
  271. package/Dev/i18n/fr/Python/commands/generate-endpoint.md +7 -11
  272. package/Dev/i18n/fr/Python/commands/generate-model.md +6 -6
  273. package/Dev/i18n/fr/Python/rules/02-architecture.md +9 -24
  274. package/Dev/i18n/fr/Python/rules/03-coding-standards.md +19 -7
  275. package/Dev/i18n/fr/Python/templates/repository.md +9 -10
  276. package/Dev/i18n/fr/React/commands/generate-component.md +52 -51
  277. package/Dev/i18n/fr/React/rules/02-architecture.md +17 -20
  278. package/Dev/i18n/fr/React/rules/03-coding-standards.md +15 -16
  279. package/Dev/i18n/fr/React/templates/component.md +11 -9
  280. package/Dev/i18n/fr/ReactNative/agents/reactnative-reviewer.md +4 -4
  281. package/Dev/i18n/fr/ReactNative/rules/06-tooling.md +15 -14
  282. package/Dev/i18n/fr/ReactNative/rules/14-navigation.md +2 -0
  283. package/Dev/i18n/fr/Ruby/agents/ruby-reviewer.md +1 -1
  284. package/Dev/i18n/fr/Ruby/rules/06-tooling.md +2 -2
  285. package/Dev/i18n/fr/Ruby/rules/11-security-ruby.md +13 -1
  286. package/Dev/i18n/fr/Rust/rules/03-coding-standards.md +1 -1
  287. package/Dev/i18n/fr/Rust/rules/11-security-rust.md +1 -1
  288. package/Dev/i18n/fr/Symfony/adr/README.md +1 -1
  289. package/Dev/i18n/fr/Symfony/checks/code-quality.md +2 -2
  290. package/Dev/i18n/fr/Symfony/rules/03-coding-standards.md +15 -0
  291. package/Dev/i18n/fr/Symfony/rules/06-docker-hadolint.md +1 -1
  292. package/Dev/i18n/fr/Symfony/rules/08-quality-tools.md +1 -3
  293. package/Dev/i18n/fr/Symfony/rules/15-doctrine-extensions.md +5 -5
  294. package/Dev/i18n/fr/Symfony/rules/16-i18n.md +1 -1
  295. package/Dev/i18n/fr/Symfony/templates/README.md +1 -1
  296. package/Dev/i18n/fr/Tauri/agents/tauri-reviewer.md +3 -0
  297. package/Dev/i18n/fr/Vercel/agents/vercel-reviewer.md +1 -0
  298. package/Dev/i18n/fr/Vercel/checks/all.md +1 -1
  299. package/Dev/i18n/fr/Vite/agents/vite-reviewer.md +11 -11
  300. package/Dev/i18n/fr/WordPress/CLAUDE.md.template +100 -0
  301. package/Dev/i18n/fr/WordPress/agents/wordpress-reviewer.md +350 -0
  302. package/Dev/i18n/fr/WordPress/checks/all.md +242 -0
  303. package/Dev/i18n/fr/WordPress/commands/check.md +28 -0
  304. package/Dev/i18n/pt/Angular/CLAUDE.md.template +3 -2
  305. package/Dev/i18n/pt/Angular/agents/angular-reviewer.md +23 -7
  306. package/Dev/i18n/pt/Common/agents/devops-engineer.md +1 -1
  307. package/Dev/i18n/pt/Common/agents/migration-specialist.md +1 -1
  308. package/Dev/i18n/pt/Common/commands/ralph-run.md +3 -3
  309. package/Dev/i18n/pt/Common/commands/setup-rtk.md +2 -9
  310. package/Dev/i18n/pt/Common/hooks/HOOKS-QUICKSTART.md +33 -45
  311. package/Dev/i18n/pt/Common/rules/04-solid-principles.md +2 -2
  312. package/Dev/i18n/pt/Common/rules/09-git-workflow.md +7 -1
  313. package/Dev/i18n/pt/Common/rules/10-documentation.md +2 -2
  314. package/Dev/i18n/pt/Common/rules/11-security.md +12 -12
  315. package/Dev/i18n/pt/Common/rules/12-context-management.md +5 -3
  316. package/Dev/i18n/pt/Flutter/commands/analyze-performance.md +1 -1
  317. package/Dev/i18n/pt/Flutter/rules/06-tooling.md +6 -2
  318. package/Dev/i18n/pt/Flutter/rules/11-security-flutter.md +1 -1
  319. package/Dev/i18n/pt/Laravel/agents/laravel-reviewer.md +2 -2
  320. package/Dev/i18n/pt/PHP/rules/03-coding-standards.md +10 -0
  321. package/Dev/i18n/pt/PHP/rules/06-tooling.md +7 -3
  322. package/Dev/i18n/pt/Paperclip/CLAUDE.md.template +2 -2
  323. package/Dev/i18n/pt/Paperclip/README.md +1 -1
  324. package/Dev/i18n/pt/Paperclip/checks/security.md +1 -0
  325. package/Dev/i18n/pt/Paperclip/rules/11-security-paperclip.md +3 -1
  326. package/Dev/i18n/pt/Python/agents/python-reviewer.md +1 -1
  327. package/Dev/i18n/pt/Python/checks/code-quality.md +4 -4
  328. package/Dev/i18n/pt/Python/checks/security.md +2 -2
  329. package/Dev/i18n/pt/Python/checks/testing.md +2 -2
  330. package/Dev/i18n/pt/Python/rules/02-architecture.md +1 -8
  331. package/Dev/i18n/pt/Python/rules/03-coding-standards.md +16 -5
  332. package/Dev/i18n/pt/Python/templates/repository.md +2 -2
  333. package/Dev/i18n/pt/React/rules/02-architecture.md +17 -20
  334. package/Dev/i18n/pt/React/rules/03-coding-standards.md +15 -16
  335. package/Dev/i18n/pt/React/templates/component.md +12 -10
  336. package/Dev/i18n/pt/ReactNative/agents/reactnative-reviewer.md +4 -4
  337. package/Dev/i18n/pt/ReactNative/rules/06-tooling.md +15 -14
  338. package/Dev/i18n/pt/ReactNative/rules/14-navigation.md +2 -0
  339. package/Dev/i18n/pt/Ruby/agents/ruby-reviewer.md +1 -1
  340. package/Dev/i18n/pt/Ruby/rules/06-tooling.md +2 -2
  341. package/Dev/i18n/pt/Ruby/rules/11-security-ruby.md +13 -1
  342. package/Dev/i18n/pt/Rust/rules/03-coding-standards.md +1 -1
  343. package/Dev/i18n/pt/Rust/rules/11-security-rust.md +1 -1
  344. package/Dev/i18n/pt/Symfony/adr/README.md +1 -1
  345. package/Dev/i18n/pt/Symfony/checks/code-quality.md +2 -2
  346. package/Dev/i18n/pt/Symfony/rules/03-coding-standards.md +15 -0
  347. package/Dev/i18n/pt/Symfony/rules/06-docker-hadolint.md +1 -1
  348. package/Dev/i18n/pt/Symfony/rules/08-quality-tools.md +1 -3
  349. package/Dev/i18n/pt/Symfony/rules/15-doctrine-extensions.md +5 -5
  350. package/Dev/i18n/pt/Symfony/rules/16-i18n.md +1 -1
  351. package/Dev/i18n/pt/Symfony/templates/README.md +1 -1
  352. package/Dev/i18n/pt/Tauri/agents/tauri-reviewer.md +3 -0
  353. package/Dev/i18n/pt/Vercel/agents/vercel-reviewer.md +1 -0
  354. package/Dev/i18n/pt/Vercel/checks/all.md +1 -1
  355. package/Dev/i18n/pt/Vite/agents/vite-reviewer.md +11 -11
  356. package/Dev/i18n/pt/WordPress/CLAUDE.md.template +100 -0
  357. package/Dev/i18n/pt/WordPress/agents/wordpress-reviewer.md +350 -0
  358. package/Dev/i18n/pt/WordPress/checks/all.md +241 -0
  359. package/Dev/i18n/pt/WordPress/commands/check.md +28 -0
  360. package/Dev/scripts/check-config.sh +1 -1
  361. package/Dev/scripts/install-common-rules.sh +65 -0
  362. package/Dev/scripts/install-from-config.sh +3 -0
  363. package/Dev/scripts/install-paperclip-rules.sh +1 -1
  364. package/Dev/scripts/install-wordpress-rules.sh +153 -0
  365. package/Dev/scripts/lib/merge-hooks.mjs +110 -0
  366. package/Dev/scripts/memory-lifecycle/README.md +10 -9
  367. package/Dev/scripts/memory-lifecycle/_db.sh +1 -1
  368. package/Dev/scripts/memory-lifecycle/post-tool.sh +1 -1
  369. package/Dev/scripts/memory-lifecycle/pre-compact.sh +5 -5
  370. package/Dev/scripts/memory-lifecycle/prompt-submit.sh +1 -1
  371. package/Dev/scripts/memory-lifecycle/session-end.sh +1 -1
  372. package/Dev/scripts/memory-lifecycle/session-start.sh +5 -4
  373. package/Dev/stack-profiles/wordpress/permissions.txt +10 -0
  374. package/Dev/stack-profiles/wordpress/quality.md +4 -0
  375. package/Dev/stack-profiles/wordpress/stack.txt +2 -0
  376. package/Infra/i18n/de/Ansible/agents/ansible-architect.md +3 -1
  377. package/Infra/i18n/de/Ansible/agents/ansible-debug.md +1 -0
  378. package/Infra/i18n/de/Ansible/agents/ansible-deployment.md +3 -0
  379. package/Infra/i18n/de/Ansible/agents/ansible-security.md +2 -0
  380. package/Infra/i18n/de/Ansible/commands/security-audit.md +1 -1
  381. package/Infra/i18n/de/Coolify/agents/coolify-debug.md +1 -0
  382. package/Infra/i18n/de/Coolify/agents/coolify-deployment.md +5 -1
  383. package/Infra/i18n/de/Coolify/commands/coolify-debug.md +1 -0
  384. package/Infra/i18n/de/Coolify/commands/coolify-deploy.md +1 -0
  385. package/Infra/i18n/de/FrankenPHP/agents/frankenphp-architect.md +4 -2
  386. package/Infra/i18n/de/FrankenPHP/agents/frankenphp-deployment.md +2 -2
  387. package/Infra/i18n/de/FrankenPHP/agents/frankenphp-security.md +1 -1
  388. package/Infra/i18n/de/FrankenPHP/commands/deploy-setup.md +1 -1
  389. package/Infra/i18n/de/Hcloud/agents/hcloud-architect.md +16 -14
  390. package/Infra/i18n/de/Hcloud/agents/hcloud-cost.md +11 -9
  391. package/Infra/i18n/de/Hcloud/agents/hcloud-deployment.md +1 -1
  392. package/Infra/i18n/de/Hcloud/agents/hcloud-security.md +1 -1
  393. package/Infra/i18n/de/Hcloud/commands/architecture.md +2 -2
  394. package/Infra/i18n/de/Hcloud/commands/debug.md +3 -3
  395. package/Infra/i18n/de/Kubernetes/agents/kubernetes-architect.md +4 -0
  396. package/Infra/i18n/de/Kubernetes/agents/kubernetes-deployment.md +31 -0
  397. package/Infra/i18n/de/Kubernetes/agents/kubernetes-security.md +5 -1
  398. package/Infra/i18n/de/OpenTofu/agents/opentofu-architect.md +3 -1
  399. package/Infra/i18n/de/OpenTofu/agents/opentofu-deployment.md +2 -2
  400. package/Infra/i18n/de/OpenTofu/agents/opentofu-security.md +5 -5
  401. package/Infra/i18n/de/OpenTofu/commands/security-audit.md +1 -1
  402. package/Infra/i18n/de/PgBouncer/agents/pgbouncer-architect.md +1 -0
  403. package/Infra/i18n/de/PgBouncer/agents/pgbouncer-deployment.md +3 -3
  404. package/Infra/i18n/de/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
  405. package/Infra/i18n/de/PgBouncer/commands/deploy-setup.md +1 -1
  406. package/Infra/i18n/en/Ansible/agents/ansible-architect.md +3 -1
  407. package/Infra/i18n/en/Ansible/agents/ansible-debug.md +1 -0
  408. package/Infra/i18n/en/Ansible/agents/ansible-deployment.md +3 -0
  409. package/Infra/i18n/en/Ansible/agents/ansible-security.md +2 -0
  410. package/Infra/i18n/en/Ansible/commands/security-audit.md +1 -1
  411. package/Infra/i18n/en/Coolify/agents/coolify-debug.md +1 -0
  412. package/Infra/i18n/en/Coolify/agents/coolify-deployment.md +5 -1
  413. package/Infra/i18n/en/Coolify/commands/coolify-debug.md +1 -0
  414. package/Infra/i18n/en/Coolify/commands/coolify-deploy.md +1 -0
  415. package/Infra/i18n/en/FrankenPHP/agents/frankenphp-architect.md +4 -2
  416. package/Infra/i18n/en/FrankenPHP/agents/frankenphp-deployment.md +2 -2
  417. package/Infra/i18n/en/FrankenPHP/agents/frankenphp-security.md +1 -1
  418. package/Infra/i18n/en/FrankenPHP/commands/deploy-setup.md +1 -1
  419. package/Infra/i18n/en/Hcloud/agents/hcloud-architect.md +10 -8
  420. package/Infra/i18n/en/Hcloud/agents/hcloud-cost.md +11 -9
  421. package/Infra/i18n/en/Hcloud/agents/hcloud-deployment.md +1 -1
  422. package/Infra/i18n/en/Kubernetes/agents/kubernetes-architect.md +4 -0
  423. package/Infra/i18n/en/Kubernetes/agents/kubernetes-deployment.md +31 -0
  424. package/Infra/i18n/en/Kubernetes/agents/kubernetes-security.md +5 -1
  425. package/Infra/i18n/en/OpenTofu/agents/opentofu-architect.md +3 -1
  426. package/Infra/i18n/en/OpenTofu/agents/opentofu-deployment.md +2 -2
  427. package/Infra/i18n/en/OpenTofu/agents/opentofu-security.md +5 -5
  428. package/Infra/i18n/en/OpenTofu/commands/security-audit.md +1 -1
  429. package/Infra/i18n/en/PgBouncer/agents/pgbouncer-architect.md +1 -0
  430. package/Infra/i18n/en/PgBouncer/agents/pgbouncer-deployment.md +3 -3
  431. package/Infra/i18n/en/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
  432. package/Infra/i18n/en/PgBouncer/commands/deploy-setup.md +1 -1
  433. package/Infra/i18n/es/Ansible/agents/ansible-architect.md +3 -1
  434. package/Infra/i18n/es/Ansible/agents/ansible-debug.md +1 -0
  435. package/Infra/i18n/es/Ansible/agents/ansible-deployment.md +3 -0
  436. package/Infra/i18n/es/Ansible/agents/ansible-security.md +2 -0
  437. package/Infra/i18n/es/Ansible/commands/security-audit.md +1 -1
  438. package/Infra/i18n/es/Coolify/agents/coolify-debug.md +1 -0
  439. package/Infra/i18n/es/Coolify/agents/coolify-deployment.md +5 -1
  440. package/Infra/i18n/es/Coolify/commands/coolify-debug.md +1 -0
  441. package/Infra/i18n/es/Coolify/commands/coolify-deploy.md +1 -0
  442. package/Infra/i18n/es/FrankenPHP/agents/frankenphp-architect.md +4 -2
  443. package/Infra/i18n/es/FrankenPHP/agents/frankenphp-deployment.md +2 -2
  444. package/Infra/i18n/es/FrankenPHP/agents/frankenphp-security.md +1 -1
  445. package/Infra/i18n/es/FrankenPHP/commands/deploy-setup.md +1 -1
  446. package/Infra/i18n/es/Hcloud/agents/hcloud-architect.md +11 -9
  447. package/Infra/i18n/es/Hcloud/agents/hcloud-cost.md +11 -9
  448. package/Infra/i18n/es/Hcloud/agents/hcloud-deployment.md +1 -1
  449. package/Infra/i18n/es/Hcloud/commands/debug.md +1 -1
  450. package/Infra/i18n/es/Kubernetes/agents/kubernetes-architect.md +4 -0
  451. package/Infra/i18n/es/Kubernetes/agents/kubernetes-deployment.md +31 -0
  452. package/Infra/i18n/es/Kubernetes/agents/kubernetes-security.md +5 -1
  453. package/Infra/i18n/es/OpenTofu/agents/opentofu-architect.md +3 -1
  454. package/Infra/i18n/es/OpenTofu/agents/opentofu-deployment.md +2 -2
  455. package/Infra/i18n/es/OpenTofu/agents/opentofu-security.md +5 -5
  456. package/Infra/i18n/es/OpenTofu/commands/security-audit.md +1 -1
  457. package/Infra/i18n/es/PgBouncer/agents/pgbouncer-architect.md +1 -0
  458. package/Infra/i18n/es/PgBouncer/agents/pgbouncer-deployment.md +3 -3
  459. package/Infra/i18n/es/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
  460. package/Infra/i18n/es/PgBouncer/commands/deploy-setup.md +1 -1
  461. package/Infra/i18n/fr/Ansible/agents/ansible-architect.md +3 -1
  462. package/Infra/i18n/fr/Ansible/agents/ansible-debug.md +1 -0
  463. package/Infra/i18n/fr/Ansible/agents/ansible-deployment.md +3 -0
  464. package/Infra/i18n/fr/Ansible/agents/ansible-security.md +2 -0
  465. package/Infra/i18n/fr/Ansible/commands/security-audit.md +1 -1
  466. package/Infra/i18n/fr/Coolify/agents/coolify-debug.md +1 -0
  467. package/Infra/i18n/fr/Coolify/agents/coolify-deployment.md +5 -1
  468. package/Infra/i18n/fr/Coolify/commands/coolify-debug.md +1 -0
  469. package/Infra/i18n/fr/Coolify/commands/coolify-deploy.md +1 -0
  470. package/Infra/i18n/fr/FrankenPHP/agents/frankenphp-architect.md +4 -2
  471. package/Infra/i18n/fr/FrankenPHP/agents/frankenphp-deployment.md +2 -2
  472. package/Infra/i18n/fr/FrankenPHP/agents/frankenphp-security.md +1 -1
  473. package/Infra/i18n/fr/FrankenPHP/commands/deploy-setup.md +1 -1
  474. package/Infra/i18n/fr/Hcloud/agents/hcloud-architect.md +7 -5
  475. package/Infra/i18n/fr/Hcloud/agents/hcloud-cost.md +11 -9
  476. package/Infra/i18n/fr/Hcloud/agents/hcloud-deployment.md +1 -1
  477. package/Infra/i18n/fr/Kubernetes/agents/kubernetes-architect.md +4 -0
  478. package/Infra/i18n/fr/Kubernetes/agents/kubernetes-deployment.md +31 -0
  479. package/Infra/i18n/fr/Kubernetes/agents/kubernetes-security.md +5 -1
  480. package/Infra/i18n/fr/OpenTofu/agents/opentofu-architect.md +3 -1
  481. package/Infra/i18n/fr/OpenTofu/agents/opentofu-deployment.md +2 -2
  482. package/Infra/i18n/fr/OpenTofu/agents/opentofu-security.md +5 -5
  483. package/Infra/i18n/fr/OpenTofu/commands/security-audit.md +1 -1
  484. package/Infra/i18n/fr/PgBouncer/agents/pgbouncer-architect.md +1 -0
  485. package/Infra/i18n/fr/PgBouncer/agents/pgbouncer-deployment.md +3 -3
  486. package/Infra/i18n/fr/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
  487. package/Infra/i18n/fr/PgBouncer/commands/deploy-setup.md +1 -1
  488. package/Infra/i18n/pt/Ansible/agents/ansible-architect.md +3 -1
  489. package/Infra/i18n/pt/Ansible/agents/ansible-debug.md +1 -0
  490. package/Infra/i18n/pt/Ansible/agents/ansible-deployment.md +3 -0
  491. package/Infra/i18n/pt/Ansible/agents/ansible-security.md +2 -0
  492. package/Infra/i18n/pt/Ansible/commands/security-audit.md +1 -1
  493. package/Infra/i18n/pt/Coolify/agents/coolify-debug.md +1 -0
  494. package/Infra/i18n/pt/Coolify/agents/coolify-deployment.md +5 -1
  495. package/Infra/i18n/pt/Coolify/commands/coolify-debug.md +1 -0
  496. package/Infra/i18n/pt/Coolify/commands/coolify-deploy.md +1 -0
  497. package/Infra/i18n/pt/FrankenPHP/agents/frankenphp-architect.md +4 -2
  498. package/Infra/i18n/pt/FrankenPHP/agents/frankenphp-deployment.md +2 -2
  499. package/Infra/i18n/pt/FrankenPHP/agents/frankenphp-security.md +1 -1
  500. package/Infra/i18n/pt/FrankenPHP/commands/deploy-setup.md +1 -1
  501. package/Infra/i18n/pt/Hcloud/agents/hcloud-architect.md +9 -7
  502. package/Infra/i18n/pt/Hcloud/agents/hcloud-cost.md +11 -9
  503. package/Infra/i18n/pt/Hcloud/agents/hcloud-deployment.md +1 -1
  504. package/Infra/i18n/pt/Hcloud/commands/architecture.md +1 -1
  505. package/Infra/i18n/pt/Hcloud/commands/debug.md +1 -1
  506. package/Infra/i18n/pt/Kubernetes/agents/kubernetes-architect.md +4 -0
  507. package/Infra/i18n/pt/Kubernetes/agents/kubernetes-deployment.md +31 -0
  508. package/Infra/i18n/pt/Kubernetes/agents/kubernetes-security.md +5 -1
  509. package/Infra/i18n/pt/OpenTofu/agents/opentofu-architect.md +3 -1
  510. package/Infra/i18n/pt/OpenTofu/agents/opentofu-deployment.md +2 -2
  511. package/Infra/i18n/pt/OpenTofu/agents/opentofu-security.md +5 -5
  512. package/Infra/i18n/pt/OpenTofu/commands/security-audit.md +1 -1
  513. package/Infra/i18n/pt/PgBouncer/agents/pgbouncer-architect.md +1 -0
  514. package/Infra/i18n/pt/PgBouncer/agents/pgbouncer-deployment.md +3 -3
  515. package/Infra/i18n/pt/PgBouncer/agents/pgbouncer-monitoring.md +1 -1
  516. package/Infra/i18n/pt/PgBouncer/commands/deploy-setup.md +1 -1
  517. package/README.md +27 -15
  518. package/Tools/PluginExport/export-plugin.sh +15 -17
  519. package/Tools/Ralph/README.md +17 -7
  520. package/Tools/Ralph/hooks/lib/ralph-common.sh +101 -0
  521. package/Tools/Ralph/hooks/pre-tool-context.sh +28 -0
  522. package/Tools/Ralph/hooks/session-restore.sh +94 -0
  523. package/Tools/Ralph/hooks/stop-dod-gate.sh +60 -0
  524. package/Tools/Ralph/lib/hooks-generator.sh +109 -93
  525. package/bundles/cursor/.cursorrules +11 -10
  526. package/bundles/windsurf/.windsurfrules +11 -10
  527. package/cli/index.js +1 -0
  528. package/cli/lib/doctor.js +4 -3
  529. package/cli/lib/help.js +1 -0
  530. package/cli/lib/installer.js +1 -1
  531. package/cli/lib/parse-args.js +12 -0
  532. package/cli/lib/tech-registry.js +15 -5
  533. package/package.json +2 -1
  534. package/Dev/i18n/de/Common/hooks/scripts/post-tool-failure.sh +0 -89
  535. package/Dev/i18n/de/Common/hooks/scripts/pre-compact.sh +0 -53
  536. package/Dev/i18n/de/Common/hooks/scripts/session-end.sh +0 -98
  537. package/Dev/i18n/de/Common/templates/settings.json.template +0 -128
  538. package/Dev/i18n/en/Common/hooks/scripts/post-tool-failure.sh +0 -89
  539. package/Dev/i18n/en/Common/hooks/scripts/pre-compact.sh +0 -53
  540. package/Dev/i18n/en/Common/hooks/scripts/session-end.sh +0 -98
  541. package/Dev/i18n/en/Common/templates/settings.json.template +0 -128
  542. package/Dev/i18n/es/Common/hooks/scripts/post-tool-failure.sh +0 -89
  543. package/Dev/i18n/es/Common/hooks/scripts/pre-compact.sh +0 -53
  544. package/Dev/i18n/es/Common/hooks/scripts/session-end.sh +0 -98
  545. package/Dev/i18n/es/Common/templates/settings.json.template +0 -128
  546. package/Dev/i18n/fr/Common/hooks/scripts/post-tool-failure.sh +0 -88
  547. package/Dev/i18n/fr/Common/hooks/scripts/pre-compact.sh +0 -53
  548. package/Dev/i18n/fr/Common/hooks/scripts/session-end.sh +0 -98
  549. package/Dev/i18n/fr/Common/templates/settings.json.template +0 -128
  550. package/Dev/i18n/pt/Common/hooks/scripts/post-tool-failure.sh +0 -89
  551. package/Dev/i18n/pt/Common/hooks/scripts/pre-compact.sh +0 -53
  552. package/Dev/i18n/pt/Common/hooks/scripts/session-end.sh +0 -98
  553. package/Dev/i18n/pt/Common/templates/settings.json.template +0 -128
  554. package/Tools/Ralph/.ralph/hooks/pre-tool-context.sh +0 -100
  555. package/Tools/Ralph/.ralph/hooks/session-restore.sh +0 -118
  556. package/Tools/Ralph/.ralph/hooks/status-injector.sh +0 -147
  557. package/Tools/Ralph/.ralph/hooks/stop-dod-gate.sh +0 -137
@@ -809,6 +809,7 @@ describe('api/cron/daily', () => {
809
809
 
810
810
  - **vercel.json is a build-time contract**: validate it against the schema, never let it silently diverge from the deployed shape
811
811
  - **Functions default to Node.js/Fluid Compute**: Edge Runtime is a migration-recognition concern, not a target for new code
812
+ - **Cron Jobs are legacy → Schedules**: `crons[]` still works but Vercel is migrating it to Schedules (`schedules` in vercel.json, keyed by name, IANA timezone, `requestMethod` defaults to `POST`); report new `crons[]` usage as a migration note, never as a defect
812
813
  - **Cron endpoints are public URLs until proven otherwise**: always verify a shared secret before executing any side effect
813
814
  - **Cache-Control has exactly one owner per route**: vercel.json headers or the framework's own ISR primitive, never both
814
815
  - **Storage**: native `@vercel/kv`/`@vercel/postgres` are dead ends — Marketplace (Neon/Upstash) is the only supported path forward
@@ -33,7 +33,7 @@ Execute complete architecture check:
33
33
  - vercel.json schema validity (`$schema`, `version`, valid top-level keys) (6 pts)
34
34
  - rewrites / redirects / headers correctness (6 pts)
35
35
  - regions and functions block (no ambiguous glob overlap, memory/maxDuration justified) (5 pts)
36
- - Cron Jobs configuration (`crons[]` valid paths and schedules) (4 pts)
36
+ - Cron Jobs configuration (`crons[]` valid paths and schedules; Cron Jobs are legacy and being migrated to Schedules, so flag `crons[]` as a migration note, not an error) (4 pts)
37
37
  - Project-shape fit and framework adapter conflicts (4 pts)
38
38
 
39
39
  **Reference**: `.claude/references/vercel/checks/architecture.md`
@@ -66,7 +66,7 @@ Does the project have several distinct HTML pages (not just client-side routes)?
66
66
  NO --> MAJOR: secondary pages are not built or depend on a
67
67
  manual, unoptimized loading path
68
68
  YES --> Do the pages share heavy dependencies?
69
- YES --> Is manualChunks configured for a shared vendor chunk?
69
+ YES --> Is codeSplitting configured for a shared vendor chunk?
70
70
  NO --> MINOR: code duplication across pages
71
71
  ```
72
72
 
@@ -162,8 +162,8 @@ export default defineConfig({
162
162
  admin: resolve(__dirname, 'pages/admin/index.html'),
163
163
  },
164
164
  output: {
165
- manualChunks(id) {
166
- if (id.includes('node_modules')) return 'vendor';
165
+ codeSplitting: {
166
+ groups: [{ name: 'vendor', test: /node_modules/ }],
167
167
  },
168
168
  },
169
169
  },
@@ -444,7 +444,7 @@ Does package.json declare "sideEffects": false?
444
444
 
445
445
  ```
446
446
  Does the app have several pages (rolldownOptions.input)?
447
- YES --> Does manualChunks isolate a shared vendor chunk?
447
+ YES --> Does codeSplitting isolate a shared vendor chunk?
448
448
  NO --> MAJOR: each page duplicates the same heavy dependencies
449
449
  YES --> Does the largest lazy chunk exceed 80KB gzip?
450
450
  YES --> MAJOR: split further or lazy-load heavy sections
@@ -505,14 +505,14 @@ export default defineConfig({
505
505
  **Multi-page code-splitting:**
506
506
  ```typescript
507
507
  // BAD: each multi-page entry bundles its own copy of lodash-es
508
- // (no manualChunks)
508
+ // (no codeSplitting)
509
509
 
510
510
  // GOOD: shared vendor chunk across all pages
511
511
  build: {
512
512
  rolldownOptions: {
513
513
  output: {
514
- manualChunks(id) {
515
- if (id.includes('node_modules')) return 'vendor';
514
+ codeSplitting: {
515
+ groups: [{ name: 'vendor', test: /node_modules/ }],
516
516
  },
517
517
  },
518
518
  },
@@ -548,7 +548,7 @@ build: {
548
548
  |-----------|--------|
549
549
  | Effective tree-shaking (sideEffects: false, named exports, coherent exports map) | 6 |
550
550
  | Dependencies externalized for libraries (peer deps not bundled) | 6 |
551
- | Code-splitting for multi-page apps (manualChunks, shared vendor) | 5 |
551
+ | Code-splitting for multi-page apps (codeSplitting, shared vendor) | 5 |
552
552
  | Bundle under thresholds, assetsInlineLimit controlled | 4 |
553
553
  | Asset hashing, appropriate build.target, sourcemaps handled correctly in prod | 4 |
554
554
 
@@ -567,7 +567,7 @@ build: {
567
567
  ### Phase 2: Vite-specific Configuration (15 min)
568
568
 
569
569
  1. If library: verify build.lib, formats, rolldownOptions.external, vite-plugin-dts
570
- 2. If multi-page: verify rolldownOptions.input, manualChunks
570
+ 2. If multi-page: verify rolldownOptions.input, codeSplitting
571
571
  3. If Workers/WASM: verify new URL(...import.meta.url), ?init/?url suffixes
572
572
  4. Verify custom plugin naming convention (vite-plugin-*, name property)
573
573
  5. Verify environment variables (VITE_ prefix, no secrets exposed client-side)
@@ -590,7 +590,7 @@ build: {
590
590
 
591
591
  1. Analyze tree-shaking (sideEffects, named exports, exports map)
592
592
  2. Verify peer dep externalization for libraries
593
- 3. Verify code-splitting / manualChunks for multi-page apps
593
+ 3. Verify code-splitting / codeSplitting for multi-page apps
594
594
  4. Verify assetsInlineLimit, build.target, asset hashing, sourcemaps
595
595
  5. Run a bundle analyzer if available (rollup-plugin-visualizer)
596
596
 
@@ -711,7 +711,7 @@ build: {
711
711
  - **index.html is source code**: never inside public/, always transformed by Vite's pipeline
712
712
  - **public/ is reserved for static assets**: no source HTML/JS should ever pass through it
713
713
  - **Libraries: externalize, never bundle peer deps**
714
- - **Multi-page: name every entry explicitly, share heavy dependencies via manualChunks**
714
+ - **Multi-page: name every entry explicitly, share heavy dependencies via codeSplitting**
715
715
  - **Type safety end-to-end**: strict tsconfig through to published types via vite-plugin-dts
716
716
  - **Plugin naming convention**: vite-plugin-* with an explicit `name` property
717
717
  - **Verify the build, not just the source code**: test the actually published dist/
@@ -0,0 +1,100 @@
1
+ # {{PROJECT_NAME}} - WordPress
2
+
3
+ > Generated: {{GENERATION_DATE}} | Claude Craft v{{VERSION}}
4
+
5
+ ## What (Stack & Structure)
6
+
7
+ **Stack**: WordPress {{WP_VERSION}}, PHP {{PHP_VERSION}} (WordPress supports 7.4+, 8.3+ recommended), Composer, `@wordpress/scripts` for block/JS builds, `@wordpress/env` (wp-env) for local environments
8
+
9
+ ### Project Structure
10
+ ```
11
+ my-plugin/
12
+ ├── my-plugin.php # Plugin header (Requires at least / Requires PHP), bootstrap
13
+ ├── uninstall.php # Cleanup on uninstall
14
+ ├── composer.json # Autoload (PSR-4), WPCS, PHPStan, PHPUnit polyfills
15
+ ├── package.json # @wordpress/scripts, @wordpress/env
16
+ ├── .wp-env.json # Local WordPress environment
17
+ ├── includes/ (src/) # Namespaced PHP classes (hooks, REST, services)
18
+ ├── src/blocks/<name>/ # block.json (apiVersion 3), edit.js, render.php
19
+ ├── languages/ # .pot / translations (text domain = plugin slug)
20
+ └── tests/ # PHPUnit (WP_UnitTestCase), Jest, Playwright e2e
21
+ ```
22
+ Block themes follow the same spirit: `theme.json`, `templates/`, `parts/`, `patterns/`.
23
+
24
+ ## Why (Purpose & Organization)
25
+
26
+ ### Architecture: hooks-driven plugin/theme with namespaced services
27
+ - **Hooks**: behaviour attaches through actions and filters registered in one place
28
+ - **Namespaces and prefixes**: every function, class, option, hook and handle is namespaced or prefixed
29
+ - **Blocks first**: UI built as blocks (`block.json` apiVersion 3), server rendering via `render.php`
30
+ - **REST**: custom endpoints through `register_rest_route()` with a mandatory `permission_callback`
31
+ - Keep logic in plain classes testable without a full request; thin hook callbacks
32
+ - General PHP: see the `php` stack
33
+
34
+ See `rules/02-architecture-wordpress.md` for complete patterns.
35
+
36
+ ### Critical Rules
37
+ | Rule | Reason |
38
+ |------|--------|
39
+ | Capability check + nonce on every state change | Prevents privilege escalation and CSRF |
40
+ | Sanitize on input, escape on output (`esc_html`, `esc_attr`, `esc_url`, `wp_kses_post`) | Prevents XSS |
41
+ | `$wpdb->prepare()` for every query with variable data | Prevents SQL injection |
42
+ | `permission_callback` on every REST route | Routes without it are publicly accessible |
43
+ | `defined( 'ABSPATH' ) \|\| exit;` in every PHP file | Blocks direct file access |
44
+ | Prefix/namespace everything, text domain on every string | Avoids collisions, enables translation |
45
+ | WPCS (PHPCS) + PHPStan clean | Code quality and consistent style |
46
+ | 80%+ coverage, tests run through wp-env | Quality assurance |
47
+
48
+ > WooCommerce guidance lives in the optional skill `.claude/skills/woocommerce/`, loaded only when the project extends WooCommerce.
49
+
50
+ ## How (Commands & Workflows)
51
+
52
+ ### Development Commands
53
+ ```bash
54
+ docker compose exec app npx wp-env start # Local WordPress
55
+ docker compose exec app npx wp-scripts build # Build blocks / JS
56
+ docker compose exec app npx wp-scripts start # Watch mode
57
+ docker compose exec app npx wp-env run cli wp plugin list # WP-CLI inside wp-env
58
+ docker compose exec app npx @wordpress/create-block my-block # Scaffold a block
59
+ ```
60
+
61
+ ### Quality Pipeline
62
+ ```bash
63
+ docker compose exec app composer exec phpcs # WPCS
64
+ docker compose exec app composer exec phpstan analyse # PHPStan + phpstan-wordpress
65
+ docker compose exec app npx wp-env run tests-cli --env-cwd=wp-content/plugins/my-plugin composer exec phpunit
66
+ docker compose exec app npx wp-scripts test-unit-js # Jest
67
+ docker compose exec app npx wp-scripts lint-js # ESLint (@wordpress/eslint-plugin)
68
+ docker compose exec app npx playwright test # E2E
69
+ ```
70
+
71
+ ### Available Commands
72
+ - `/wordpress:check <architecture|code-quality|security|testing|all>` - Audit by axis, or scored aggregate
73
+
74
+ ### Development Workflow
75
+ 1. **Analyze** - Read code, understand domain (`rules/01-workflow-analysis.md`)
76
+ 2. **TDD** - Write test -> Implement -> Refactor
77
+ 3. **Quality** - Run the quality pipeline
78
+ 4. **Commit** - Conventional Commits format
79
+
80
+ ## References
81
+
82
+ | Topic | Rule File |
83
+ |-------|-----------|
84
+ | Analysis | `rules/01-workflow-analysis.md` |
85
+ | Architecture | `rules/02-architecture-wordpress.md` |
86
+ | Coding Standards | `rules/03-coding-standards.md` |
87
+ | SOLID | `rules/04-solid-principles.md` |
88
+ | Tooling | `rules/06-tooling.md` |
89
+ | Testing | `rules/07-testing-wordpress.md` |
90
+ | Quality | `rules/08-quality-tools.md` |
91
+ | Security | `rules/11-security-wordpress.md` |
92
+
93
+ <!-- PROJECT-SPECIFIC-START -->
94
+ ## Project Specifics
95
+
96
+ {{TECH_STACK}}
97
+
98
+ <!-- Add project-specific configuration below -->
99
+
100
+ <!-- PROJECT-SPECIFIC-END -->
@@ -0,0 +1,350 @@
1
+ ---
2
+ name: wordpress-reviewer
3
+ description: "WordPress 7.1 code review specialist — plugin/theme structure, hooks, blocks (block.json apiVersion 3), REST API, WPCS, security (capabilities, nonces, escaping, $wpdb->prepare), performance (WP_Query, caching, autoload), testing (PHPUnit via wp-env, Jest, Playwright). WooCommerce checks are conditional"
4
+ model: haiku
5
+ effort: low
6
+ maxTurns: 6
7
+ tools: [Read, Glob, Grep, WebFetch, WebSearch]
8
+ disallowedTools: [Write, Edit, Bash, NotebookEdit]
9
+ permissionMode: default
10
+ skills: [solid-principles, testing, security]
11
+ ---
12
+
13
+ # WordPress Audit Agent
14
+
15
+ ## Identity
16
+
17
+ I am a specialist in WordPress (registry line 7.1, current release 7.1.4; PHP 7.4 minimum, 8.3+ recommended) plugin and theme code review. My scope is custom plugins, block themes, Gutenberg blocks, REST endpoints, WP-CLI commands, their tooling (`@wordpress/scripts`, `@wordpress/env`, WPCS, PHPStan) and tests. Generic PHP concerns belong to the `php` stack; hosting, Bedrock-style deployments and WordPress core development are out of scope.
18
+
19
+ I do not perform a generic audit -- I detect what exposes a site to privilege escalation, XSS or SQL injection, what collides with other plugins, what slows every request, and what cannot be tested or translated.
20
+
21
+ Core stance: **all input is hostile, all output is escaped, every entry point checks capability**.
22
+
23
+ ## Scoring System (100 points)
24
+
25
+ | Category | Points | Focus |
26
+ |----------|--------|-------|
27
+ | Architecture | 25 | Plugin/theme structure, hooks, blocks, REST, lifecycle |
28
+ | Coding Standards | 15 | WPCS, prefixing/namespaces, i18n, complexity |
29
+ | Security | 30 | Capabilities, nonces, sanitize/escape, `$wpdb->prepare`, REST permissions |
30
+ | Performance | 15 | `WP_Query`, transients/object cache, autoload, asset enqueue |
31
+ | Testing | 15 | PHPUnit `WP_UnitTestCase`, Jest, Playwright, coverage |
32
+
33
+ ---
34
+
35
+ ## 1. Architecture (25 points)
36
+
37
+ ### Decision Tree: Architecture Analysis
38
+
39
+ ```
40
+ Does the main plugin file carry a valid header (Plugin Name, Requires at least, Requires PHP, Text Domain) and an ABSPATH guard?
41
+ NO --> MAJOR: missing metadata, direct file access possible
42
+ YES --> Are functions, classes, options, hooks and script handles prefixed or namespaced?
43
+ NO --> CRITICAL: global-namespace collisions with core and other plugins
44
+ YES --> Are hooks registered in one bootstrap/loader and callbacks thin?
45
+ NO --> MAJOR: logic scattered in files executed on include
46
+ YES --> Is Composer autoloading (PSR-4) used instead of manual require chains?
47
+ NO --> MINOR
48
+ YES --> OK
49
+
50
+ Does activation/deactivation/uninstall behave correctly (register_activation_hook, uninstall.php cleaning options/tables)?
51
+ NO --> MAJOR: leaves data behind or does work on every request
52
+ Do blocks use block.json with apiVersion 3 and register via register_block_type()?
53
+ NO --> MAJOR: legacy JS-only registration
54
+ Do custom REST routes use register_rest_route() with args schema and permission_callback?
55
+ NO --> CRITICAL: see Security
56
+ ```
57
+
58
+ ### Expected Organization
59
+
60
+ ```
61
+ my-plugin/
62
+ my-plugin.php # header, ABSPATH guard, bootstrap only
63
+ uninstall.php
64
+ composer.json
65
+ src/ # namespaced classes (PSR-4)
66
+ Plugin.php # registers hooks
67
+ Rest/ Admin/ Blocks/
68
+ build/ # compiled assets (generated)
69
+ blocks/<name>/block.json # apiVersion 3, render.php for dynamic blocks
70
+ languages/
71
+ tests/
72
+ ```
73
+ Block themes: `theme.json`, `templates/`, `parts/`, `patterns/`, `style.css` header.
74
+
75
+ ### Critical Violations
76
+
77
+ **Unprefixed global and no guard:**
78
+ ```php
79
+ // BAD
80
+ function init_things() { /* ... */ }
81
+ add_action( 'init', 'init_things' );
82
+
83
+ // GOOD
84
+ namespace Acme\MyPlugin;
85
+ defined( 'ABSPATH' ) || exit;
86
+ add_action( 'init', array( Plugin::class, 'boot' ) );
87
+ ```
88
+
89
+ **Block registration:**
90
+ ```php
91
+ // GOOD: metadata in block.json, server render in render.php
92
+ add_action( 'init', static function () {
93
+ register_block_type( __DIR__ . '/build/blocks/hero' );
94
+ } );
95
+ ```
96
+ `block.json` should set `apiVersion` to 3, a namespaced `name`, `textdomain` and `render` for dynamic blocks.
97
+
98
+ ### Scoring
99
+
100
+ | Criteria | Points |
101
+ |----------|--------|
102
+ | Header, bootstrap, ABSPATH guard, autoload | 5 |
103
+ | Prefixing / namespaces | 5 |
104
+ | Hooks organization, thin callbacks | 5 |
105
+ | Blocks (`block.json` apiVersion 3) and theme structure | 5 |
106
+ | REST design, lifecycle (activation, uninstall) | 5 |
107
+
108
+ ---
109
+
110
+ ## 2. Coding Standards (15 points)
111
+
112
+ ### Decision Tree: Code Quality
113
+
114
+ ```
115
+ Does phpcs with the WordPress ruleset (WPCS 3.x) pass?
116
+ NO --> MAJOR: style and API-usage debt
117
+ Are all user-facing strings wrapped in __(), _e(), esc_html__() etc. with the plugin text domain?
118
+ NO --> MAJOR: untranslatable strings
119
+ Are text domains literal strings (not variables)?
120
+ NO --> MINOR: extraction tools cannot read them
121
+ Does PHPStan (with phpstan-wordpress and WordPress stubs) pass at the agreed level?
122
+ NO --> MINOR
123
+ Are functions long or deeply nested (cognitive complexity > 10)?
124
+ YES --> MINOR: extract, use early returns
125
+ Does JS pass ESLint with @wordpress/eslint-plugin?
126
+ NO --> MINOR
127
+ ```
128
+
129
+ ### Checks
130
+
131
+ - Yoda conditions, spacing and naming per WPCS; use WordPress APIs (`wp_remote_get`, `wp_safe_redirect`, WP_Filesystem) instead of raw PHP equivalents
132
+ - Translator comments for placeholders; `_n()` for plurals; `wp_set_script_translations()` for JS strings
133
+ - Abstractions justified (YAGNI); no dead hooks or unused options
134
+
135
+ ### Scoring
136
+
137
+ | Criteria | Points |
138
+ |----------|--------|
139
+ | WPCS passes | 5 |
140
+ | i18n (text domain, translator comments) | 4 |
141
+ | PHPStan / ESLint | 3 |
142
+ | KISS/DRY/YAGNI, complexity | 3 |
143
+
144
+ ---
145
+
146
+ ## 3. Security (30 points)
147
+
148
+ ### Decision Tree: Security
149
+
150
+ ```
151
+ Does every state-changing handler (admin-post, AJAX, form, REST) verify a nonce AND current_user_can()?
152
+ NO --> CRITICAL: CSRF and privilege escalation
153
+ YES --> Does every register_rest_route() define a permission_callback?
154
+ NO --> CRITICAL: route is public (and WordPress emits a notice)
155
+ YES --> Is input sanitized (sanitize_text_field, absint, wp_unslash, validated REST args)?
156
+ NO --> MAJOR
157
+ YES --> Is output escaped late (esc_html, esc_attr, esc_url, esc_js, wp_kses_post)?
158
+ NO --> CRITICAL: stored/reflected XSS
159
+ YES --> Do all queries with variable data use $wpdb->prepare()?
160
+ NO --> CRITICAL: SQL injection
161
+ YES --> OK
162
+
163
+ Does every PHP file that is not a pure class/definition guard with defined( 'ABSPATH' )?
164
+ NO --> MINOR: direct access
165
+ Are file uploads validated (wp_check_filetype_and_ext, wp_handle_upload) and redirects done with wp_safe_redirect?
166
+ NO --> MAJOR
167
+ Are secrets stored outside the repo (wp-config.php constants, environment)?
168
+ NO --> CRITICAL
169
+ ```
170
+
171
+ ### Vulnerabilities to Detect
172
+
173
+ **Unprepared query:**
174
+ ```php
175
+ // BAD
176
+ $wpdb->get_results( "SELECT * FROM {$wpdb->posts} WHERE post_title = '{$_GET['t']}'" );
177
+
178
+ // GOOD
179
+ $wpdb->get_results( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_title = %s", sanitize_text_field( wp_unslash( $_GET['t'] ?? '' ) ) ) );
180
+ ```
181
+
182
+ **Handler without capability and nonce:**
183
+ ```php
184
+ // GOOD
185
+ add_action( 'admin_post_acme_save', static function () {
186
+ check_admin_referer( 'acme_save' );
187
+ if ( ! current_user_can( 'manage_options' ) ) {
188
+ wp_die( esc_html__( 'Forbidden', 'acme' ), 403 );
189
+ }
190
+ // sanitize, then act
191
+ } );
192
+ ```
193
+
194
+ **REST route:**
195
+ ```php
196
+ register_rest_route( 'acme/v1', '/items/(?P<id>\d+)', array(
197
+ 'methods' => 'GET',
198
+ 'callback' => array( $controller, 'get_item' ),
199
+ 'permission_callback' => static fn () => current_user_can( 'edit_posts' ),
200
+ 'args' => array( 'id' => array( 'type' => 'integer', 'required' => true ) ),
201
+ ) );
202
+ ```
203
+
204
+ **Other checks:** no `eval`/`extract` on request data; `unserialize` never on untrusted data; no secrets in JS bundles; dependencies audited (`composer audit`, `npm audit`); OWASP Top 10:2025 considerations.
205
+
206
+ **WordPress 7.1 compatibility:** the post editor is now fully iframed, including for sites with legacy meta boxes: plugins that reach across the editor document boundary must have their JavaScript and CSS reviewed; bundled jQuery UI is 1.14.2 (test plugins relying on it); the Abilities API (introduced in 6.9) gains filtering in `wp_get_abilities()`. Sources: https://make.wordpress.org/core/tag/7-1+field-guide/
207
+
208
+ ### Scoring
209
+
210
+ | Criteria | Points |
211
+ |----------|--------|
212
+ | Capabilities and nonces | 8 |
213
+ | REST `permission_callback` and arg validation | 6 |
214
+ | Escaping on output | 6 |
215
+ | Sanitization and `$wpdb->prepare()` | 6 |
216
+ | Secrets, uploads, supply chain | 4 |
217
+
218
+ ---
219
+
220
+ ## 4. Performance (15 points)
221
+
222
+ ### Decision Tree: Performance
223
+
224
+ ```
225
+ Does any query use posts_per_page => -1 or an unbounded loop over posts?
226
+ YES --> MAJOR: paginate or limit; set no_found_rows when pagination is not needed
227
+ Are expensive results cached (transients, or wp_cache_* with an object cache)?
228
+ NO --> MAJOR when computed on every request
229
+ Are options loaded on every request (autoload yes) large or rarely used?
230
+ YES --> MAJOR: pass autoload false to add_option / update_option
231
+ Are scripts and styles registered with wp_enqueue_* only where needed, with versions and in-footer/defer strategy?
232
+ NO --> MINOR: assets loaded on every page
233
+ Are remote HTTP calls made synchronously on page render without caching or timeout?
234
+ YES --> MAJOR
235
+ Are meta_query / tax_query patterns causing full table scans on large sites?
236
+ YES --> MINOR: consider dedicated tables or indexes
237
+ ```
238
+
239
+ ### Scoring
240
+
241
+ | Criteria | Points |
242
+ |----------|--------|
243
+ | `WP_Query` discipline | 5 |
244
+ | Caching (transients, object cache) | 4 |
245
+ | Autoload and option hygiene | 3 |
246
+ | Asset enqueue and remote calls | 3 |
247
+
248
+ ---
249
+
250
+ ## 5. Testing (15 points)
251
+
252
+ ### Decision Tree: Test Strategy
253
+
254
+ ```
255
+ Are PHP units/integration covered with PHPUnit and WP_UnitTestCase running inside wp-env?
256
+ NO --> MAJOR
257
+ Is yoast/phpunit-polyfills installed so the suite runs across PHPUnit versions?
258
+ NO --> MINOR
259
+ Do JS components/utilities have Jest tests (wp-scripts test-unit-js)?
260
+ NO --> MAJOR when custom blocks exist
261
+ Are critical paths covered by Playwright using @wordpress/e2e-test-utils-playwright?
262
+ NO --> MINOR
263
+ Coverage >= 80% on core logic?
264
+ NO --> MAJOR
265
+ ```
266
+
267
+ ### Testing Principles
268
+
269
+ ```php
270
+ class Test_Items extends WP_UnitTestCase {
271
+ public function test_rest_item_requires_capability(): void {
272
+ wp_set_current_user( self::factory()->user->create( array( 'role' => 'subscriber' ) ) );
273
+ $response = rest_do_request( new WP_REST_Request( 'GET', '/acme/v1/items/1' ) );
274
+ $this->assertSame( 403, $response->get_status() );
275
+ }
276
+ }
277
+ ```
278
+ Use factories for data, one behaviour per test, and no dependency on a pre-existing database state.
279
+
280
+ ### Scoring
281
+
282
+ | Criteria | Points |
283
+ |----------|--------|
284
+ | PHPUnit with WP_UnitTestCase (wp-env) | 6 |
285
+ | Jest for blocks/JS | 3 |
286
+ | Playwright E2E | 3 |
287
+ | Coverage >= 80%, test quality | 3 |
288
+
289
+ ---
290
+
291
+ ## WooCommerce (only if the project depends on it)
292
+
293
+ Apply `.claude/skills/woocommerce/checklist.md`. Minimum signals: HPOS (custom order tables) compatibility declared, `wc_get_order()` and CRUD objects used instead of direct post meta access, and `cart_checkout_blocks` compatibility declared. Findings are folded into the five categories above (mostly Architecture and Security); do not apply this section otherwise.
294
+
295
+ ---
296
+
297
+ ## Audit Methodology
298
+
299
+ ### Phase 1: Structure and Metadata (15 min)
300
+ 1. Read plugin header / `style.css`, `composer.json`, `package.json`, `.wp-env.json`
301
+ 2. Check prefixing, namespaces, autoload, activation and uninstall
302
+
303
+ ### Phase 2: Entry Points and Security (20 min)
304
+ 1. List hooks, admin-post/AJAX handlers, REST routes, shortcodes, block render callbacks
305
+ 2. Check capability, nonce, sanitization, escaping, `$wpdb->prepare()`
306
+
307
+ ### Phase 3: Blocks and Front End (10 min)
308
+ 1. `block.json` files, `render.php`, asset enqueue, `theme.json`
309
+
310
+ ### Phase 4: Quality and Performance (10 min)
311
+ 1. WPCS / PHPStan / ESLint results, i18n coverage
312
+ 2. Queries, caching, autoloaded options
313
+
314
+ ### Phase 5: Tests (10 min)
315
+ 1. PHPUnit, Jest, Playwright setup and CI execution, coverage
316
+
317
+ ---
318
+
319
+ ## Audit Report Format
320
+
321
+ ```markdown
322
+ # WordPress Audit Report
323
+
324
+ ## Project: [Project Name]
325
+ ## Date: [Date]
326
+ ## WordPress: [version] | PHP: [version] | Type: [plugin/theme/block theme] | WooCommerce: [yes/no]
327
+
328
+ ---
329
+
330
+ ## Overall Score: [X]/100
331
+
332
+ | Category | Score | Max |
333
+ |----------|-------|-----|
334
+ | Architecture | [X] | 25 |
335
+ | Coding Standards | [X] | 15 |
336
+ | Security | [X] | 30 |
337
+ | Performance | [X] | 15 |
338
+ | Testing | [X] | 15 |
339
+
340
+ ---
341
+
342
+ ### 1. Architecture: [X]/25
343
+ **Observations:**
344
+ - [Positive or negative point with file:line]
345
+
346
+ **Recommendations:**
347
+ - [Concrete action]
348
+
349
+ [Same format for sections 2 to 5]
350
+ ```