agileflow 2.50.0 → 2.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +82 -460
  2. package/package.json +18 -3
  3. package/scripts/agileflow-configure.js +134 -63
  4. package/scripts/agileflow-welcome.js +161 -31
  5. package/scripts/generators/agent-registry.js +2 -2
  6. package/scripts/generators/command-registry.js +6 -6
  7. package/scripts/generators/index.js +2 -6
  8. package/scripts/generators/inject-babysit.js +9 -2
  9. package/scripts/generators/inject-help.js +3 -1
  10. package/scripts/generators/inject-readme.js +7 -3
  11. package/scripts/generators/skill-registry.js +5 -5
  12. package/scripts/get-env.js +13 -12
  13. package/scripts/obtain-context.js +396 -185
  14. package/scripts/session-coordinator.sh +232 -0
  15. package/scripts/session-manager.js +512 -0
  16. package/src/core/agents/orchestrator.md +275 -0
  17. package/src/core/commands/adr.md +38 -16
  18. package/src/core/commands/agent.md +39 -22
  19. package/src/core/commands/assign.md +17 -0
  20. package/src/core/commands/auto.md +60 -46
  21. package/src/core/commands/babysit.md +302 -637
  22. package/src/core/commands/baseline.md +20 -0
  23. package/src/core/commands/blockers.md +33 -48
  24. package/src/core/commands/board.md +19 -0
  25. package/src/core/commands/changelog.md +20 -0
  26. package/src/core/commands/ci.md +17 -0
  27. package/src/core/commands/context.md +43 -40
  28. package/src/core/commands/debt.md +76 -45
  29. package/src/core/commands/deploy.md +20 -0
  30. package/src/core/commands/deps.md +40 -46
  31. package/src/core/commands/diagnose.md +24 -18
  32. package/src/core/commands/docs.md +18 -0
  33. package/src/core/commands/epic.md +31 -0
  34. package/src/core/commands/feedback.md +33 -21
  35. package/src/core/commands/handoff.md +29 -0
  36. package/src/core/commands/help.md +16 -7
  37. package/src/core/commands/impact.md +31 -61
  38. package/src/core/commands/metrics.md +17 -35
  39. package/src/core/commands/packages.md +21 -0
  40. package/src/core/commands/pr.md +15 -0
  41. package/src/core/commands/readme-sync.md +42 -9
  42. package/src/core/commands/research.md +58 -11
  43. package/src/core/commands/retro.md +42 -50
  44. package/src/core/commands/review.md +22 -27
  45. package/src/core/commands/session/end.md +53 -297
  46. package/src/core/commands/session/history.md +38 -257
  47. package/src/core/commands/session/init.md +44 -446
  48. package/src/core/commands/session/new.md +152 -0
  49. package/src/core/commands/session/resume.md +51 -447
  50. package/src/core/commands/session/status.md +32 -244
  51. package/src/core/commands/sprint.md +33 -0
  52. package/src/core/commands/status.md +18 -0
  53. package/src/core/commands/story-validate.md +32 -0
  54. package/src/core/commands/story.md +21 -6
  55. package/src/core/commands/template.md +18 -0
  56. package/src/core/commands/tests.md +22 -0
  57. package/src/core/commands/update.md +72 -58
  58. package/src/core/commands/validate-expertise.md +25 -37
  59. package/src/core/commands/velocity.md +33 -74
  60. package/src/core/commands/verify.md +16 -0
  61. package/src/core/experts/documentation/expertise.yaml +16 -2
  62. package/src/core/skills/agileflow-retro-facilitator/SKILL.md +57 -219
  63. package/src/core/skills/agileflow-retro-facilitator/cookbook/4ls.md +86 -0
  64. package/src/core/skills/agileflow-retro-facilitator/cookbook/glad-sad-mad.md +79 -0
  65. package/src/core/skills/agileflow-retro-facilitator/cookbook/start-stop-continue.md +142 -0
  66. package/src/core/skills/agileflow-retro-facilitator/prompts/action-items.md +83 -0
  67. package/src/core/skills/writing-skills/SKILL.md +352 -0
  68. package/src/core/skills/writing-skills/testing-skills-with-subagents.md +232 -0
  69. package/tools/cli/agileflow-cli.js +4 -2
  70. package/tools/cli/commands/config.js +20 -13
  71. package/tools/cli/commands/doctor.js +25 -9
  72. package/tools/cli/commands/list.js +10 -6
  73. package/tools/cli/commands/setup.js +54 -3
  74. package/tools/cli/commands/status.js +6 -8
  75. package/tools/cli/commands/uninstall.js +5 -5
  76. package/tools/cli/commands/update.js +51 -7
  77. package/tools/cli/installers/core/installer.js +8 -4
  78. package/tools/cli/installers/ide/_base-ide.js +3 -1
  79. package/tools/cli/installers/ide/claude-code.js +3 -7
  80. package/tools/cli/installers/ide/codex.js +440 -0
  81. package/tools/cli/installers/ide/manager.js +2 -6
  82. package/tools/cli/lib/content-injector.js +3 -3
  83. package/tools/cli/lib/docs-setup.js +3 -2
  84. package/tools/cli/lib/npm-utils.js +3 -3
  85. package/tools/cli/lib/ui.js +7 -7
  86. package/tools/cli/lib/version-checker.js +3 -3
  87. package/tools/postinstall.js +2 -3
@@ -23,7 +23,7 @@ node .agileflow/scripts/obtain-context.js validate-expertise
23
23
 
24
24
  **Purpose**: Expertise Validator - Validate agent expertise files to detect drift, staleness, and structural issues
25
25
 
26
- **Role**: Expertise Validator responsible for checking expertise.yaml files against codebase and best practices
26
+ **Role**: Validate expertise.yaml files against codebase and best practices (read-only validation)
27
27
 
28
28
  **Critical Rules**:
29
29
  - MUST run validation checks on all expertise files (or specific domain if provided)
@@ -34,64 +34,50 @@ node .agileflow/scripts/obtain-context.js validate-expertise
34
34
  - Non-destructive (read-only validation)
35
35
  - Report issues but don't auto-fix
36
36
  - Prioritize drift detection (most critical)
37
- - Keep output concise and actionable
38
37
 
39
38
  **Inputs** (optional):
40
- - DOMAIN=<domain-name> (validate specific domain, e.g., "database")
39
+ - `DOMAIN`: <domain-name> (validate specific domain, e.g., "database")
41
40
  - If no domain specified, validate all experts
42
41
 
43
42
  **Validation Checks**:
44
43
  1. **File Path Drift** - Check that all file paths referenced in expertise files still exist
44
+ - Grep for file paths: `grep -oE '(src|packages|lib)/[a-zA-Z0-9/_.-]+' expertise.yaml`
45
+ - Verify each path exists: `[ -f <path> ]`
45
46
  2. **Stale Learnings** - Flag expertise files not updated in 30+ days
47
+ - Extract `last_updated:` field from expertise.yaml
48
+ - Compare to current date
46
49
  3. **File Size Check** - Warn if expertise file exceeds 200 lines
47
- 4. **Required Sections** - Verify expertise.yaml has required structure:
48
- - domain: Domain identifier
49
- - mental_models: At least one mental model
50
- - learnings: Learning history (can be empty initially)
51
- - key_files: Important files for this domain
52
- - patterns: Common patterns and anti-patterns
50
+ - Count lines: `wc -l < expertise.yaml`
51
+ 4. **Required Sections** - Verify expertise.yaml has required YAML structure:
52
+ - domain, mental_models, learnings, key_files, patterns
53
53
 
54
54
  **Expertise File Location**: .agileflow/experts/<domain>/expertise.yaml
55
55
 
56
+ **Workflow**:
57
+ 1. Parse DOMAIN input (or default to all)
58
+ 2. For each domain: Read expertise.yaml → Run all 4 validation checks
59
+ 3. Collect results (PASS/FAIL/WARN)
60
+ 4. Generate summary report → Suggest remediation actions
61
+
62
+ **Example Usage**:
63
+ ```bash
64
+ /agileflow:validate-expertise
65
+ /agileflow:validate-expertise DOMAIN=database
66
+ ```
67
+
56
68
  **Output Format**:
57
69
  ```
58
- ======================================
59
70
  EXPERTISE VALIDATION REPORT
60
- ======================================
61
-
71
+ ============================
62
72
  Validating: database
63
73
  [PASS] File exists: expertise.yaml
64
74
  [PASS] Required sections present
65
75
  [WARN] 2 stale learnings (>30 days)
66
76
  [FAIL] DRIFT: src/old/database.ts not found
67
77
 
68
- --------------------------------------
69
- SUMMARY
70
- --------------------------------------
71
- Total domains: 25
72
- Passed: 23
73
- Warnings: 1
74
- Failures: 1
75
-
76
- RECOMMENDED ACTIONS:
77
- 1. Update database expertise - remove reference to src/old/database.ts
78
- 2. Review stale learnings in database domain
78
+ SUMMARY: Total: 25 | Passed: 23 | Warnings: 1 | Failures: 1
79
79
  ```
80
80
 
81
- **Workflow**:
82
- 1. Parse DOMAIN input (or default to all)
83
- 2. For each domain:
84
- - Read expertise.yaml
85
- - Run all 4 validation checks
86
- - Collect results
87
- 3. Generate summary report
88
- 4. Suggest remediation actions
89
-
90
- **Integration**:
91
- - Run automatically on session start (optional hook)
92
- - Run before major releases
93
- - Run after large refactors
94
-
95
81
  **Success Criteria**:
96
82
  - All expertise files validated
97
83
  - Drift issues identified
@@ -99,6 +85,8 @@ RECOMMENDED ACTIONS:
99
85
  - Actionable recommendations provided
100
86
  - Report generated and displayed
101
87
 
88
+ **Integration**: Session start hook, before major releases, after large refactors
89
+
102
90
  <!-- COMPACT_SUMMARY_END -->
103
91
 
104
92
  ## Prompt
@@ -22,93 +22,52 @@ This gathers git status, stories/epics, session state, and registers for PreComp
22
22
  <!-- COMPACT_SUMMARY_START -->
23
23
  ## Compact Summary
24
24
 
25
- **Purpose**: Velocity Analyst & Forecaster - Calculate team velocity, identify trends, and forecast epic/milestone completion dates
25
+ **Purpose**: Velocity Analyst & Forecaster - Calculate team velocity, identify trends, forecast epic/milestone completion
26
26
 
27
- **Role**: Velocity Analyst responsible for tracking story completion velocity and predicting delivery timelines
27
+ **Role**: Track story completion velocity and predict delivery timelines
28
28
 
29
29
  **Critical Rules**:
30
- - MUST parse bus/log.jsonl for "done" status changes
31
- - MUST match stories to estimates from frontmatter
32
- - MUST calculate over at least 3 time periods (for reliability)
33
- - MUST warn if sample size too small (<5 stories)
34
- - MUST exclude outliers (stories >3x avg) from velocity calc
35
- - MUST account for holidays/time off in forecasts
36
- - MUST update forecast confidence based on variance
30
+ - Parse bus/log.jsonl for "done" status changes (JSON parsing required)
31
+ - Match stories to estimates from frontmatter (YAML front matter)
32
+ - Calculate over at least 3 time periods (for reliability)
33
+ - Warn if sample size <5 stories
34
+ - Exclude outliers (stories >3x avg) from velocity calc
37
35
  - Save velocity history to docs/08-project/velocity/
38
36
 
39
37
  **Inputs** (optional):
40
- - PERIOD=week|sprint|month|all (default: sprint - last 2 weeks)
41
- - FORECAST=<EPIC_ID or milestone> (predict completion date)
42
- - FORMAT=report|chart|json (default: report)
38
+ - `PERIOD`: week|sprint|month|all (default: sprint)
39
+ - `FORECAST`: <EPIC_ID> (predict completion date)
40
+ - `FORMAT`: report|chart|json (default: report)
43
41
 
44
42
  **Data Sources**:
45
- 1. docs/09-agents/status.json - Current story state
46
- 2. docs/09-agents/bus/log.jsonl - Historical status changes
47
- 3. docs/06-stories/**/US-*.md - Story estimates and metadata
48
- 4. docs/05-epics/*.md - Epic definitions
49
- 5. docs/08-project/milestones.md - Milestone targets
43
+ 1. docs/09-agents/bus/log.jsonl - "done" status changes with timestamps
44
+ 2. docs/06-stories/**/US-*.md - Story estimates (frontmatter)
45
+ 3. docs/05-epics/*.md - Epic definitions
46
+ 4. docs/08-project/milestones.md - Milestone targets
50
47
 
51
- **Velocity Calculation**:
52
- ```
53
- Velocity = Total points completed / Number of time periods
54
- ```
48
+ **Key Formulas**:
49
+ - Velocity = Total points completed / Number of time periods
50
+ - Days to complete = (Remaining points / Velocity) * 7
51
+ - Confidence = 100% - (Std Dev / Velocity Avg) * 100
55
52
 
56
- Parse bus/log.jsonl for status changes to "done":
57
- ```json
58
- {"ts":"2025-10-10T10:00:00Z","type":"status","story":"US-0030","status":"done"}
59
- ```
60
-
61
- For each story, get estimate from frontmatter:
62
- ```yaml
63
- estimate: 1.5d
64
- ```
65
-
66
- Convert to points (1d = 1 point) and sum by time period.
67
-
68
- **Forecasting Algorithm**:
69
- ```
70
- Days to complete = (Remaining points / Velocity) * 7
71
- Completion date = Today + Days to complete
72
- Confidence = 100% - (Velocity std dev / Velocity avg) * 100
53
+ **Workflow**:
54
+ 1. Parse bus/log.jsonl → Extract "done" status changes with timestamps
55
+ 2. Match stories to frontmatter estimates → Convert to points (1d = 1pt)
56
+ 3. Group by time period (week/sprint) → Calculate velocity stats
57
+ 4. If FORECAST: Calculate remaining points → Forecast completion date
58
+ 5. Render report/chart Generate recommendations
59
+ 6. Save to docs/08-project/velocity/velocity-YYYYMMDD.md
60
+
61
+ **Example Usage**:
62
+ ```bash
63
+ /agileflow:velocity
64
+ /agileflow:velocity PERIOD=month FORECAST=EP-0010
65
+ /agileflow:velocity FORMAT=json
73
66
  ```
74
67
 
75
- **Report Sections**:
76
- 1. Current Velocity (average, trend, last sprint, best/worst)
77
- 2. Historical Velocity (chart, weekly breakdown, insights)
78
- 3. Velocity by Owner (points/week, utilization, trends)
79
- 4. Forecast: Epic Completion (stories, remaining, forecast date, confidence)
80
- 5. Risk Analysis (velocity risks, schedule risks)
81
- 6. Capacity Planning (current capacity, recommendations)
82
- 7. Velocity Goals (current, target, action items)
83
-
84
- **Output Formats**:
85
- - report: Full markdown velocity report with charts
86
- - chart: ASCII art velocity chart
87
- - json: Machine-readable velocity data
88
-
89
- **Workflow**:
90
- 1. Parse bus/log.jsonl for "done" status changes
91
- 2. Match stories to estimates from frontmatter
92
- 3. Group completions by time period (week/sprint)
93
- 4. Calculate velocity stats (avg, trend, std dev)
94
- 5. If FORECAST specified:
95
- - Calculate remaining points
96
- - Apply velocity to forecast completion
97
- - Calculate confidence level
98
- 6. Render report/chart
99
- 7. Suggest actions based on findings
68
+ **Output**: Full report with current velocity, historical trends, forecasts, risk analysis, capacity recommendations
100
69
 
101
- **Output Files**:
102
- - Velocity report: docs/08-project/velocity/velocity-YYYYMMDD.md
103
- - Optional: Update stakeholder dashboard
104
-
105
- **Success Criteria**:
106
- - Velocity calculated from at least 3 time periods
107
- - Trend analysis completed
108
- - Forecast provided (if requested)
109
- - Risk analysis included
110
- - Actionable recommendations provided
111
- - Report saved to velocity directory
70
+ **Success Criteria**: Velocity from 3+ periods, trend analysis, forecast (if requested), risk analysis, actionable recommendations
112
71
 
113
72
  <!-- COMPACT_SUMMARY_END -->
114
73
 
@@ -73,6 +73,22 @@ This gathers git status, stories/epics, session state, and registers for PreComp
73
73
  - Used by: /agileflow:session:resume, /agileflow:baseline
74
74
  - Uses: environment.json (config), status.json (story status), session-state.json (tracking)
75
75
 
76
+ **Tool Usage Examples**:
77
+
78
+ TodoWrite:
79
+ ```xml
80
+ <invoke name="TodoWrite">
81
+ <parameter name="content">1. Run pre-flight checks (session harness initialized)
82
+ 2. Load test configuration from environment.json
83
+ 3. Execute test command with timeout
84
+ 4. Parse test results (exit code + output)
85
+ 5. Update status.json with test_status
86
+ 6. Update session-state.json (if exists)
87
+ 7. Generate and display verification report</parameter>
88
+ <parameter name="status">in-progress</parameter>
89
+ </invoke>
90
+ ```
91
+
76
92
  <!-- COMPACT_SUMMARY_END -->
77
93
 
78
94
  ## Prompt
@@ -1,6 +1,6 @@
1
1
  domain: documentation
2
- last_updated: 2025-12-21
3
- version: 1.1
2
+ last_updated: 2025-12-24
3
+ version: 1.2
4
4
 
5
5
  # AgileFlow-specific documentation structure (learned from actual codebase)
6
6
  files:
@@ -132,3 +132,17 @@ learnings:
132
132
  context: "Analyzed research pattern"
133
133
  insight: "Research notes use YYYYMMDD-slug.md pattern in docs/10-research/"
134
134
  source: "docs/10-research/"
135
+
136
+ - date: 2025-12-24
137
+ context: "Generated command documentation (batch 4 - operations)"
138
+ insight: "Created 6 comprehensive operation command docs (ci, deploy, changelog, packages, tests, compress) following template with quick start, parameters, examples, workflow, output, and related commands sections"
139
+ created_files:
140
+ - "apps/docs/content/docs/commands/ci.mdx (155 lines)"
141
+ - "apps/docs/content/docs/commands/deploy.mdx (324 lines)"
142
+ - "apps/docs/content/docs/commands/changelog.mdx (329 lines)"
143
+ - "apps/docs/content/docs/commands/packages.mdx (377 lines)"
144
+ - "apps/docs/content/docs/commands/tests.mdx (449 lines)"
145
+ - "apps/docs/content/docs/commands/compress.mdx (375 lines)"
146
+ total_lines: 2009
147
+ source: "packages/cli/src/core/commands/*.md"
148
+ notes: "All files follow consistent documentation template: frontmatter, quick start, purpose, parameters table, examples with explanations, workflow steps, output/files, and related commands"
@@ -16,9 +16,60 @@ This skill activates when:
16
16
  - Gathering team feedback
17
17
  - Running sprint reviews
18
18
 
19
+ ## Variables
20
+
21
+ - default_format: start-stop-continue
22
+ - track_action_items: true
23
+ - include_metrics: true
24
+ - save_to_docs: true
25
+
26
+ ## Cookbook
27
+
28
+ Based on the context, select the appropriate retro format:
29
+
30
+ ### Start/Stop/Continue (Default)
31
+ If running a standard sprint retrospective:
32
+ Then read and execute cookbook/start-stop-continue.md
33
+
34
+ Examples:
35
+ - "run a retro for sprint 5"
36
+ - "sprint retrospective"
37
+ - "what went well this sprint?"
38
+ - "let's do a retro"
39
+
40
+ ### Glad/Sad/Mad
41
+ If discussing team dynamics, emotions, or interpersonal issues:
42
+ Then read cookbook/glad-sad-mad.md
43
+
44
+ Examples:
45
+ - "the team seems frustrated"
46
+ - "morale is low, let's talk about it"
47
+ - "team dynamics retro"
48
+ - "emotional check-in"
49
+ - "glad sad mad retro"
50
+
51
+ ### 4Ls (Liked, Learned, Lacked, Longed For)
52
+ If focusing on learning and growth:
53
+ Then read cookbook/4ls.md
54
+
55
+ Examples:
56
+ - "learning retrospective"
57
+ - "what did we learn this sprint?"
58
+ - "growth-focused retro"
59
+ - "4Ls retro"
60
+ - "liked learned lacked longed"
61
+
62
+ ## Workflow
63
+
64
+ 1. Identify which format to use (check user request against Cookbook)
65
+ 2. Read the appropriate cookbook file for detailed template
66
+ 3. Gather feedback using that format's structure
67
+ 4. Create SMART action items (read prompts/action-items.md for guidance)
68
+ 5. Document in docs/08-project/retros/
69
+
19
70
  ## What This Does
20
71
 
21
- 1. Structures retrospective using Start/Stop/Continue format
72
+ 1. Structures retrospective using the selected format
22
73
  2. Gathers feedback on what went well and what didn't
23
74
  3. Identifies patterns and root causes
24
75
  4. Creates SMART action items with owners and due dates
@@ -31,19 +82,17 @@ This skill activates when:
31
82
  - Review sprint metrics (velocity, completion rate)
32
83
  - Check previous action items
33
84
 
34
- 2. **Gather feedback**:
35
- - What went well?
36
- - What didn't go well?
37
- - What should we start doing?
38
- - What should we stop doing?
39
- - What should we continue doing?
85
+ 2. **Gather feedback** (using selected format):
86
+ - Use the cookbook file template
87
+ - Ensure all voices are heard
88
+ - Time-box each section
40
89
 
41
90
  3. **Identify patterns**:
42
91
  - Group similar feedback
43
92
  - Find root causes
44
93
  - Spot recurring themes
45
94
 
46
- 4. **Create action items**:
95
+ 4. **Create action items** (see prompts/action-items.md):
47
96
  - Specific, actionable steps
48
97
  - Assign owners
49
98
  - Set due dates
@@ -54,217 +103,6 @@ This skill activates when:
54
103
  - Share with team
55
104
  - Add action items to backlog if needed
56
105
 
57
- ## Retro Format (Start/Stop/Continue)
58
-
59
- ```markdown
60
- # Sprint [Number] Retrospective
61
-
62
- **Date**: YYYY-MM-DD
63
- **Facilitator**: [Name]
64
- **Attendees**: [Team members present]
65
- **Sprint Duration**: [Start] - [End]
66
-
67
- ## Sprint Metrics
68
-
69
- - **Committed**: X story points
70
- - **Completed**: Y story points
71
- - **Velocity**: Z%
72
- - **Stories Done**: A / B
73
- - **Bugs Found**: C
74
-
75
- ## What Went Well ✅
76
-
77
- - [Positive 1: Specific thing that worked]
78
- - [Positive 2: Team success]
79
- - [Positive 3: Process improvement]
80
-
81
- ## What Didn't Go Well ❌
82
-
83
- - [Challenge 1: Specific problem]
84
- - [Challenge 2: Blocker or delay]
85
- - [Challenge 3: Process issue]
86
-
87
- ## Start (New Practices) 🟢
88
-
89
- - **[Practice 1]**
90
- - Why: [Reasoning]
91
- - Owner: [Who will drive this]
92
- - Success metric: [How we'll measure]
93
-
94
- ## Stop (Remove Practices) 🔴
95
-
96
- - **[Practice 1]**
97
- - Why it's not working: [Reasoning]
98
- - Alternative: [What we'll do instead]
99
-
100
- ## Continue (Keep Doing) 🟡
101
-
102
- - **[Practice 1]**
103
- - Why it's working: [Reasoning]
104
- - How to maintain: [Keep it going]
105
-
106
- ## Action Items
107
-
108
- - [ ] **[Action 1]** - @Owner - Due: [Date]
109
- - Success criteria: [How we know it's done]
110
-
111
- - [ ] **[Action 2]** - @Owner - Due: [Date]
112
- - Success criteria: [How we know it's done]
113
-
114
- ## Previous Action Items Review
115
-
116
- - [✅] **[Completed Action]** - Implemented, improved X by Y%
117
- - [🔄] **[In Progress Action]** - Still working on it, 60% done
118
- - [❌] **[Not Done Action]** - Blocked by Z, rolling to next sprint
119
-
120
- ## Key Insights
121
-
122
- 1. [Insight 1: Pattern or learning]
123
- 2. [Insight 2: Team dynamic observation]
124
- 3. [Insight 3: Process discovery]
125
- ```
126
-
127
- ## Retro Formats
128
-
129
- Choose based on context:
130
-
131
- **Start/Stop/Continue**: Best for regular sprint retros
132
-
133
- **Glad/Sad/Mad**: Best for emotional topics, team dynamics
134
- ```markdown
135
- ## Glad 😊
136
- - [Things that made us happy]
137
-
138
- ## Sad 😔
139
- - [Things that disappointed us]
140
-
141
- ## Mad 😡
142
- - [Things that frustrated us]
143
- ```
144
-
145
- **4Ls (Liked, Learned, Lacked, Longed For)**: Best for learning-focused retros
146
- ```markdown
147
- ## Liked 👍
148
- - [What we enjoyed]
149
-
150
- ## Learned 💡
151
- - [New knowledge or skills]
152
-
153
- ## Lacked ⚠️
154
- - [What was missing]
155
-
156
- ## Longed For 🌟
157
- - [What we wish we had]
158
- ```
159
-
160
- ## Good vs Bad Feedback
161
-
162
- **Good (Specific, Actionable)**:
163
- ```
164
- ✅ "Daily standups ran long (20+ min) because we discussed
165
- implementation details. Consider moving technical discussions
166
- to separate sessions."
167
-
168
- ✅ "Code reviews were faster this sprint (avg 4 hours vs 24 hours
169
- last sprint) thanks to smaller PR sizes."
170
- ```
171
-
172
- **Bad (Vague, Blame-Oriented)**:
173
- ```
174
- ❌ "Meetings were bad"
175
- ❌ "Bob didn't do his job"
176
- ❌ "Everything was terrible"
177
- ❌ "Process is broken"
178
- ```
179
-
180
- ## SMART Action Items
181
-
182
- - **S**pecific: Clear what needs to be done
183
- - **M**easurable: Can verify it's complete
184
- - **A**ssignable: Has an owner
185
- - **R**elevant: Addresses the issue
186
- - **T**ime-bound: Has a deadline
187
-
188
- **Example**:
189
- ```
190
- ✅ Good:
191
- - [ ] **Create PR size guideline** - @TechLead - Due: Before next sprint
192
- - Success: Document written, shared with team, added to CLAUDE.md
193
- - Metric: 80% of PRs under 300 lines
194
-
195
- ❌ Bad:
196
- - [ ] Fix code reviews
197
- ```
198
-
199
- ## Metrics to Track
200
-
201
- **Sprint Health**:
202
- - Velocity trend (increasing, stable, decreasing?)
203
- - Commitment accuracy (completed vs committed)
204
- - Bug count (increasing, decreasing?)
205
- - Blocker frequency
206
-
207
- **Team Health**:
208
- - Meeting effectiveness
209
- - Communication quality
210
- - Collaboration level
211
- - Work-life balance
212
-
213
- **Process Health**:
214
- - Cycle time (story start to done)
215
- - Code review turnaround
216
- - Deployment frequency
217
- - Incident count
218
-
219
- ## Common Themes to Watch For
220
-
221
- **Positive Patterns**:
222
- - Consistent velocity
223
- - Low bug count
224
- - Fast code reviews
225
- - Clear requirements
226
- - Good collaboration
227
-
228
- **Warning Signs**:
229
- - Declining velocity
230
- - Recurring blockers
231
- - Communication issues
232
- - Scope creep
233
- - Burnout indicators
234
-
235
- ## Facilitator Tips
236
-
237
- **Do**:
238
- - Create safe space for honest feedback
239
- - Focus on process, not people
240
- - Time-box discussions (5-10 min per topic)
241
- - Ensure everyone participates
242
- - End on positive note
243
- - Follow up on action items
244
-
245
- **Don't**:
246
- - Blame individuals
247
- - Let discussions run too long
248
- - Skip retros ("too busy")
249
- - Create action items without owners
250
- - Ignore previous action items
251
-
252
- ## Remote Retro Adaptations
253
-
254
- For distributed teams:
255
- - Use anonymous feedback tools (Retrium, Metro Retro)
256
- - Give time for async reflection before meeting
257
- - Use polls/voting for prioritization
258
- - Record session for absent team members
259
- - Use collaborative docs for brainstorming
260
-
261
- ## Frequency Guidelines
262
-
263
- - **Every sprint**: Standard retros (60-90 min)
264
- - **Major milestones**: Extended retros (2-3 hours)
265
- - **Quarterly**: Big-picture retros (process, tools, culture)
266
- - **Post-incident**: Blameless postmortems (as needed)
267
-
268
106
  ## Integration
269
107
 
270
108
  - **agileflow-sprint-planner**: Retro insights inform next sprint planning
@@ -0,0 +1,86 @@
1
+ # 4Ls Retrospective Format
2
+
3
+ Best for learning-focused retros. Use when emphasizing growth, skill development, or process discovery.
4
+
5
+ ## When to Use
6
+
7
+ - After learning sprints or experiments
8
+ - When onboarding new team members
9
+ - Quarterly or milestone retros
10
+ - After trying new tools or processes
11
+ - When team wants to focus on growth
12
+
13
+ ## Template
14
+
15
+ ```markdown
16
+ # 4Ls Retrospective
17
+
18
+ **Date**: YYYY-MM-DD
19
+ **Facilitator**: [Name]
20
+ **Attendees**: [Team members present]
21
+ **Focus**: [Learning theme or milestone]
22
+
23
+ ## Liked (What we enjoyed)
24
+
25
+ - [Liked 1: Enjoyable aspect of work]
26
+ - [Liked 2: Positive experience]
27
+ - [Liked 3: Successful collaboration]
28
+
29
+ ## Learned (New knowledge or skills)
30
+
31
+ - [Learned 1: Technical skill acquired]
32
+ - [Learned 2: Process insight]
33
+ - [Learned 3: Team dynamic discovery]
34
+
35
+ ## Lacked (What was missing)
36
+
37
+ - [Lacked 1: Resource or tool needed]
38
+ - [Lacked 2: Knowledge gap]
39
+ - [Lacked 3: Support or guidance needed]
40
+
41
+ ## Longed For (What we wish we had)
42
+
43
+ - [Longed 1: Ideal state or tool]
44
+ - [Longed 2: Process improvement]
45
+ - [Longed 3: Future capability]
46
+
47
+ ## Key Learnings to Document
48
+
49
+ | Learning | Source | How to Apply |
50
+ |----------|--------|--------------|
51
+ | [Learning 1] | [Sprint/Project] | [Next steps] |
52
+ | [Learning 2] | [Sprint/Project] | [Next steps] |
53
+
54
+ ## Action Items
55
+
56
+ - [ ] **Address [Lacked item]** - @Owner - Due: [Date]
57
+ - [ ] **Move toward [Longed For item]** - @Owner - Due: [Date]
58
+ - [ ] **Document [Learned item]** - @Owner - Due: [Date]
59
+
60
+ ## Knowledge Sharing Plan
61
+
62
+ - [How will learnings be shared with broader team?]
63
+ - [Documentation to create?]
64
+ - [Training or pairing sessions?]
65
+ ```
66
+
67
+ ## Facilitation Notes
68
+
69
+ **Focus on Growth**:
70
+ - Emphasize that gaps are opportunities, not failures
71
+ - Celebrate learning moments, even from mistakes
72
+ - Connect learnings to future improvements
73
+
74
+ **Timing**:
75
+ - Liked: 10 minutes
76
+ - Learned: 15 minutes
77
+ - Lacked: 10 minutes
78
+ - Longed For: 10 minutes
79
+ - Action Items: 10 minutes
80
+ - Total: ~55 minutes
81
+
82
+ **Tips**:
83
+ - "Learned" is the heart of this format - spend time here
84
+ - Turn "Lacked" into specific asks, not complaints
85
+ - "Longed For" should inspire, not depress
86
+ - Create concrete knowledge-sharing actions