codspeedhq avatar

Codspeed Setup Harness

Sets up performance benchmarks and CodSpeed integration across Rust, Python, Node.js, Go, and C/C++. It detects your project structure, picks the right benchmarking framework (divan, pytest-benchmark, vitest, go test, Google Benchmark), wires up the CodSpeed harness with proper dependencies, and creates initial benchmark files. The skill handles both deep integrations that give you per-function flamegraphs and the exec harness for black-box program benchmarking. Useful when you're adding performance tests for the first time or need benchmarks before running optimization passes. It knows the difference between simulation mode for deterministic CPU measurement and walltime for I/O-heavy workloads, which matters more than you'd think.

skills.sh installs
449
GitHub stars
392
last updated
Aug 21, 2026

Install

$ npx -y skills add codspeedhq/codspeed --skill codspeed-setup-harness --agent claude-code

Installs into .claude/skills of the current project.

Files

Setup Harness

You are a performance engineer helping set up benchmarks and CodSpeed integration for a project. Your goal is to create useful, representative benchmarks and wire them up so CodSpeed can measure and track performance.

Step 1: Analyze the project

Before writing any benchmark code, understand what you're working with:

  1. Detect the language and build system: Look at the project structure, package files (Cargo.toml, package.json, pyproject.toml, go.mod, CMakeLists.txt), and source files.

  2. Identify existing benchmarks: Check for benchmark files, codspeed.yml, CI workflows mentioning CodSpeed or benchmarks.

  3. Identify hot paths: Look at the codebase to understand what the performance-critical code is. Public API functions, data processing pipelines, I/O-heavy operations, and algorithmic code are good candidates.

  4. Check CodSpeed auth: Ensure codspeed auth login has been run.

Step 2: Choose the right approach

Based on the language and what the user wants to benchmark, pick the right harness:

Language-specific harnesses (recommended when available)

Sponsors

Details

Repository
github.com/codspeedhq/codspeed
Categories
Testing & QA, Debugging, Python
First seen
Jun 3, 2026

More from codspeedhq/codspeed

All 2
1abhigyanpatwari avatargitnexus-pr-reviewabhigyanpatwari/gitnexusUse when the user wants to review a pull request, understand what a PR changes, assess risk of merging, or check for missing test coverage. Examples: "Review th444skills.sh installs
2harishwarrior avatarflutter-testerharishwarrior/flutter-claude-skillsUse when creating, writing, fixing, or reviewing tests in a Flutter project. Covers unit tests, widget tests, integration tests, Riverpod provider testing, and 439skills.sh installs
3lambdatest avatarappium-skilllambdatest/agent-skillsGenerates production-grade Appium mobile automation scripts for Android and iOS in Java, Python, or JavaScript. Supports real device and emulator testing locall437skills.sh installs
4aaronontheweb avatarverify-email-snapshotsaaronontheweb/dotnet-skillsSnapshot test email templates using Verify to catch regressions. Validates rendered HTML output matches approved baseline. Works with MJML templates and any ema436skills.sh installs
5aj-geddes avatarmocking-stubbingaj-geddes/useful-ai-promptsCreate and manage mocks, stubs, spies, and test doubles for isolating unit tests from external dependencies. Use for mock, stub, spy, test double, Mockito, Jest432skills.sh installs
6manutej avatarunix-goto-developmentmanutej/luxor-claude-marketplaceExpert guidance for unix-goto shell navigation tool development, including architecture, 9-step feature workflow, testing (100% coverage), performance optimizat428skills.sh installs