Go协程泄漏排查实战:从pprof到goroutine栈定位
2026/10/14 6:48:01
记录几个模板
不同团队的具体模板会有差异,但核心内容大致包括:
spec.md
| 工具 | 定位 | 核心特点 | 适用场景 |
| Spec Kit (GitHub) | Agent-agnostic 框架 | 三文件体系 + constitution | 通用项目(43.7k Star) |
| OpenSpec (Fission-AI) | 轻量迭代工具 | Spec 在对话中完善 | 小型快速项目 |
| Kiro (AWS) | SDD-native IDE | 完整 IDE 集成 | AWS 生态 |
| QoderWork (阿里) | Quest 执行引擎 | Spec → Quest → PR 自动化 | 阿里生态 |
## Login Feature **What it does:** Allows registered users to access the application. **Requirements:** - SHALL accept email and password - SHALL validate email format before submission - SHALL display error for invalid credentials - SHALL redirect to dashboard on successful login - SHALL rate-limit to 5 attempts per 15 minutes **Scenarios:** 1. Valid credentials → redirect to /dashboard 2. Invalid credentials → show error, do not redirect 3. Empty fields → show validation errors 4. 6th failed attempt → show rate limit message **Constraints:** - SHALL NOT store passwords in plain text - SHALL NOT allow brute force attacks - SHALL NOT expose whether email existsdocs/specs/checkout-coupon/ proposal.md 为什么现在做、影响谁 spec.md 需求和场景 design.md 决策和取舍 tasks.md 可评审实现切片 test-evidence.md 合并前必须提供的证据