elps: Skill for Claude Code

.claude/skills/benchmark/SKILL.md

benchmark is a skill for Claude Code from luthersystems/elps. It costs 0 tokens per session (2,042 once invoked), scanned A, original, BSD-3-Clause.

A benchmarking workflow that compares code before and after a change with benchstat, a tool for summarising benchmark differences.

In plain words
What is it for?
Use it to find Go benchmarks, compare a base revision with the current code, and measure whole-program or smaller benchmark changes.
Why use it?
It provides measured evidence of performance changes and helps detect regressions instead of relying on assumptions. It runs benchmark tests on both versions under comparable conditions.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is luthersystems/elps's own configuration. It tells Claude Code how to work on elps itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything elps configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is (cd /tmp/elps-base && go test -c -o /tmp/base.test ./lisp/lisplib/).

Reuse

Borrowing it

Nothing to install: this file belongs to luthersystems/elps. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/luthersystems/elps/main/.claude/skills/benchmark/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/luthersystems/elps

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for benchmark

README.md
[![agentmods](https://agentmods.dev/badge/skills/luthersystems/elps/benchmark/github.svg)](https://agentmods.dev/skills/luthersystems/elps/benchmark)
Your own site
<a href="https://agentmods.dev/skills/luthersystems/elps/benchmark"><img src="https://agentmods.dev/badge/skills/luthersystems/elps/benchmark/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for benchmark

Your own site · 80×15
<a href="https://agentmods.dev/skills/luthersystems/elps/benchmark"><img src="https://agentmods.dev/badge/skills/luthersystems/elps/benchmark.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,042 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02042
Opus 5.5 $0.00000 $0.00817
Sonnet 5.5 $0.00000 $0.00408
Haiku 4.5 $0.00000 $0.00204

Measured 2d ago against content hash 01c515d70f90, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

benchmark scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/benchmark/SKILL.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/benchmark — Performance Benchmarking Skill

Runs before/after benchmark comparisons using benchstat to measure the performance impact of changes.

Trigger

Use when asked to benchmark changes, check for performance regressions, or optimize code.

Workflow

1. Find Benchmarks

go test -list 'Benchmark' ./... 2>/dev/null | grep -E '^Benchmark'

This lists all available benchmark functions across the codebase.

For an interpreter change, start with the whole-program benchmarks: BenchmarkWorkload (lisp/lisplib/workload_bench_test.go: json, sortedmap, string, recursion, template) and BenchmarkCorpus (elpstest/). A gain claimed for a change should show there; micro-benchmarks explain it.

2. Measure base and head interleaved

Build one test binary per arm and alternate them, so machine noise lands on both arms alike:

git worktree add /tmp/elps-base origin/main
(cd /tmp/elps-base && go test -c -o /tmp/base.test ./lisp/lisplib/)
go test -c -o /tmp/head.test ./lisp/lisplib/
cd lisp/lisplib
for i in $(seq 10); do
  /tmp/base.test -test.run='^$' -test.bench='^BenchmarkWorkload' -test.benchmem >> /tmp/bench-before.txt
  /tmp/head.test -test.run='^$' -test.bench='^BenchmarkWorkload' -test.benchmem >> /tmp/bench-after.txt
done

Swap the package and -test.bench pattern for a package-specific benchmark. On a shared or loaded machine, allocs/op and B/op are deterministic and are the primary evidence; treat sec/op as indicative, and run make bench-burnin first.

3. Compare with benchstat

benchstat base=/tmp/bench-before.txt pr=/tmp/bench-after.txt

4. Interpret Results

Report the results with focus on:

  • Time: sec/op — lower is better
  • Memory: B/op — lower is better
  • Allocations: allocs/op — lower is better
  • Statistical significance: benchstat shows ~ for no significant change, +/- for changes with confidence intervals

Regression threshold: CI's gate fails a statistically significant bad-direction move of 15% or more on timing and 5% or more on allocations (see "CI Integration" below). Report any significant regression, and investigate those at or above the gate before pushing.

Read the full file on GitHub · 182 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 182 lines · 0 tokens per session scan A 01c515d70f90

Subscribe to this mod's changes

benchmark is a skill published in the GitHub repository luthersystems/elps (36 stars, last pushed today), licensed BSD-3-Clause. It costs nothing until one of its globs matches a file; then it loads 2,042 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.

Related

Other skills, from other repositories

go-testing

Use when writing, reviewing, or improving Go test code — including table-driven tests, subtests, parallel tests, test helpers, test doubles, and assertions with cmp.Diff. Also use when a user asks to write a test for a Go function, even if they don't mention specific patterns like table-driven tests or subtests. Does…

cxuu/golang-skills · 80 tokens

go-test-implementation

Use for test-only changes or non-routine fixtures and harnesses, selecting cases and assertions from accepted behavior during implementation.

Dankosik/go-service-template-rest · 29 tokens

Go Testing Patterns

Go testing with testing package, table-driven tests, subtests, benchmarks, test fixtures, httptest, and testify assertions.

PramodDutta/qaskills · 29 tokens

golang-testing

Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI…

alexastrum/skl · 115 tokens

golang-stretchr-testify

Comprehensive guide to stretchr/testify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use when writing tests with testify, creating mocks, setting up test suites, or choosing between assert and require. Covers testify assertions, mock expectations, argument matchers, call verification…

alexastrum/skl · 97 tokens

golang-testing

Go testing best practices including table-driven tests, test helpers, benchmarking, race detection, coverage analysis, and integration testing patterns. Use when writing or improving Go tests.

affaan-m/ECC · 37 tokens