skill-tuning-loop

skill-tuning-loop is a skill for Claude Code, Codex from patrickserrano/lacquer. It costs 122 tokens per session (1,200 once invoked), scanned A, original, MIT.

A testing workflow for improving a coding-agent skill based on repeated problems found in real session transcripts. It proposes a limited change and checks it on separate examples before release.

In plain words
What is it for?
Use it to investigate repeated user corrections, tune skill instructions, and validate proposed skill changes.
Why use it?
It helps distinguish recurring issues from one-off feedback and reduces the risk of fixing one case while breaking others.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to investigate repeated user corrections, tune skill instructions, and validate proposed skill changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/patrickserrano/lacquer/skill-tuning-loop
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/patrickserrano/lacquer/skill-tuning-loop
Any agent
npx skills add patrickserrano/lacquer --skill skill-tuning-loop
Clone the repo
git clone --depth 1 https://github.com/patrickserrano/lacquer

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 skill-tuning-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/patrickserrano/lacquer/skill-tuning-loop.svg)](https://agentmods.dev/skills/patrickserrano/lacquer/skill-tuning-loop)
Your own site
<a href="https://agentmods.dev/skills/patrickserrano/lacquer/skill-tuning-loop"><img src="https://agentmods.dev/badge/skills/patrickserrano/lacquer/skill-tuning-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,200 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00122 $0.01200
Opus 5 $0.00061 $0.00600
Sonnet 5 $0.00024 $0.00240
Haiku 4.5 $0.00012 $0.00120

Measured 3d ago against content hash 03a2b47e5369, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

skill-tuning-loop 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 3d 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.

core/skills/skill-tuning-loop/SKILL.md · 90 lines

How it starts

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

Skill Tuning Loop

A skill earning its place in the lacquer (per skill-authoring-standard) is a judgment call today. This loop adds a second, empirical bar: does a proposed edit measurably reduce the friction real sessions hit, without regressing what already works? Run it via the skill-tuning-loop Workflow — never edit a skill's behavior-affecting content based on mined evidence without going through the validation gate below.

When to run this

  • A skill keeps needing the same correction across unrelated sessions — that's a signal worth mining, not a one-off to shrug off.
  • Before accepting an automation-proposed edit (see the continuous-tuning design this skill's workflow implements) — the gate is what makes an unattended proposal safe to merge.
  • Never on every session, and never on a single session's evidence — one grumpy correction is noise, not a pattern. Require independent evidence from multiple sessions before proposing a change.

The loop (implemented in the skill-tuning-loop Workflow)

  1. Mine. Search recorded sessions (via the agentsview MCP tools) for invocations of the target skill plus friction phrases ("no that's wrong", "actually", "don't do that"). Pull the surrounding messages for anything that looks skill-relevant.
  2. Reflect. Have an agent read the current SKILL.md against that evidence and name concrete, recurring patterns — what the skill says (or omits) and what went wrong because of it. Require ≥2-3 independent sessions per pattern; thin evidence gets flagged, not acted on.
  3. Propose. Generate a bounded edit — add/replace the few lines implicated by the evidence, not a rewrite — that still satisfies skill-authoring-standard (trigger-oriented description, instruction over exposition, no padding).
  4. Validate. Run the same small held-out task set (references/eval-cases.md if the skill has one, else 3 representative tasks derived from its description) against the old and new skill text in parallel, judged by an independent agent running on a stronger model than the one that drafted the proposal — the same posture as advisor-checkpoint, spending the expensive model at the one load-bearing moment (the ACCEPT/REJECT verdict) rather than throughout. Accept only if the new version doesn't regress any case and strictly improves at least one. A good eval case is a task plus an explicit, checkable success criterion — not "handles it well," but the specific behavior that counts as a pass — and the set should include at least one edge or ambiguous case, not just the obvious path. If you're authoring references/eval-cases.md by hand for a skill, hold it to that same bar.
  5. Report, don't merge. A REJECT verdict ends the loop — log the rejected proposal and reasoning so a future pass doesn't re-propose it without new evidence. An ACCEPT verdict produces a diff and its evidence (session excerpts, before/after eval scores) for a PR — a human merges it. This loop never commits, pushes, or merges on its own.

Read the full file on GitHub · 90 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. 3d ago First seen · 90 lines · 122 tokens per session scan A 03a2b47e5369

Subscribe to this mod's changes

skill-tuning-loop is a skill published in the GitHub repository patrickserrano/lacquer (3 stars, last pushed today), licensed MIT. It adds 122 tokens to every session and 1,200 once invoked, about $0.0006 per session on Opus 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-09-03.