Prompt file imported from TheLobbi/lobbi-design-system (
.claude/commands/retro.md). Fill in{{JIRA_URL}},{{CONFLUENCE_URL}}before use. Copyright stays with the author.
Retrospective Command
Facilitate sprint retrospective and capture action items.
Instructions
1. Setup
```bash export JIRA_URL="{{JIRA_URL}}" export JIRA_AUTH=$(echo -n "$JIRA_EMAIL:$JIRA_API_TOKEN" | base64) export CONFLUENCE_URL="{{CONFLUENCE_URL}}" export CONFLUENCE_AUTH=$(echo -n "$CONFLUENCE_EMAIL:$CONFLUENCE_API_TOKEN" | base64) ```
2. Get Sprint Metrics
```bash
Sprint summary for context
SPRINT_NAME="Sprint 10"
echo "=== Sprint $SPRINT_NAME Summary ==="
Velocity
curl -s -X POST "$JIRA_URL/rest/api/3/search"
-H "Authorization: Basic $JIRA_AUTH"
-H "Content-Type: application/json"
-d "{
"jql": "project = GA AND sprint = '$SPRINT_NAME' AND type = Story AND status = Done",
"fields": ["customfield_10016"]
}" | jq '{completed_points: [.issues[].fields.customfield_10016 // 0] | add}'
Completion rate
curl -s -X POST "$JIRA_URL/rest/api/3/search"
-H "Authorization: Basic $JIRA_AUTH"
-H "Content-Type: application/json"
-d "{
"jql": "project = GA AND sprint = '$SPRINT_NAME'",
"fields": ["status"]
}" | jq '{
total: .total,
done: [.issues[] | select(.fields.status.name == "Done")] | length,
completion_rate: (([.issues[] | select(.fields.status.name == "Done")] | length) / .total * 100 | floor)
}'
Bugs found
curl -s -X POST "$JIRA_URL/rest/api/3/search"
-H "Authorization: Basic $JIRA_AUTH"
-H "Content-Type: application/json"
-d "{
"jql": "project = GA AND type = Bug AND created >= -14d"
}" | jq '{bugs_found: .total}'
```
3. Get Previous Action Items
```bash
Check previous retro action items
echo ""
echo "=== Previous Action Items Status ==="
curl -s -X POST "$JIRA_URL/rest/api/3/search"
-H "Authorization: Basic $JIRA_AUTH"
-H "Content-Type: application/json"
-d '{
"jql": "project = GA AND labels = retro-action ORDER BY created DESC",
"fields": ["summary", "status", "assignee"],
"maxResults": 10
}' | jq '.issues[] | "(.key): (.fields.summary) - (.fields.status.name)"'
```
4. Retrospective Templates
Start/Stop/Continue
```markdown
Sprint [X] Retrospective
Date: [Date] Facilitator: [Name] Participants: [Names]
🚀 Start Doing
Things we should begin doing 1. 2. 3.
🛑 Stop Doing
Things that aren't working 1. 2. 3.
✅ Continue Doing
Things that are working well 1. 2. 3. ```
4Ls Format
```markdown
Sprint [X] Retrospective - 4Ls
👍 Liked
What went well
📚 Learned
What we learned
🔍 Lacked
What was missing
🌟 Longed For
What we wished we had
```
Sailboat Format
```markdown
Sprint [X] Retrospective - Sailboat
⛵ Wind (Propelling Us Forward)
What's helping us move faster
⚓ Anchor (Holding Us Back)
What's slowing us down
🪨 Rocks (Risks Ahead)
What risks do we see
🏝️ Island (Our Goal)
Where we want to be
```
5. Create Action Items in Jira
```bash
Create action item from retrospective
curl -X POST "$JIRA_URL/rest/api/3/issue"
-H "Authorization: Basic $JIRA_AUTH"
-H "Content-Type: application/json"
-d '{
"fields": {
"project": {"key": "GA"},
"issuetype": {"name": "Task"},
"summary": "[Retro] Action item description",
"description": {
"type": "doc",
"version": 1,
"content": [{"type": "paragraph", "content": [{"type": "text", "text": "From Sprint X retrospective"}]}]
},
"labels": ["retro-action", "process-improvement"],
"priority": {"name": "Medium"}
}
}'
```
6. Create Confluence Page
```bash
Create retrospective documentation
SPACE_KEY="GA" SPRINT_NAME="Sprint 10"
CONTENT=$(cat <<'EOF' <ac:structured-macro ac:name="info"> ac:rich-text-body Date: [DATE] Facilitator: [NAME] Format: Start/Stop/Continue </ac:rich-text-body> </ac:structured-macro>
Task("Confluence Specialist", "Create $SPRINT_NAME Retrospective page", "confluence-specialist") ```
Retrospective Facilitation Tips
```markdown
Prime Directive
Read at the start of every retro:
"Regardless of what we discover, we understand and truly believe that everyone did the best job they could, given what they knew at the time, their skills and abilities, the resources available, and the situation at hand."
Vegas Rule
"What happens in the retro stays in the retro" (Unless it's an action item)
Facilitation Guidelines
- Everyone participates
- No blame, focus on process
- Time-box discussions
- Vote on topics to discuss
- Actionable outcomes only
- Assign owners to every action
- Follow up next retro ```
Options
--format [start-stop-continue|4ls|sailboat|mad-sad-glad]--sprint "Sprint Name"--create-page- Auto-create Confluence page--create-actions- Create Jira issues for actions
