tune

tune is a skill for Claude Code from lexfrei/ccc. It costs 120 tokens per session (1,365 once invoked), scanned A, original, BSD-3-Clause.

A method for choosing values for three or more numeric settings, such as timeouts, batch sizes, or resource limits, using structured experiments and signal-to-noise analysis. Signal-to-noise analysis compares improvement with variation across repeated runs.

In plain words
What is it for?
Use it to optimize latency, throughput, memory use, or cost by testing several levels of multiple settings and selecting a combination.
Why use it?
It avoids adjusting one setting at a time and helps account for settings that may affect one another.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is python3 ../taguchi/scripts/experiment.py csv latency > results.csv.

Part of the doe plugin — 4 skills shipped together

Good fit Use it to optimize latency, throughput, memory use, or cost by testing several levels of multiple settings and selecting a combination.

Compare 6 skills from other repositories ↓
View source ↗ lexfrei/ccc
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/lexfrei/ccc
agentmods
npx agentmods add skills/lexfrei/ccc/tune

Made for: Claude Code.

Or install doe, the plugin that ships this one along with the rest of its 4 skills.

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 tune

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lexfrei/ccc/tune"><img src="https://agentmods.dev/badge/skills/lexfrei/ccc/tune.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,365 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
How audits are shown
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.00120 $0.01365
Opus 5.5 $0.00048 $0.00546
Sonnet 5.5 $0.00024 $0.00273
Haiku 4.5 $0.00012 $0.00136

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

Security

Grade A, and why

tune 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 1mo 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.

skills/doe/skills/tune/SKILL.md · 61 lines

How it starts

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

Tuning is the taguchi skill pointed at optimization instead of blame: same arrays, same run sheets, but the outcome is a number to improve and the analysis picks the best level of every knob at once. One L9 pass over four 3-level knobs reads out all four response curves in 9 runs; one-knob-at-a-time needs 12 runs and still misses interactions.

Step 1 — design via the taguchi skill

Use the taguchi skill's steps 1-4 for factor definition, array selection, and the run sheet, with two tuning-specific defaults:

  • Prefer 3 levels per knob — low, mid, high of the plausible range. Two levels see only a line; three see curvature, which is where optima live. L9 fits four 3-level knobs, L18 fits seven plus one binary.
  • Run every row 2+ times. Variance per row is data here, not noise to average away — the S/N analysis below needs it.

Generate the sheet with the taguchi skill's scripts/design.py (../taguchi/scripts/design.py from here) — the array, the columns and the dummy treatment are mechanical, and a hand-built sheet is where a silent transcription error enters.

Keep it in the journal (../taguchi/scripts/experiment.py new ... --repeats 3) and let ../taguchi/scripts/run.py execute the sheet — a benchmark is a command, so the array is one invocation with --metric 'p95=([0-9.]+)' instead of a dozen hand-run measurements, and the per-row repeats the S/N ratio needs come out balanced.

Measure the current configuration first, before the array. It is the reference every S/N number is judged against, and it is the cheapest check that the measurement harness reports what you think it does.

Step 2 — pick the S/N ratio for the goal

Taguchi's signal-to-noise ratio folds "good on average" and "stable" into one number computed per row from its repeats y1..yn. Higher is always better:

Goal S/N per row
Minimize (latency, RSS, cost) −10·log10(mean(y²))
Maximize (throughput, hit rate) −10·log10(mean(1/y²))
Hit a target (offset, utilization) 10·log10(ȳ²/s²)

Read the full file on GitHub · 61 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. 1mo ago First seen · 61 lines · 120 tokens per session scan A 8f1cfe0b7001

Subscribe to this mod's changes

tune is a skill published in the GitHub repository lexfrei/ccc (11 stars, last pushed 14d ago), licensed BSD-3-Clause. It adds 120 tokens to every session and 1,365 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

component-fixtures

Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.

microsoft/vscode · 53 tokens