一键导入
sprint-closure
Sprint closure patterns for archiving, lesson capture, report consolidation, and retrospective generation. Use at end of sprint cycle.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Sprint closure patterns for archiving, lesson capture, report consolidation, and retrospective generation. Use at end of sprint cycle.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Browser automation via ActionBook action manuals. Use for web interactions, deployment verification, visual testing, and admin UI tasks. 10x faster than raw browser automation with 100x token savings.
Complete code quality workflow with ESLint, Prettier, TypeScript, Husky hooks, and type safety standards. Run before every commit/push.
Comprehensive code review skill for Wasp applications. Use when reviewing code, PRs, or architectural changes. Covers Wasp-specific patterns, import rules, auth checks, TDD compliance, multi-tenant permissions, and performance. Integrates all CLAUDE.md critical rules.
Complete error handling patterns for Wasp applications. Use when implementing error handling, validation, or working with HTTP errors. Includes server-side operations errors, client-side error handling, Zod validation, and retry logic.
Type safety standards and linting philosophy for TypeScript/Wasp projects. 2-tier approach (production strict, tests pragmatic). Helper patterns, mock patterns, when 'any' is acceptable vs cheating.
Multi-tenant permission checking for Wasp applications. Use when implementing authorization, access control, or role-based permissions. Includes organization/department/role patterns and permission helper functions.
| name | sprint-closure |
| description | Sprint closure patterns for archiving, lesson capture, report consolidation, and retrospective generation. Use at end of sprint cycle. |
| triggers | ["close sprint","sprint retrospective","archive sprint","lessons learned","sprint closure"] |
| version | 1 |
| last_updated | "2025-12-24T00:00:00.000Z" |
Patterns and templates for comprehensive sprint closure workflow.
Sprint closure discovers and consolidates these report types:
| Report Type | Location | Purpose |
|---|---|---|
| PR Reviews | reports/pr-reviews/ | Code review findings |
| Test Quality | reports/test-quality/ | TDD compliance |
| Security Audits | reports/security-audit/ | OWASP findings |
| QA Reports | reports/qa/ | Quality assurance |
| Architecture | tasks/sprints/*/ | Design decisions |
| Research | tasks/research/ | Technical investigations |
Header (create if not exists):
# Lessons Learned (Living Document)
Last updated: [YYYY-MM-DD] (Sprint [N] closure)
## Status Legend
- ✅ **PROCESSED** - Fully implemented, no action needed
- ⚠️ **PARTIAL** - Partially implemented, ongoing work
- ❌ **TODO** - Identified but not yet implemented
Lesson Format (Full Detail for Current Sprint):
### Lesson: [Descriptive Title]
**Discovered in:** Sprint [N] ([context])
**What we learned:**
[Description of the lesson]
**Implementation:**
- ✅ **Code:** [specific file paths or N/A]
- ✅ **Tests:** [test file paths or patterns]
- ✅ **Docs:** [documentation file paths]
- ✅ **Skills:** [skill file paths]
- ✅ **Commands:** [command file paths]
**Status:** ✅ PROCESSED | ⚠️ PARTIAL | ❌ TODO
**Sprint:** [N]
Before adding new sprint lessons, compress previous PROCESSED lessons:
BEFORE (15-20 lines):
### Lesson: Test Immutability Prevents Test Cheating
**Discovered in:** Sprint 2 (Backend development, day-02)
**What we learned:**
LLM agents may delete tests instead of fixing code when tests fail...
[full details]
**Implementation:**
- ✅ **Code:** N/A (process change)
- ✅ **Tests:** All tests committed separately...
- ✅ **Docs:** `docs/TDD-WORKFLOW.md`...
...
**Status:** ✅ PROCESSED
**Sprint:** 2
AFTER (4-5 lines):
### Lesson: Test Immutability Prevents Test Cheating
Commit tests separately in RED phase makes them immutable. Any modification during GREEN/REFACTOR is visible in git history.
**WHERE:** docs/TDD-WORKFLOW.md, .claude/skills/tdd-workflow/, red-tdd/green-tdd/refactor-tdd commands
**STATUS:** ✅ PROCESSED | **SPRINT:** 2
Compression Criteria:
# Sprint [N] Retrospective
**Date:** [YYYY-MM-DD]
**Duration:** [Start] to [End]
## Sprint Goal
[Extract from planning or infer from artifacts]
## What Went Well ✅
- High test coverage: [percentage]%
- Security score: [before] → [after]
- [Other positive outcomes]
## What Didn't Go Well ❌
- Time estimation: [planned] vs [actual]
- [Challenges encountered]
## Metrics 📊
| Category | Value | Target | Status |
| ------------------ | ------- | ------- | ------ |
| Test Coverage | [X]% | 80%/75% | ✅/❌ |
| Security Score | [X]/100 | 90 | ✅/❌ |
| Features Completed | [X]/[Y] | 100% | ✅/❌ |
## Action Items for Next Sprint
| Action | Owner | Priority | Category |
| ------ | ----- | ------------ | ---------- |
| [Item] | [Who] | High/Med/Low | [Category] |
## Lessons Learned Summary
[Top 5 lessons with links to LESSONS-LEARNED.md]
tasks/archive/[YYYY-MM]/sprint-[N]/
├── README.md # Sprint summary
├── RETROSPECTIVE-[date].md # Retrospective
└── [daily directories] # Preserved from sprint
├── tests/
├── implementation/
├── refactor/
└── security/
QA Summary:
# QA Summary - Sprint [N]
## Test Quality Metrics
| Criterion | Violations | Resolution |
| ---------------- | ---------- | ---------- |
| Business logic | [count] | [status] |
| Assertions | [count] | [status] |
| Error paths | [count] | [status] |
| Edge cases | [count] | [status] |
| Behavior testing | [count] | [status] |
Security Summary:
# Security Summary - Sprint [N]
## OWASP Top 10 Coverage
| Category | Status | Findings |
| ------------------- | ------ | -------- |
| A01 Broken Access | ✅/❌ | [count] |
| A02 Crypto Failures | ✅/❌ | [count] |
...
## Risk Register
| Severity | Count | Resolved | Deferred |
| -------- | ----- | -------- | -------- |
| CRITICAL | [X] | [Y] | [Z] |
| HIGH | [X] | [Y] | [Z] |
After adding lessons to LESSONS-LEARNED.md:
.claude/LESSONS-INTEGRATION.md.claude/LESSONS-INTEGRATION.mdgrep -r "LESSONS-LEARNED.md#" .claude/ app/CLAUDE.md
| Category | Example Topics |
|---|---|
| TDD Workflow | Test immutability, 5 criteria, RED/GREEN/REFACTOR |
| Multi-Worktree | Database isolation, schema ownership, port mapping |
| Security Patterns | Backend permissions, OWASP, input validation |
| Architecture | Strategy Pattern, type safety, permission helpers |
| Test Quality | Mock patterns, integration vs unit, coverage |
| Tooling | Wasp 0.20.1, safe-start, db-manager |
| Process | Phased commands, artifact tracking, sprintdag |
| Anti-Patterns | Client-side auth, useAction overuse, test theater |
/close-sprint (complete orchestration).claude/LESSONS-INTEGRATION.mddocs/LESSONS-LEARNED.md