# mutation-testing

Runs mutation testing for a Clojure namespace, writes tests for surviving mutations, and opens draft PRs linked to Linear issues.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · ★ 50467 repo stars
- Author: metabase
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/metabase/metabase/tree/HEAD/.claude/skills/mutation-testing/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/metabase-mutation-testing

## What it does

This skill takes a Clojure namespace through mutation testing. It creates a baseline report, groups functions by coverage relationships, and calls `claude -p` to produce tests for mutations that remain alive. The workflow then checks the result, retries a group when needed, commits and pushes the changes.

Each processed group can produce a Linear issue and a draft pull request. Use `--base-branch` to select the base branch or `--project-id` to reuse an existing Linear project. The run requires a live nREPL connected to the Metabase development environment, `LINEAR_API_KEY`, an authenticated `gh` CLI, and `claude` on `PATH`. Those prerequisites are required before the workflow can run.

## Requirements
- Works with: Linear

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add metabase/metabase --skill mutation-testing -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/mutation-testing/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/mutation-testing/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add metabase/metabase --skill mutation-testing -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/mutation-testing/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add metabase/metabase --skill mutation-testing -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/mutation-testing/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install metabase/metabase .claude/skills/mutation-testing
```

2. **Manually: put the files in place**
- File: `.github/skills/mutation-testing/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add metabase/metabase --skill mutation-testing -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/metabase/metabase --path .claude/skills/mutation-testing
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/mutation-testing/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add metabase/metabase --skill mutation-testing -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/metabase/metabase/tree/HEAD/.claude/skills/mutation-testing/SKILL.md

## When to use it
- run mutation testing against a Clojure namespace
- find mutations that current tests fail to kill
- generate tests for surviving mutations
- turn function groups into Linear issues and draft PRs

## Example prompts
- Run `/mutation-testing metabase.lib.order-by` and add tests for mutations that survive.
- Test `metabase.lib.order-by` against the base branch `release-x.52.x`.
- Process `metabase.lib.order-by` inside the existing Linear project `abc-123`.

## Similar
- [antithesis-mutation-testing](https://affpapa.org/en/nevibecode/skills/antithesis-mutation-testing.md) — skill · 169 installs
- [add-mutation-testing](https://affpapa.org/en/nevibecode/commands/add-mutation-testing.md) — command · 172 installs
- [groove-utilities-task-update](https://affpapa.org/en/nevibecode/skills/groove-utilities-task-update.md) — skill · 546 installs
- [track-findings](https://affpapa.org/en/nevibecode/skills/track-findings.md) — skill · 26 installs
- [linear-task-to-issue](https://affpapa.org/en/nevibecode/commands/linear-task-to-issue.md) — command · 129 installs
- [Linear Automation](https://affpapa.org/en/nevibecode/skills/linear-automation.md) — skill · 4800 installs

## Other versions with the same name
- [mutation-testing · trailofbits](https://affpapa.org/en/nevibecode/skills/mutation-testing.md) — 4900 installs
- [mutation-testing · secondsky](https://affpapa.org/en/nevibecode/skills/secondsky-mutation-testing.md) — 468 installs
- [mutation-testing · proffesor-for-testing](https://affpapa.org/en/nevibecode/skills/proffesor-for-testing-mutation-testing.md) — 122 installs

From the same set: [metabase/metabase](https://affpapa.org/en/nevibecode/by/metabase/metabase.md) — 10 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
