/nlsmdn:perf-test <target: file, function, endpoint, or service>from nlsmdn
Set up and run performance tests (profiling, load testing, or E2E scenarios), preserving occasional manual procedures and results for future repetition. Use when measuring code or endpoint performance, or before/after optimization work.
Ships in nlsmdn. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Set up, run, and analyze performance tests with an iterative improvement cycle.
For occasional manual runs, use the shared manual test record convention
under docs/tests/. Routine automated benchmark runs keep their normal runner/CI output.
If the request is only to save a completed run, use doc --session with that convention;
capture the available evidence without starting a new test or optimization cycle.
/perf-test src/utils/parser.ts # Profile a file/module
/perf-test calculateTotal # Profile a specific function
/perf-test /api/users # Load test an endpoint
/perf-test checkout-flow # E2E scenario test
/perf-test # Ask what to test
Look for an existing procedure and baseline under docs/tests/ (or legacy docs/perf/).
Reuse its scripts, configuration, and comparable baseline when they cover the requested target.
Ask clarifying questions:
What type of test?
What metrics matter?
What are the success criteria?
Detect project context:
# Detect language/framework
ls package.json 2>/dev/null && echo "node"
ls requirements.txt pyproject.toml 2>/dev/null && echo "python"
ls go.mod 2>/dev/null && echo "go"
ls Cargo.toml 2>/dev/null && echo "rust"
Do NOT skip phases:
Present a testing plan:
## Performance Test Proposal
**Target:** {target}
**Type:** {profiling | load testing | e2e scenario}
**Tool:** {selected tool}
### Metrics to Collect
- {metric 1}
- {metric 2}
### Test Configuration
- {iterations/duration}
- {concurrency if load test}
- {warmup settings}
### Success Criteria
- {threshold 1}
- {threshold 2}
### Files to Create
- {test file path}
- {config file if needed}
- {docs/tests/<name>/README.md and dated run record, for an occasional manual test}
Proceed with this plan?
Select the appropriate template from references/templates.md based on language and test type:
Adapt the template to the specific target, configuring iterations, concurrency, and metrics collection as specified in the proposal.
For an occasional manual run, capture the code revision, relevant local changes, environment, and actual configuration at execution time, as specified in the shared record convention.
Run tests and capture output:
# Node.js benchmark
node perf-tests/{target}.bench.js
# Python benchmark
python perf-tests/{target}_bench.py
# Go benchmark
go test -bench=. -benchmem ./...
# Load test
hey -n 1000 -c 50 {url}
Parse results and identify concerns:
## Performance Results
### Summary
| Metric | Value | Threshold | Status |
|--------|-------|-----------|--------|
| Mean latency | 45ms | <100ms | Pass |
| P95 latency | 120ms | <150ms | Pass |
| P99 latency | 450ms | <200ms | Fail |
| Throughput | 850 req/s | >500 | Pass |
### Concerning Findings
1. **P99 latency spike** - 450ms exceeds 200ms threshold
- Likely cause: {analysis}
- Affected code: {file:line}
2. **Memory growth** - {if detected}
For occasional manual tests, save the completed run using Documentation below before proposing optimizations, including when thresholds failed. Save it even if no improvement cycle follows.
## Optimization Recommendations
### High Impact
1. **{Recommendation}**
- Current: {metric}
- Expected improvement: {estimate}
- Implementation: {brief description}
### Medium Impact
2. **{Recommendation}**
...
Which recommendations would you like to implement?
After user selects recommendations:
## Before/After Comparison
| Metric | Before | After | Change |
|--------|--------|-------|--------|
| Mean latency | 45ms | 32ms | -29% |
| P95 latency | 120ms | 85ms | -29% |
| P99 latency | 450ms | 150ms | -67% |
| Throughput | 850/s | 1100/s | +29% |
### Summary
- {X} metrics improved
- {Y} metrics unchanged
- {Z} metrics regressed (if any)
For occasional manual tests, save each rerun as a new dated record and link the before/after comparison to the actual runs. Keep the earlier baseline's results intact.
For occasional manual tests, follow the shared procedure and run format:
docs/tests/<name>/README.md — maintained setup, commands, workload, measurement method,
thresholds, and links to runs, with the comparison baseline identified.docs/tests/<name>/runs/YYYY-MM-DD-<label>.md — actual setup, results, evidence, and
conclusions for this execution. Include hardware/build mode, warmup, repetitions, load
configuration, and aggregation method so later comparisons can be assessed.Save the first run before recommendations and every subsequent run after analysis. A result record describes what was measured; later documentation updates never replace its values. Routine automated suite or scheduled benchmark executions do not get records here.
| Language | Profiling | Load Testing | E2E Scenario |
|---|---|---|---|
| JS/TS | benchmark.js, console.time | autocannon, k6 | custom scripts, k6 scenarios |
| Python | timeit, cProfile, pytest-benchmark | locust | locust sequences, pytest |
| Go | testing.B (built-in) | hey, vegeta | custom test harness |
| Rust | criterion | hey | custom scripts |
| Any CLI | hyperfine | hey, ab | shell scripts with timing |
Load test an API endpoint with before/after comparison:
/perf-test /api/orders
Sets up a load test using hey or autocannon against the endpoint, collects latency percentiles and throughput, then runs an improvement cycle to compare metrics before and after optimizations are applied.
Profile a slow parser function:
/perf-test parseCSV
Creates a benchmark harness for the function, runs it with multiple iterations to get statistically significant timing data, and identifies the hotspot causing the slowdown along with optimization recommendations.
Solution: Increase the number of iterations and add warmup runs to reduce cold-start variance. Close other resource-intensive processes and pin CPU frequency if possible to minimize OS-level noise.
Solution: Check the Tool Reference table above for alternatives in your language. If no project dependency exists, use language-built-in options (e.g., console.time for JS, timeit for Python, testing.B for Go) or install a standalone tool like hyperfine or hey that requires no project integration.
What SKILL.md sets; muted values are Claude Code's defaults
highnpx claudepluginhub nielsmadan/skills --plugin nlsmdn65 skills in this plugin
/blind-spotsSurface consequential decisions a plan, design, or research brief left silently assumed, by interviewing the user in dependency order. Use when the user says "blind spots", "grill me", "stress-test this plan", "poke holes in this", "what am I missing", "interrogate this design", "what haven't I decided", or needs a loose idea or research brief clarified before work begins. Do NOT use for a clear factual lookup, to explain a previous reply in more detail (use `huh`), to generate ideas when it is unclear what to build (use `ideation`), or to review an already-written plan with agents (use `review-plan`)./brainstormWork out how to solve a problem the user can already name — interview them with `blind-spots` to understand it, generate structurally different approaches, validate each with an independent critic, then present the survivors with trade-offs and a recommendation. Use when the user says "brainstorm", "brainstorm approaches", "how should we solve/approach/tackle X", "what are our options", "compare approaches", "think this through with me", or wants solutions weighed before committing. Works on any topic, with codebase recon when a repo is involved; `--debate` adds external advisors for high-stakes calls. Do NOT use when stuck on what to build or what the problem is (use `ideation`), to probe an already-chosen plan (use `blind-spots`), or to pick a library or service (use `evaluate-tech`).