
Affinity mapping
Turns interview transcripts into evidenced themes and an interactive HTML evidence map
Affinity mapping is an open-source agent skill for productivity. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- Python
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 313
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Affinity mapping
This skill guides an agent through synthesizing user interview transcripts into themes, user needs and opportunities that can feed a product discovery process. It works one transcript at a time, pulling out atomic observations with verbatim quotes and source IDs, then clusters those notes without predefined categories. A divergence pass is included to keep outliers and contradictions visible rather than smoothing them away.
The output is a set of Markdown files covering the nugget ledger, themes and opportunities, plus a JSON data file. A bundled Python script renders these into a self-contained HTML review page where a reader can trace a theme back to its quotes and sources. The skill asks for user confirmation before treating the synthesis as final, and marks the map as a draft until then.
The skill expects interview transcripts as input and a Python 3 environment to run its render script. It is written to follow the conversation language of the user.
When your agent uses it
Synthesize interview transcripts into evidenced themes and user needs, then render an interactive HTML evidence map. Use when synthesizing interviews, affinity mapping, or preparing opportunities for discovery.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs Python scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 8 files (49 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the product-discovery plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add superhero-tech/superhero-skills
/plugin install product-discovery@superhero-skillsOr copy only this skill to ~/.claude/skills/affinity-mapping:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/superhero-tech/superhero-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/affinity-mapping &&
cp -R "$tmp/plugins/product-discovery/skills/product-discovery/affinity-mapping" ~/.claude/skills/affinity-mapping &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/affinity-mapping inside it instead.
Copy the skill folder to ~/.agents/skills/affinity-mapping to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/superhero-tech/superhero-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/affinity-mapping &&
cp -R "$tmp/plugins/product-discovery/skills/product-discovery/affinity-mapping" ~/.agents/skills/affinity-mapping &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/affinity-mapping inside it instead.
Copy the skill folder to ~/.cursor/skills/affinity-mapping to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/superhero-tech/superhero-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/affinity-mapping &&
cp -R "$tmp/plugins/product-discovery/skills/product-discovery/affinity-mapping" ~/.cursor/skills/affinity-mapping &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/affinity-mapping inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/superhero-tech/superhero-skills.git --path plugins/product-discovery/skills/product-discovery/affinity-mappingOr copy the folder to ~/.gemini/skills/affinity-mapping yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/affinity-mapping:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/superhero-tech/superhero-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/affinity-mapping &&
cp -R "$tmp/plugins/product-discovery/skills/product-discovery/affinity-mapping" ~/.copilot/skills/affinity-mapping &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/affinity-mapping inside it instead.
Get the folder:
git clone --depth 1 https://github.com/superhero-tech/superhero-skills.gitThen copy superhero-skills/plugins/product-discovery/skills/product-discovery/affinity-mapping into your agent's skills folder as affinity-mapping. Agents that support SKILL.md read one folder per skill.
What it does
- Two-step transcript extraction
- Reads each interview separately and saves atomic observations with verbatim quotes before moving on.
- Bottom-up theme clustering
- Groups observations by shared meaning into themes that emerge from the data rather than fixed categories.
- Divergence and exception review
- Records nuggets that fit no theme and points where interviewees disagree or contradict behavior.
- Opportunity formulation
- Converts themes into customer-voiced needs and pains, checking they are not disguised solutions.
- Interactive evidence map
- Renders a self-contained HTML view linking focus question, themes, nuggets, quotes and opportunities.
Good for
- Synthesize a set of customer interviews into themes
- Build an affinity map from discovery research notes
- Turn interview findings into opportunities for an opportunity solution tree
- Produce a traceable evidence map of user pains for a product team
Affinity mapping FAQ
What does the skill need to run?
It expects interview transcripts and a Python 3 environment to run the bundled render_affinity_map.py script that builds the HTML map.
What files does Affinity mapping produce?
It produces affinity/nuggets.md, affinity/themes.md, affinity/opportunities.md, affinity/map.json and affinity/map.html in the working folder.
When does the skill trigger?
Its description says it triggers when synthesizing interviews, affinity mapping, or preparing opportunities for discovery.
Does Affinity mapping make final decisions about themes?
No. It asks the user before treating themes and opportunities as final and renders the first map as a draft.
How do I install Affinity mapping in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/affinity-mapping to use it in all your projects, or to .claude/skills/affinity-mapping in one project. Or install the product-discovery plugin, which includes it: /plugin marketplace add superhero-tech/superhero-skills, then /plugin install product-discovery@superhero-skills.
Does Affinity mapping run scripts?
Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Affinity mapping?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Affinity mapping?
The closest alternatives to Affinity mapping are User feedback synthesizer, Summarize interview, Brand discovery, Document and Design thinking.
Where this comes from
- Description: from the skill's own SKILL.md.
More from superhero-tech/superhero-skills

Guides a web app or API team through pre-release checks and builds an offline HTML
- Open source
- 313 GitHub stars
- Developer tools

Builds Figma token and component libraries that another agent can reuse
- Open source
- 313 GitHub stars
- Design and media

Turns screenshots and style guides of an existing site into design system component docs
- Open source
- 313 GitHub stars
- Design and media

Extracts a website's rendered visual style into an evidence-backed DESIGN.md
- Open source
- 313 GitHub stars
- Design and media

Builds screens with poster-style outlines, paper surfaces and hand-drawn people
- Open source
- 313 GitHub stars
- Design and media

Guides an agent through a landing page brief, art direction, and visual build
- Open source
- 313 GitHub stars
- Developer tools



