/product-discovery:affinity-mappingfrom Superhero Skills
Synthesizes user interview transcripts into evidenced themes and needs, producing an interactive HTML evidence map. Use when analyzing qualitative research or affinity mapping.
Ships in Superhero 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.
Turn raw user interviews into structured themes and opportunities (needs/pains/desires), ready to drop into an Opportunity Solution Tree. Every conclusion stays evidenced - it traces back to a verbatim quote and its source. Finish with a self-contained, interactive affinity/map.html that makes the evidence trail inspectable.
Respond and produce all artifacts in the user's conversation language.
Before extraction, read references/writing-quality.md. Apply it to all agent-authored observations, labels, opportunities, and summaries; preserve source quotes verbatim. Titles and previews must describe the actual person, situation, and need on their own. Check clarity again after shortening, before saving JSON, HTML, or a handoff; this skill owns that quality without depending on a separate editor.
The most common mistake (human and AI alike) is to dump all transcripts in at once and write themes immediately. That loses nuance, smooths over outliers, and - with AI - burns context and produces hallucinated quotes.
Work in two steps, and step 1 is sacred:
This is a quality rule and a token-economy rule at the same time: after extraction the raw transcripts leave the context, and clustering happens on a handful of one-line nuggets.
For each transcript separately: read it, extract atomic nuggets, append them to affinity/nuggets.md. Then the next one. Do not read the next transcript before you have saved the nuggets from the previous one.
Nugget = one observation + verbatim quote + source. Format (one per line, ID for traceability):
- [A01] Could not tell whether the import had finished | "I sat there refreshing the page, I had no idea if it had worked" | Ana
- [A02] States price as the reason for stopping | "it was too expensive, that was the end of it" | Ana
Nugget rules (this is data quality - "garbage in, garbage out"):
Capture observations across the full spectrum: statements, behaviors, emotions, moments of pain, contradictions within a single interview. Do not filter for a thesis yet.
Now work exclusively from affinity/nuggets.md. The raw transcripts are no longer needed.
Write to affinity/themes.md:
## Theme: Cannot tell whether an action succeeded
Nuggets: A01, A05, B07, C03
LLMs (and humans) drift toward the dominant narrative and smooth over exceptions. Deliberately make the opposite move:
Append a ## Divergence / exceptions section to themes.md. Keep discrepancies visible - they are material.
Convert themes into Torres-style opportunities (the bridge to the OST). Detailed criteria and examples: references/torres-opportunities.md - read it before formulating.
In short:
Final artifact affinity/opportunities.md - each opportunity with the full trail theme -> nuggets -> quotes -> source:
## Opportunity: "I don't know whether the thing I just did actually worked"
- Theme: Cannot tell whether an action succeeded
- More than one way? YES (confirmation screen, status log, email receipt, progress indicator...)
- Evidence:
- A01 "I sat there refreshing the page..." (Ana)
- B07 "..." (Ben)
- For whom / divergence: strong among first-time users; Chris is the opposite (checks a separate report, so he never notices)
Before presenting the synthesis, run the language and fidelity review in references/writing-quality.md on the Markdown artifacts. Resolve wording there before projecting it into JSON and HTML.
At the end, show the user the themes and opportunities and ask before treating them as final - naming themes and interpreting them belongs to the human; AI accelerates extraction and clustering, it does not take over judgment. Render the first map with status: "draft"; approval changes the status, not the underlying evidence.
The synthesized opportunities can feed the included supersprint skill for a full discovery cycle and growing tree. If an ost-builder skill is separately available and the user specifically wants a Teresa Torres Opportunity Solution Tree, it can also use these opportunities; do not require that optional skill.
Read references/map-data.md and references/html-style.md; use the packaged default HTML style. Build affinity/map.json strictly from nuggets.md, themes.md, and opportunities.md; this phase reformats the synthesis and must not reinterpret it.
The map must make four relationships visible:
Write the normalized data contract exactly as described in the reference, then render it with the bundled script:
python3 <this-skill-directory>/scripts/render_affinity_map.py affinity/map.json affinity/map.html
Treat these as the complete output set:
affinity/nuggets.md - atomic evidence ledger.affinity/themes.md - clusters plus divergences.affinity/opportunities.md - interpreted needs with traceability.affinity/map.json - canonical machine-readable relationships.affinity/map.html - self-contained review view with no network dependencies.After rendering:
affinity/map.html in the host app's built-in/in-app browser first, following the preview order in references/map-data.md; Chrome or another external browser is a fallback, not the default.assets/affinity-layout.css (opens in a new tab)assets/html-style.css (opens in a new tab)references/html-style.md (opens in a new tab)references/map-data.md (opens in a new tab)references/torres-opportunities.md (opens in a new tab)references/writing-quality.md (opens in a new tab)scripts/render_affinity_map.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/ab-test-designDesign an A/B test and decide whether available traffic can detect a useful effect. Use when planning a randomized product comparison, checking sample size or test duration, or creating an interactive A/B test card./build-figma-libraryBuild or extend a Figma token and component library from product documentation, code, or an existing UI. Prepare it for another agent by checking component properties, composition examples, and handoff, including publishing when reuse spans files. Use for reconstructing design systems and making libraries reusable; screen-only design and documentation of existing components have separate workflows./npx claudepluginhub superhero-tech/superhero-skills --plugin product-discoveryOther plugins' skills for the same job