Files
gym-manage/.pi/prompts/ship-gym-manage.md
T
zhangxiang 5c65139fd8 chore(config): 参考 novavis 完善 Agent 配置体系
- AGENTS.md: 新增 §20 工具脚本复用 / §21 分析结论复用 / §22 Flaky 门禁,更新文档配置表
- .pi/: 新增 settings.json、rules/guardrails.md、prompts/{debug,review,ship}-gym-manage.md
- .agents/: 新增 Hook 配置与 4 个 Hook 脚本(session-start/pre-agent-check/check-completeness/stop-check)
  及 protocols/systematic-debugging.md(check-completeness 含接口链缺口检测)
- scripts/flaky-scan.sh: vitest shuffle 稳定性扫描(gym-manage-web)
- .gitignore: 追踪 AGENTS.md 与 .pi 配置,忽略运行时缓存(todos/taskflows-runs/tokenomy/sessions)
2026-08-04 12:02:12 +08:00

45 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: 健身房管理系统专属质量门禁与发布流程 — 构建→测试→提交→推送
---
Gym Manage 项目质量门禁和提交发布流程:
## 质量门禁(按顺序执行)
```bash
# Step 1: 后端编译 + 测试(受影响模块)
cd gym-manage-api && mvn test -pl <受影响模块> -am
# Step 2: Web 前端类型检查 + 单元测试
cd gym-manage-web && pnpm exec vue-tsc --noEmit
cd gym-manage-web && pnpm test
# Step 3: Web E2E(涉及页面交互时)
cd gym-manage-web && pnpm test:e2e
# Step 4: 新增/修改测试的 flaky 门禁(P1AGENTS.md §22
bash scripts/flaky-scan.sh --spec <新文件> --runs 3
# Step 5: 构建验证
cd gym-manage-web && pnpm build
```
## Git 操作规范
### 提交信息格式
```
类型(范围): 中文描述
- 类型: feat / fix / refactor / test / docs / chore / perf / style
- 范围: api / web / uniapp / coach / config / ci / deps
```
### 提交前检查
-`// TODO` / `// FIXME` / `console.log` 残留
- 无空函数体或 `throw new UnsupportedOperationException()` 等骨架占位
-`.only()` / `.skip()` 在测试中
- 已从两个独立信源交叉验证(AGENTS.md §7
### 推送前检查
- Jenkins CI pipeline 兼容性(`Jenkinsfile` 在 root
- 全链路打通(API → Service → Web/UniAppAGENTS.md §13)——Mock 通过 ≠ 功能可用,需真实后端验证