/nanopm:pm-datafrom nanopm
Answers specific product questions using PostHog — trends, funnels, retention, paths. Writes findings to a wiki page consumed by other PM skills.
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
Run /pm-data when:
One question per run. A vague question ("how is the product doing?") produces useless output. A specific question ("what is the Day 7 retention for users who completed onboarding vs those who didn't?") produces an insight.
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
nanopm_context_read pm-data
nanopm_context_read pm-data
Check for a prior wiki data page — if it exists, show a one-line summary of the last analysis and its date. Don't repeat the same analysis unless explicitly requested.
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
[ -f "$(nanopm_wiki_doc_path data)" ] && echo "DATA_EXISTS" || echo "DATA_MISSING"
Pull the upstream grounding through the query primitive — one read-side call that synthesizes the relevant wiki pages, instead of bespoke per-doc reads (the recipe pattern: query → reasoning → ingest). The raw docs stay out of this run; 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 quantitative data analysis, synthesize from the wiki: the product map — its surfaces, core workflow, and which user events/features the metrics would refer to (and whether the product page is marked Completeness: draft); and the biggest gap or 'question you're avoiding' from the latest challenge session, plus the top-risk assumption from any discovery page. Cite each claim. Name anything missing rather than inventing." none
Reason over the returned synthesis:
Completeness: draft, surface a one-line non-blocking warning: "Note: analyzing against a draft product concept." If no product context exists, proceed without it.Ask via AskUserQuestion:
"What specific product question do you want to answer with data?
Good examples:
Bad examples (too vague):
From the question, identify:
Now that the question is defined, search for opportunities related to the behavior or metric being measured — so the interpretation in Phase 4 connects each data point to the user problem it's meant to illuminate, not just a free-floating number:
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
nanopm_wiki_search "<key terms from the question — e.g. 'activation onboarding' or 'retention churn'>" opportunity 5
For each result, Read the full page (path column). In Phase 4, anchor each finding to the relevant opportunity: "this drop-off maps to opportunity X (priority: high)" is a stronger insight than the number alone.
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
_TIER_POSTHOG=$(nanopm_has_connector posthog)
_TIER_AMPLITUDE=$(nanopm_has_connector amplitude)
echo "POSTHOG: $_TIER_POSTHOG | AMPLITUDE: $_TIER_AMPLITUDE"
Priority: PostHog MCP first (most capable) → PostHog API → Amplitude API → manual.
If PostHog MCP available: fetch available event definitions first to use correct event names:
mcp__claude_ai_PostHog__event-definitions-list()
mcp__claude_ai_PostHog__projects-get()
If neither PostHog nor Amplitude available: go to Tier 4 (manual paste).
Run the appropriate queries based on the analysis type. Show progress ("Fetching funnel data...") but do not show raw API responses to the user — only the interpreted output.
For funnel questions:
For retention questions:
For trend questions:
For path questions:
For cohort comparison:
For feature impact:
Do not just dump numbers. Interpret every metric:
For each data point:
The so-what rule: Every number must be followed by "which means..." or "which suggests...". A number without interpretation is noise.
Confidence level for each finding:
Triangulation: If FEEDBACK.md exists, check for qualitative signal that confirms or contradicts the quantitative findings. A quantitative drop-off confirmed by user interview quotes is a strong signal. A number with no qualitative backing is a hypothesis, not a finding.
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
_DATA_PATH="$(nanopm_wiki_doc_path data)"
nanopm_wiki_doc_frontmatter pm-data evidence-backed "$(date +%Y-%m-%d)" "{sources}"
echo "WRITE_TO: $_DATA_PATH"
Write the file at $(nanopm_wiki_doc_path data) as: (a) the frontmatter block emitted by nanopm_wiki_doc_frontmatter above (substitute {sources} with the real comma-separated sources, e.g. posthog, amplitude), then (b) the body below. Append a new analysis section if the file already exists — preserve prior analyses, keep the confidence markers (🟢🟡🔴) inline in the body:
---
## Data Analysis — {date}
**Question:** {the specific question answered}
**Source:** {PostHog | Amplitude | manual}
**Time range:** {date range}
### Findings
**{Finding 1 title}**
{Number}: {what it means} — {so what / implication}
Confidence: {🟢 High | 🟡 Medium | 🔴 Low} — {reason}
**{Finding 2 title}**
...
### Key insight
{One paragraph. The most important thing the data reveals. Not a list — a narrative.
What is the data actually saying about user behavior? What does it suggest you should do?}
### Biggest unknown
{The most important question the data raises but cannot answer alone.
Usually answered by qualitative research — flag it for /pm-discovery if relevant.}
### Recommended next
{/pm-challenge-me to fold this into the product assessment |
/pm-discovery to investigate the biggest unknown qualitatively |
/pm-prd if the problem is validated and sized}
---
Feed this analysis into the memory wiki (the compounding-knowledge layer; schema in
.nanopm/NANOPM-WIKI.md) so behavioral evidence refines the persona pages and metrics refine the
objective pages over time instead of being re-derived each run. Advisory and non-blocking —
if anything fails or the host can't dispatch a subagent, note it and finish normally; the wiki data
page is already written.
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
nanopm_wiki_ensure && echo "WIKI_READY" || echo "WIKI_SCAFFOLD_FAILED (skip ingest, finish normally)"
If WIKI_READY, print the canonical ingest prompt and dispatch it with the Agent tool (one subagent):
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
nanopm_ingest_prompt "$(nanopm_wiki_doc_path data)" "entities/personas (behavioral evidence) and entities/objectives (metrics)"
The subagent dedups each citation (nanopm-ingest-agent citation-check), writes each page
directly (single-writer-per-file) with nanopm-ingest-agent apply, then runs
nanopm-ingest-agent reindex + log. On a host without an Agent tool it follows the same steps
inline. Surface which entity pages changed; the once-daily judgment lint flags any contradiction
after the fact — there is no pre-write review queue.
source ~/.nanopm/lib/nanopm.sh 2>/dev/null || source .nanopm/lib/nanopm.sh 2>/dev/null || true
_DATA_PATH="$(nanopm_wiki_doc_path data)"
nanopm_context_append "{\"skill\":\"pm-data\",\"outputs\":{\"question\":\"$(head -20 "$_DATA_PATH" | grep 'Question' | cut -d: -f2- | xargs | tr '\"' \"'\" | head -c 100)\",\"source\":\"posthog\",\"next\":\"pm-challenge-me\"}}"
nanopm_wiki_doc_log pm-data "wrote docs/$(basename "$_DATA_PATH")" # global heartbeat: this page write -> wiki/log.md
Tell the user:
.nanopm/wiki/docs/data.md) updatedIf the data reveals a clear problem with quantified size: "This is now ready to feed into /pm-challenge-me — the quantitative problem size strengthens the challenge session's strategic recommendations."
STATUS: DONE
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
26 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./pm-breakdownBreak a PRD into engineering tasks and hand off to one of six peer targets: Linear, GitHub Issues, OpenSpec, gstack, Symphony (OpenAI's orchestrator), or Human-readable markdown. No preferred default — you pick the target./pm-business-modelDefine how the company makes money. Reverse-engineers the business model from pricing pages, prior nanopm artifacts, and the codebase when they exist, or builds it from scratch by interviewing you when the repo is empty. Produces the wiki Define page `.nanopm/wiki/docs/business-model.md` — model type, revenue streams, pricing & packaging, and GTM motion./pm-challenge-meChallenge Me. Adversarial product challenge: a skeptical-CPO read of what you're building, who for, and the biggest strategic gap — then three direct challenges you should answer, starting with the question you're avoiding. Produces .nanopm/wiki/docs/challenges.md.npx claudepluginhub nmrtn/nanopm --plugin nanopmOther plugins' skills for the same job