/pm-skills:sprint-retrospectivefrom pm-skills
Mines git history to generate data-driven sprint retrospective reports with velocity, cycle/lead time, contributor insights, and churn hotspot analysis.
Ships in pm-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The agent acts as a data-driven retrospective facilitator that mines git history, PR metadata, and commit patterns to generate comprehensive sprint retrospective reports. It goes beyond simple commit counts — analyzing velocity trends, contributor work patterns, code health indicators, and team collaboration dynamics to surface actionable insights. Four stdlib Python tools (velocity, contributor, churn, report generator) chain into a single pipeline.
Keywords: sprint retrospective, velocity analytics, contributor insights, code churn, work sessions, cycle time, lead time, throughput, burndown, team health, collaboration metrics, bus factor, refactor ratio, hotspot analysis, conventional commits, session detection, deep work, improvement tracking
Before generating the retro report, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
--days or --since/--until (defines which commits count; the wrong window skews velocity and cycle-time).Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Three tools read git history (velocity_analyzer.py, contributor_insights.py, code_churn_analyzer.py: each takes --days N or --since/--until YYYY-MM-DD, --repo PATH, -f text|json). retro_report_generator.py reads their JSON output and writes the markdown report (-v velocity JSON, required; -c contributors; -u churn; --previous-retro last report for action-item carry-over; --previous-velocity for deltas; -s sprint name; -o output file; --save DIR snapshot).
# Try the report without a repo: the samples are the three tools' JSON for a 3-person sprint
python3 project-management/sprint-retrospective/scripts/retro_report_generator.py \
-v project-management/sprint-retrospective/assets/sample_velocity.json \
-c project-management/sprint-retrospective/assets/sample_contributors.json \
-u project-management/sprint-retrospective/assets/sample_churn.json \
--previous-retro project-management/sprint-retrospective/assets/sample_previous_retro.md -s "Sprint 23"
# Full pipeline on a real repo, last 14 days (JSON goes to a temp dir, not the repo)
S=project-management/sprint-retrospective/scripts; OUT=$(mktemp -d)
python3 $S/velocity_analyzer.py --days 14 --repo . -f json > $OUT/v.json
python3 $S/contributor_insights.py --days 14 --repo . -f json > $OUT/c.json
python3 $S/code_churn_analyzer.py --days 14 --repo . -f json > $OUT/ch.json
python3 $S/retro_report_generator.py -v $OUT/v.json -c $OUT/c.json -u $OUT/ch.json -s "Sprint 23" -o $OUT/retro.md
On the sample the report flags churn rate 0.34 and hotspot concentration 0.32 as attention areas, one single-owner directory, and two of three previous action items still open.
Exit codes: 0 report produced · 2 not a repository, an invalid --since/--until date, or a report input that is missing, unreadable or not the tools' JSON. The tools report; they do not gate.
Mistake: Someone runs the pipeline, writes conclusions from the report alone and sends them out as the retro.
Why it happens: The git analysis produces a full narrative report, so the retro looks done already.
Instead: Use the report as the data input to a live retro with the team (see references/retrospective_facilitation.md). The conclusions come out of that conversation. A retro doc with one author and no team input means a real retro still has to happen.
Mistake: The retro output says " did not finish the integration in time, which blocked the sprint."
Why it happens: Per-person data from contributor_insights.py makes it easy to tie a slip to one name.
Instead: Rewrite any line that names a person and a fault as a root cause and a systemic fix. Use contributor data for patterns such as bus-factor risk, not for blame. Once blame appears, nobody admits anything at the next retro.
Mistake: "Improve cross-team comms" appears as the action item three sprints running. Why it happens: The item is vague enough that everyone agrees with it and too vague for anyone to act on. Instead: Save a snapshot each sprint so carry-over shows repeats. If the wording repeats, root-cause the problem instead of re-adding it. Give each new action an owner, a due date and a definition of done.
Seven more, each with a bad and a good example: references/red-flags.md.
Load the reference that matches the task — keep this file lean and pull detail on demand:
In Scope: Git history analysis for velocity, contributor, and code churn metrics; session detection via commit-timestamp gaps; commit-type classification via conventional-commit prefixes; markdown report generation with executive summary, dashboards, and action-item tracking; sprint-over-sprint comparison; bus factor and knowledge-silo identification.
Out of Scope: Sprint planning and capacity calculation (see scrum-master/); JSON-based planned-vs-completed point analysis (see scrum-master/velocity_analyzer.py); product-level OKR/roadmap management (see execution/); code quality beyond churn (no static analysis or coverage measurement); Jira/Linear ticket-level cycle time (this skill uses git merge commits as proxy).
Important Caveats: All metrics derive from git history only — squash merges lose branch-level cycle-time data. Session detection is a heuristic on commit timestamps, not measured focus time. Per the Scrum Guide 2020, this skill treats velocity as a diagnostic signal, not a performance target; flow metrics (cycle time, throughput, WIP) are first-class. Rotate facilitation formats every 3-5 sprints to prevent staleness.
| Integration | Direction | Description |
|---|---|---|
scrum-master/ | Complements | Git-based velocity supplements JSON-based sprint data; cross-reference for fuller picture |
senior-pm/ | Feeds into | Retro velocity trends inform executive reporting and portfolio health dashboards |
delivery-manager/ | Feeds into | Velocity trends help forecast sprint capacity and release timing |
agile-coach/ | Feeds into | Retro trend data identifies systemic patterns for coaching interventions |
execution/release-notes/ | Feeds into | Sprint commit data and type distribution inform release note generation |
| CI/CD Workflows | Automated | GitHub Actions runs the 4-tool pipeline on a cron schedule (see workflows reference) |
.retro-history/ | Bidirectional | Save sprint snapshots for trend tracking; load previous snapshots for comparison |
| File | Purpose |
|---|---|
scripts/velocity_analyzer.py | Throughput, cycle/lead time, commit types, sessions |
scripts/contributor_insights.py | Specialization, sessions, collaboration and bus-factor data |
scripts/code_churn_analyzer.py | Hotspots, directory churn, health indicators, refactoring candidates |
scripts/retro_report_generator.py | Markdown retro report from the three JSON outputs |
assets/sample_velocity.json, assets/sample_contributors.json, assets/sample_churn.json | Tool-shaped outputs for a sample sprint |
assets/sample_previous_retro.md | Previous retro with action items for carry-over |
assets/retro_report_template.md | Report template |
assets/retro_report_template.md (opens in a new tab)assets/sample_churn.json (opens in a new tab)assets/sample_contributors.json (opens in a new tab)assets/sample_previous_retro.md (opens in a new tab)assets/sample_velocity.json (opens in a new tab)examples/sprint-23-data-driven-retro.md (opens in a new tab)references/red-flags.md (opens in a new tab)references/retrospective_facilitation.md (opens in a new tab)references/velocity_benchmarks.md (opens in a new tab)references/workflows-and-output.md (opens in a new tab)scripts/code_churn_analyzer.py (opens in a new tab)scripts/contributor_insights.py (opens in a new tab)scripts/retro_report_generator.py (opens in a new tab)scripts/velocity_analyzer.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub borghei/claude-skills --plugin pm-skills15 skills in this plugin
/agile-coachExpert agile coaching: framework selection, maturity assessment, retrospective facilitation, transformation roadmaps. Use when selecting an agile framework, coaching teams, facilitating retrospectives, or designing a transformation.
/atlassian-adminPlans and audits Atlassian Cloud or Data Center administration: users, SSO, permissions, licences and instance health. Use when onboarding or offboarding users, auditing access, cutting licence cost or planning a DC exit.
/atlassian-templatesBuilds, validates and retires reusable Jira issue and Confluence page templates. Use when creating a team or org-wide template, a template is ignored or half-filled, or a template library has sprawled. Space layout is confluence-expert.
/confluence-expertDesigns and audits Confluence spaces: page trees, labels, permissions, page ownership and stale content. Use when setting up or restructuring a space, a wiki has gone stale or duplicated, or labels are a mess.
/delivery-managerPlans releases, picks deployment strategies, runs incidents and tracks DORA metrics and error budgets. Use when preparing a Go/No-Go, choosing canary or blue-green, handling a production incident or reporting delivery health.
/jira-expertConfigures Jira projects, workflows, boards, JQL, automation and dashboards, and audits board, issue and workflow exports. Use when setting up or fixing Jira, writing or debugging JQL, or designing automation rules.
Other plugins' skills for the same job