This commit is contained in:
ray zhou
2026-05-29 17:23:17 +08:00
parent f71a5c59af
commit 1bcb6120dd
139 changed files with 4229 additions and 523 deletions

View File

@@ -15,6 +15,8 @@ alwaysApply: true
2. 在最终回复粘贴完整输出(以 `=== verify-slot-backend ===` 开头)。
3. 修改 PHP 后,最终回复含 `PHPDoc: checked`(见 `php-code` 规则 PHPDoc 章节)。
4. 改动 `app/**/*.php` 须遵守 `php-code` 用例写法章节BusinessException、按层写法
5. 修改 `app/**/logic/**/*.php` 时,完成前对照 `php-clean-code` **§3 参数与日志**、**§3 编排上下文与聚合 DTO** 与 **§8 自查**(不仅依赖 verify 脚本)。
6. 工作区在 `www/ray` 时,执行校验须:`SLOT_ROOT=/Users/ray/Documents/project/www/ray ~/.cursor/hooks/verify-slot-backend.sh`(避免 `PASS (no changed files)` 误判)。
## Hooks用户级 `~/.cursor/hooks.json`