/nanopm:pm-retrofrom nanopm
Compares roadmap NOW items against actual commits since last run. Surfaces what shipped, what drifted, and what to carry forward. Closes the planning loop.
Ships in nanopm. 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.
None: SKILL.md is the whole skill.
Multi-host portability rules. When invoking
AskUserQuestion:
- The
headerfield MUST be a short noun phrase (≤ 12 characters). Mistral Vibe rejects longer headers withstring_too_long. Pick from:Start,Target,Scope,Audience,Methodology,Feature,Question.- The
optionslist MUST have at least 2 items. Vibe rejects empty/single-option calls. For free-text input, always provide ≥ 2 framing options (e.g.Yes, here's the input/Skip) — never callask_user_questionwithoptions: [].
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || \
source .nanopm/lib/nanopm.sh 2>/dev/null || \
{ echo "ERROR: nanopm not installed. Run: curl -fsSL https://raw.githubusercontent.com/nmrtn/nanopm/main/setup | bash"; exit 1; }
nanopm_preamble
_RETRO_FILE="$(nanopm_wiki_doc_path "retro-$(date +%F)")"
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
nanopm_context_read pm-retro
If prior retro found: "Prior retro from {ts}. This run covers commits since then."
Pull the specific OKRs and open opportunities before the full query — so the retro compares commits against measurable key results, not just broad plan summaries:
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
nanopm_wiki_search "objective key result okr goal" objective 5
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
nanopm_wiki_search "roadmap carry-forward shipped" doc 3
For each result, Read the full page (path column). Hold the specific KRs — use them in Phase 4 to check whether commits moved any measurable needle, not just whether they loosely map to a roadmap label.
The retro compares the planned work (the roadmap) against the actual work (git history). Pull the planned side through the query primitive — one read-side call that synthesizes the roadmap's current items, instead of reading the page directly (the recipe pattern). You reason over the cited synthesis the query returns. Print the prompt and dispatch it with the Agent tool (one subagent); on a host with no Agent tool, follow its steps inline.
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
nanopm_query_prompt "For a PM retrospective, synthesize from the wiki: the current roadmap's NOW items and any planned/NEXT items (the planned work to compare against actual git history — list each item verbatim so it can be matched to commits and copied forward if unshipped), plus any latest challenge-session context that frames whether the plan is still the right plan. Cite each claim, and name what's missing rather than inventing it." none
This synthesis is the planned side of the retro — hold the NOW/NEXT items for Phase 4. If it surfaces neither a roadmap nor a challenge session: "No roadmap or challenges page found in the wiki (.nanopm/wiki/docs/). Run /pm-challenge-me and /pm-roadmap first to get full retro value. Continuing with git history only."
Then confirm this is a git repo — the actual side of the comparison:
[ -d ".git" ] && echo "GIT_REPO" || echo "NOT_GIT_REPO"
If NOT_GIT_REPO: "This directory is not a git repo — can't read commit history. Run git init or navigate to your project root."
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
# When was the roadmap last written? Use as retro start point. Anchor on the wiki
# page, falling back to the legacy flat file so older history still resolves.
_ROADMAP="$(nanopm_wiki_doc_path roadmap)"; [ -f "$_ROADMAP" ] || _ROADMAP=".nanopm/wiki/docs/roadmap.md"
_ROADMAP_COMMIT=$(git log --oneline -1 -- "$_ROADMAP" .nanopm/wiki/docs/roadmap.md 2>/dev/null | awk '{print $1}')
_CHALLENGES="$(nanopm_wiki_doc_path challenges)"; [ -f "$_CHALLENGES" ] || _CHALLENGES=".nanopm/wiki/docs/challenges.md"; [ -f "$_CHALLENGES" ] || _CHALLENGES=".nanopm/AUDIT.md" # legacy pre-rename name
_CHALLENGES_COMMIT=$(git log --oneline -1 -- "$_CHALLENGES" 2>/dev/null | awk '{print $1}')
if [ -n "$_ROADMAP_COMMIT" ]; then
echo "WINDOW_START: $_ROADMAP_COMMIT"
_COMMITS=$(git log --oneline "${_ROADMAP_COMMIT}..HEAD" 2>/dev/null)
_COMMIT_COUNT=$(git rev-list --count "${_ROADMAP_COMMIT}..HEAD" 2>/dev/null || echo 0)
else
# Fall back to last 30 commits if no roadmap commit found
echo "WINDOW_START: last 30 commits (no roadmap anchor)"
_COMMITS=$(git log --oneline -30 2>/dev/null)
_COMMIT_COUNT=30
fi
echo "COMMITS_IN_WINDOW: $_COMMIT_COUNT"
echo "$_COMMITS"
Tell the user: "Reviewing {N} commits since roadmap was written {date or 'recently'}."
The planned work is already in hand — the Phase 1 query synthesis carries the roadmap's NOW items (and any NEXT items that may have been pulled forward early), each listed verbatim. Hold those for the comparison below; no second read of the roadmap page is needed.
Analyze the commit messages from Phase 2 against the roadmap items from Phase 1.
For each roadmap NOW item, classify as:
Also identify:
Be specific: quote commit messages when attributing work. Don't guess — if a commit is ambiguous, mark it as unclear.
If the commit messages are ambiguous about intent (e.g., very terse messages), ask via AskUserQuestion:
"A few commits weren't clear from message alone — can you tell me what {commit X} was about? (e.g., 'that was the payment flow refactor' or 'skip — it was minor cleanup')"
Only ask if genuinely unclear. Skip if all commits are parseable. Max one question.
Retros are dated wiki docs — one page per retro, so history is preserved across cycles (each run writes a new retro-YYYY-MM-DD.md, never overwriting prior retros).
Write the page to $(nanopm_wiki_doc_path "retro-$(date +%F)") (i.e. .nanopm/wiki/docs/retro-YYYY-MM-DD.md). The file begins with the frontmatter emitted by nanopm_wiki_doc_frontmatter pm-retro evidence-backed "$(date +%Y-%m-%d)" "{sources}" (substitute the real docs/connectors used — roadmap, git log, challenges — for {sources}), immediately followed by the body below:
# PM Retrospective
Generated by /pm-retro on {date}
Project: {slug}
Window: {N} commits ({start date or commit} → HEAD)
---
## What Shipped
{For each shipped roadmap item: item name + supporting commit(s). Be specific.}
| Item | Status | Evidence |
|------|--------|----------|
| {item} | ✅ Shipped | {commit sha/msg} |
| {item} | 🔄 In progress | {commit sha/msg} |
| {item} | ❌ Not started | — |
---
## Unplanned Work
{Commits that weren't in the roadmap. Be neutral — unplanned ≠ bad.
Sometimes the right thing appears and you do it. But flag the pattern if it's >30% of commits.}
{list commits with one-line interpretation}
---
## Drift Signal
{If >30% of commits are off-roadmap: flag it. Name the pattern.
If the strategy or challenge session is stale: call it out.
If carry-forward items outnumber shipped items: flag capacity/planning issue.
If nothing to flag: "No significant drift — execution is tracking the plan."}
---
## Carry Forward
{NOW items not shipped that should move into the next cycle. Copy them here verbatim
from the roadmap page so the next /pm-roadmap run can pull them in.}
- {item from the roadmap page's NOW section}
---
## Recommended Next Skill
**Run: /pm-roadmap**
Update your roadmap with carry-forward items and new priorities from this retro.
---
*Sources: roadmap page, git log, challenges page (if present)*
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
_RETRO_FILE="$(nanopm_wiki_doc_path "retro-$(date +%F)")"
nanopm_context_append "{\"skill\":\"pm-retro\",\"outputs\":{\"shipped\":\"$(grep -c '✅' "$_RETRO_FILE" 2>/dev/null || echo 0) items shipped\",\"window_commits\":\"${_COMMIT_COUNT:-?} commits\",\"next\":\"pm-roadmap\"}}"
nanopm_wiki_doc_log pm-retro "wrote docs/$(basename "$_RETRO_FILE")" # global heartbeat: this page write -> wiki/log.md
Tell the user:
.nanopm/wiki/docs/retro-YYYY-MM-DD.md (one page per retro — prior retros are preserved)/pm-roadmapSTATUS: DONE
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nmrtn/nanopm --plugin nanopm26 skills in this plugin
/pm-add-feedbackThe single ingestion door for raw user signal. Accepts a file path, pasted text (--paste), or a connector source (Granola, Dovetail, Google Drive, tickets), archives it verbatim under .nanopm/raw/<type>/<id> before extraction, applies a Mom-Test discovery filter to pull problems + verbatim quotes, then runs the learning loop: Pass 1 grounds EXISTING opportunities (append verbatim, propose a provenance upgrade toward evidence-backed), Pass 2 surfaces NEW strategy-coherent opportunities. Every grounded/created opportunity is bidirectionally linked to its raw source, and the run ends with a machine-readable run-summary. One batched human confirmation before writes; headless (viewer) runs fall back to write-then-review with ⚠ low-confidence./pm-archiveArchive one entity (opportunity, solution, objective, competitor, or persona) with a polished, contextual reason sentence. Argument: <type>/<slug> (e.g. opportunity/cold-start-context or solution/inline-viewer-pane). User context: the raw reason and kind — 'implemented: ...', 'dropped: ...', 'absorbed: ...' for opportunities/solutions; 'completed: ...', 'abandoned: ...' for objectives; 'defunct: ...', 'pivoted: ...', 'irrelevant: ...' for competitors; 'outgrown: ...', 'dropped: ...' for personas./pm-brainstormJam with Nano, your expert CPO. An informal, context-loaded thinking partner for product ideas, user problems, and what-to-build-next — Nano knows your company context and current objectives, no gate, no PRD. Sessions are named and resumable via your host's native session resume.Other plugins' skills for the same job