hex1b: Skill for Claude Code

.github/skills/surface-benchmarker/SKILL.md

surface-benchmarker is a skill for Claude Code, Codex from mitchdenny/hex1b. It costs 38 tokens per session (2,970 once invoked), scanned A, original, MIT.

A set of instructions for running and reading performance benchmarks for the Surface API, a part of the Hex1b library that represents terminal display surfaces.

In plain words
What is it for?
Use it after modifying files under src/Hex1b/Surfaces/ to run all, targeted, or quick dry-run benchmarks.
Why use it?
It helps check whether changes to surface-related code make the library slower. It identifies which benchmark commands to run for affected files and areas.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is mitchdenny/hex1b's own configuration. It tells Claude Code and Codex how to work on hex1b 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 hex1b configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/midenn/Code/hex1b.

Reuse

Borrowing it

Nothing to install: this file belongs to mitchdenny/hex1b. 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/mitchdenny/hex1b/main/.github/skills/surface-benchmarker/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mitchdenny/hex1b

Made for: Claude Code, Codex.

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 surface-benchmarker

README.md
[![agentmods](https://agentmods.dev/badge/skills/mitchdenny/hex1b/surface-benchmarker/github.svg)](https://agentmods.dev/skills/mitchdenny/hex1b/surface-benchmarker)
Your own site
<a href="https://agentmods.dev/skills/mitchdenny/hex1b/surface-benchmarker"><img src="https://agentmods.dev/badge/skills/mitchdenny/hex1b/surface-benchmarker/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 surface-benchmarker

Your own site · 80×15
<a href="https://agentmods.dev/skills/mitchdenny/hex1b/surface-benchmarker"><img src="https://agentmods.dev/badge/skills/mitchdenny/hex1b/surface-benchmarker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,970 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.00038 $0.02970
Opus 5.5 $0.00015 $0.01188
Sonnet 5.5 $0.00008 $0.00594
Haiku 4.5 $0.00004 $0.00297

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

Security

Grade A, and why

surface-benchmarker 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 2mo 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.

.github/skills/surface-benchmarker/SKILL.md · 382 lines

How it starts

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

Surface Benchmarker Skill

This skill provides guidelines for AI agents to run and interpret performance benchmarks for the Hex1b Surface API. Run benchmarks whenever you modify code in src/Hex1b/Surfaces/ to ensure performance is not regressed.

Quick Reference

Action Command
Run all Surface benchmarks dotnet run -c Release --project benchmarks/Hex1b.Benchmarks -- --filter "Surface*"
Run specific benchmark dotnet run -c Release --project benchmarks/Hex1b.Benchmarks -- --filter "*WriteText*"
Quick dry-run (sanity check) dotnet run -c Release --project benchmarks/Hex1b.Benchmarks -- --filter "Surface*" --job dry

When to Run Benchmarks

ALWAYS run benchmarks after modifying:

File/Area Critical Benchmarks
SurfaceCell.cs All (cells are used everywhere)
Surface.cs CreateSurface_*, WriteText_*, Fill_*, Clone_*
CompositeSurface.cs CompositeSurface_*
SurfaceComparer.cs Compare_*, ToTokens_*, ToAnsiString_*
SurfaceDiff.cs Compare_*
ComputeContext.cs CompositeSurface_* (computed cells use this)

Benchmark Harness Architecture

Project Structure

benchmarks/Hex1b.Benchmarks/
├── Hex1b.Benchmarks.csproj    # Console app with BenchmarkDotNet
├── Program.cs                  # Entry point
└── SurfaceBenchmarks.cs        # Surface API benchmarks

How BenchmarkDotNet Works

BenchmarkDotNet is a .NET performance benchmarking library that:

  1. Warms up the JIT by running the benchmark multiple times before measuring
  2. Runs multiple iterations to get statistically significant results
  3. Reports mean, median, standard deviation for each benchmark
  4. Tracks memory allocations (when [MemoryDiagnoser] is enabled)

Benchmark Lifecycle

┌─────────────────────────────────────────────────────────────────┐
│ 1. GlobalSetup                                                  │
│    - Runs once before all benchmarks                            │
│    - Creates pre-allocated surfaces, diffs, etc.                │
│    - Sets up shared test data                                   │
└─────────────────────────────────────────────────────────────────┘
                              ▼
┌─────────────────────────────────────────────────────────────────┐
│ 2. For each [Benchmark] method:                                 │
│    a. Warmup phase (JIT compilation, cache warming)             │
│    b. Pilot phase (determine optimal iteration count)           │
│    c. Actual measurements (multiple iterations)                 │
│    d. Results aggregation                                       │
└─────────────────────────────────────────────────────────────────┘
                              ▼
┌─────────────────────────────────────────────────────────────────┐
│ 3. Report Generation                                            │
│    - Console output with statistics                             │
│    - Optional: HTML, CSV, JSON exports                          │
└─────────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 382 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. 2mo ago First seen · 382 lines · 38 tokens per session scan A 989f935cc8e6

Subscribe to this mod's changes

surface-benchmarker is a skill published in the GitHub repository mitchdenny/hex1b (181 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 2,970 once invoked, about $0.0002 per session on Opus 5.5. 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-08-30.

Related

Other skills, from other repositories

react-ink

Use this skill when building terminal user interfaces with React Ink - interactive CLI apps, terminal dashboards, progress displays, or keyboard-driven TUI components. Triggers on React Ink, Ink components, terminal UI with React, useInput, useFocus, Box/Text layout, create-ink-app, and any task requiring rich…

pass-agent/loomkin · 77 tokens

opentelemetry-net-instrumentation

Provides guidance for implementing OpenTelemetry instrumentation in .NET codebases, covering tracing (Activities/Spans), metrics, logs, naming conventions, error handling, performance, SDK setup, resources, context propagation, and API design best practices.

Aaronontheweb/dotnet-skills · 56 tokens

mcp

Build or consume Model Context Protocol (MCP) servers and clients in .NET using the official MCP C# SDK, including stdio, Streamable HTTP, tools, prompts, resources, and capability negotiation. USE FOR: .NET MCP servers or clients; stdio versus HTTP transport choices; tools, resources, prompts, completions, and…

managedcode/dotnet-skills · 123 tokens

migrate-xunit-to-xunit-v3

Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…

managedcode/dotnet-skills · 149 tokens

semantic-kernel

Build AI-enabled .NET applications with Semantic Kernel using services, plugins, prompts, and function-calling patterns that remain testable and maintainable. USE FOR: adding AI-driven prompts, plugins, or orchestration to a .NET app; reviewing kernel construction, service registration, or plugin usage; building…

managedcode/dotnet-skills · 116 tokens

template-instantiation

Creates .NET projects from templates with validated parameters, smart defaults, Central Package Management adaptation, and latest NuGet version resolution. USE FOR: creating new dotnet projects, scaffolding solutions with multiple projects, installing or uninstalling template packages, creating projects that respect…

managedcode/dotnet-skills · 168 tokens