Automated summary
Runs mutation testing end-to-end on a Clojure namespace: builds a coverage report, has Claude write tests, verifies mutations are killed, then opens draft PRs tracked in Linear.
Strengths
- Covers the full loop — coverage report, function grouping, test generation, verification, commit/push and draft PR creation
- Per-group recovery via process-group! lets you retry a single failed group instead of rerunning everything
- --base-branch and --project-id flags target a release branch and attach issues to an existing Linear project
- Dry-run helper (build-test-prompt) shows exactly what Claude will be asked before it runs
Limitations
- Tightly bound to the Metabase dev setup: a live nREPL plus dev/src/dev/coverage.clj and mutation_testing.clj
- Requires LINEAR_API_KEY, an authenticated gh CLI and the claude CLI on PATH
- Team-id configuration must be redone every time the REPL restarts
When you want to harden test coverage for a critical Clojure namespace by automatically generating and verifying tests that kill surviving mutations.
On a Clojure project without nREPL or Linear/GitHub integration, or when you don't want automated PRs opened against your repo.
Security analysis
CautionThe skill orchestrates legitimate developer tooling (nREPL, `gh`, `claude` CLI, Linear API) to run mutation testing and open draft PRs. There is no evidence of destructive commands, obfuscated payloads, secret exfiltration, or safety-disabling instructions. However, it does exercise powerful, automated write actions (git branch/commit/push, PR creation, subprocess invocation, external API calls with an API key), so it warrants a caution rating rather than safe.
- •Automates git operations: creates branches, commits, pushes, and opens draft PRs via `gh` CLI
- •Spawns `claude -p` subprocesses with write access to the repo to author tests
- •Reads LINEAR_API_KEY environment variable and calls Linear API
- •Requires a live nREPL connected to the dev environment and shells out to multiple external CLIs
Examples
/mutation-testing metabase.lib.order-by/mutation-testing metabase.lib.order-by --base-branch release-x.52.x/mutation-testing metabase.lib.order-by --base-branch release-x.52.x --project-id abc-123name: mutation-testing description: Run mutation testing on a Clojure namespace, generate tests to kill surviving mutations, and open draft PRs with Linear issue tracking.
Mutation Testing Skill
This skill runs mutation testing end-to-end: generates a coverage report, groups functions, shells out to claude -p to write tests, verifies mutations are killed, and creates draft PRs with Linear issues.
Prerequisites
- A running nREPL connected to the Metabase dev environment
LINEAR_API_KEYenvironment variable set with a valid Linear personal API keyghCLI authenticated with GitHubclaudeCLI available on PATH
Reference Files
dev/src/dev/coverage.clj— mutation testing engine (generates reports, runs mutations)dev/src/dev/mutation_testing.clj— orchestration, Linear API, PR helpers
Invocation
The argument is a Clojure namespace, optionally followed by a base branch:
/mutation-testing metabase.lib.order-by
/mutation-testing metabase.lib.order-by --base-branch release-x.52.x
/mutation-testing metabase.lib.order-by --project-id abc-123
/mutation-testing metabase.lib.order-by --base-branch release-x.52.x --project-id abc-123
--base-branch: defaults to the value in config (set viaset-config!), or"master"if not configured.--project-id: if provided, issues are added to this existing Linear project instead of creating a new one.
Steps
1. Parse arguments
Parse $ARGUMENTS to extract:
- namespace (required) — the first positional argument
--base-branch(optional) — if present, the next argument is the base branch name--project-id(optional) — if present, the next argument is an existing Linear project ID
2. Load and configure
(require '[dev.mutation-testing :as mut-test] :reload)
(require '[dev.coverage :as cov] :reload)
If this is the first invocation (or the REPL was restarted), set up the Linear team:
(mut-test/list-teams!)
(mut-test/set-config! {:team-id "<id>"})
3. Run
(mut-test/run! '<target-ns>)
;; Or with options:
(mut-test/run! '<target-ns> {:base-branch "release-x.52.x"})
(mut-test/run! '<target-ns> {:project-id "abc-123"})
(mut-test/run! '<target-ns> {:base-branch "release-x.52.x" :project-id "abc-123"})
Pass the opts map with :base-branch and/or :project-id if those flags were provided in the arguments.
This will:
- Generate a baseline mutation testing report
- Create a Linear project for the namespace
- Group functions by coverage relationships
- For each group: create branch → invoke Claude to write tests → verify → retry if needed → commit & push → create Linear issue → create draft PR
- Print a summary with PR links
4. Handle failures
If a group fails mid-processing, run! catches the error and continues to the next group. To retry a single group manually:
;; Get the parsed namespace info
(def parsed (mut-test/parse-namespace '<target-ns>))
;; Run coverage to get the data
(def coverage-results (cov/test-namespace (:target-ns parsed) [(:test-ns parsed)]))
;; Group and find the one you want
(def groups (mut-test/group-functions coverage-results))
;; Process just that group
(mut-test/process-group! parsed (nth groups <index>))
5. Verify the prompt (dry run)
To inspect what Claude will see without invoking it:
(def parsed (mut-test/parse-namespace '<target-ns>))
(def coverage-results (cov/test-namespace (:target-ns parsed) [(:test-ns parsed)]))
(def groups (mut-test/group-functions coverage-results))
(println (mut-test/build-test-prompt
(merge (select-keys parsed [:target-ns :test-ns :source-path :test-path])
(select-keys (first groups) [:fn-names :mutations]))))
Configuration
- Team ID: Set once per REPL session via
(mut-test/list-teams!)and(mut-test/set-config! {:team-id "..."}) - Project ID: Set automatically when
run!callscreate-project-for-namespace! - Base Branch: Defaults to
"master". Override via(mut-test/set-config! {:base-branch "release-x.52.x"})or pass{:base-branch "..."}as the second arg torun! - Project ID: If set (via
set-config!orrun!opts),run!reuses the existing Linear project instead of creating a new one
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/mutation-testing-for-clojure-namespaces-mte1lg3k/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/mutation-testing-for-clojure-namespaces-mte1lg3k' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/mutation-testing-for-clojure-namespaces-mte1lg3k/download' --output '.skill-downloads/mutation-testing-for-clojure-namespaces-mte1lg3k/SKILL.md.part' && mv '.skill-downloads/mutation-testing-for-clojure-namespaces-mte1lg3k/SKILL.md.part' '.skill-downloads/mutation-testing-for-clojure-namespaces-mte1lg3k/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Original excerpt: Prerequisites
- A running nREPL connected to the Metabase dev environment
LINEAR_API_KEYenvironment variable set with a valid Linear personal API keyghCLI authenticated with GitHubclaudeCLI available on PATH
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/mutation-testing-for-clojure-namespaces-mte1lg3k/SKILL.md' && test -s '.skill-downloads/mutation-testing-for-clojure-namespaces-mte1lg3k/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/mutation-testing' && cp -R '.skill-downloads/mutation-testing-for-clojure-namespaces-mte1lg3k' '.claude/skills/mutation-testing'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/mutation-testing-for-clojure-namespaces-mte1lg3k'openskills read 'mutation-testing-for-clojure-namespaces-mte1lg3k'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/mutation-testing-for-clojure-namespaces-mte1lg3k/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
ClickHouse Performance Comparison
Testing
Evaluate ClickHouse performance test results, check PR performance changes, compare with history, and assess whether a result is actionable.
Analyze CI Performance Reports
Testing
Analyze CI performance comparison reports for a ClickHouse PR. Cross-references master history to distinguish real regressions from flaky tests.
Santa Method
Testing
Multi-agent adversarial verification with two independent reviewers. Output is checked twice and iteratively fixed until both pass before shipping.