feat: 添加AI开发规范自动加载配置 — 支持所有AI编码工具

单一信源设计:
- RULES.md: 项目唯一规范信源(218行,覆盖铁律+后端+前端规范)

多工具适配(7个配置文件):
- AGENTS.md: Codex CLI / Claude Code 自动读取
- .cursorrules: Cursor IDE 自动读取
- .github/copilot-instructions.md: GitHub Copilot 自动读取
- .windsurfrules: Windsurf/Codeium 自动读取
- .clinerules: Cline 自动读取
- .aider.conf.yml: Aider 自动读取
- .qwenrules: Qwen Coder/通义灵码 自动读取

子目录 AGENTS.md 同步更新引用 RULES.md
This commit is contained in:
2026-06-06 09:46:15 +08:00
parent 3578a24254
commit e8af9ea40a
10 changed files with 336 additions and 83 deletions

17
.cursorrules Normal file
View File

@@ -0,0 +1,17 @@
# HealthLink-HIS AI Development Rules
Read and follow RULES.md in the project root. It contains all iron rules and development standards.
## Key Rules
- All code changes must pass compilation tests before commit
- Database changes must use Flyway migration scripts
- Follow the layered architecture: Controller → AppService → Service → Mapper → Entity
- API prefix: /healthlink-his/api/v1/
- Package: com.healthlink.his
- Backend: Spring Boot 4.0.6, JDK 25, MyBatis-Plus 3.5.16
- Frontend: Vue 3, Vite, Element Plus, Pinia
## File Structure
- Backend: healthlink-his-server/
- Frontend: healthlink-his-ui/
- Docs: MD/ (all specs in MD/specs/)