# Affinity mapping

> Affinity mapping is an open-source agent skill for productivity. Turns interview transcripts into evidenced themes and an interactive HTML evidence map. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/superhero-tech/superhero-skills/tree/main/plugins/product-discovery/skills/product-discovery/affinity-mapping
- **Repository:** https://github.com/superhero-tech/superhero-skills
- **GitHub stars:** 313
- **License:** MIT
- **Skill name:** affinity-mapping
- **Collection:** https://github.com/superhero-tech/superhero-skills
- **Categories:** [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-12-04

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/superhero-tech/superhero-skills/tree/HEAD/plugins/product-discovery/skills/product-discovery/affinity-mapping)
- [No network calls found in its scripts](https://github.com/superhero-tech/superhero-skills/tree/HEAD/plugins/product-discovery/skills/product-discovery/affinity-mapping)
- [License: MIT](https://github.com/superhero-tech/superhero-skills/tree/HEAD/plugins/product-discovery/skills/product-discovery/affinity-mapping)

## Features

- **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

## Install

### Claude Code

This skill ships in the `product-discovery` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add superhero-tech/superhero-skills
/plugin install product-discovery@superhero-skills
```

Or copy only this skill to `~/.claude/skills/affinity-mapping`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/affinity-mapping` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/affinity-mapping` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/superhero-tech/superhero-skills.git --path plugins/product-discovery/skills/product-discovery/affinity-mapping
```

Or copy the folder to `~/.gemini/skills/affinity-mapping` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/affinity-mapping`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/superhero-tech/superhero-skills.git
```

Then 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.

## 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.

## Alternatives

- [User feedback synthesizer](https://ai-powered.com/skills/user-feedback-synthesizer): User feedback synthesizer is an open-source agent skill for productivity.
- [Summarize interview](https://ai-powered.com/skills/summarize-interview): Summarize interview is an open-source agent skill for productivity.
- [Brand discovery](https://ai-powered.com/skills/brand-discovery): Brand discovery is an open-source agent skill for productivity.
- [Document](https://ai-powered.com/skills/document-octavehq): Document is an open-source agent skill for productivity.
- [Design thinking](https://ai-powered.com/skills/design-thinking): Design thinking is an open-source agent skill for productivity.
- [Mt discovery](https://ai-powered.com/skills/mt-discovery): Mt discovery is an open-source agent skill for productivity.
- [Idea refine](https://ai-powered.com/skills/idea-refine): Idea refine is an open-source agent skill for productivity.
- [Interview me](https://ai-powered.com/skills/interview-me): Interview me is an open-source agent skill for productivity.

---
Source: https://ai-powered.com/skills/affinity-mapping
