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.
npx agentmods add skills/patrickserrano/lacquer/skill-tuning-loopnpx skills add patrickserrano/lacquer --skill skill-tuning-loopgit clone --depth 1 https://github.com/patrickserrano/lacquerWrote 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.
[](https://agentmods.dev/skills/patrickserrano/lacquer/skill-tuning-loop)<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>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.
| Model | Per session | Once 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 |
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.
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)
- 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.
- Reflect. Have an agent read the current
SKILL.mdagainst 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. - 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). - Validate. Run the same small held-out task set (
references/eval-cases.mdif 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 asadvisor-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 authoringreferences/eval-cases.mdby hand for a skill, hold it to that same bar. - 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.
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.
- 3d ago First seen · 90 lines · 122 tokens per session scan A 03a2b47e5369
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.
Other skills, from other repositories
superplan-tdd
Use when a feature, bugfix, or behavior change has a testable contract and implementation is about to begin.
taiyi-dev
TaiyiForge 第6阶段 — TDD开发执行。四端通用。.
tdd-cycle
Execute full TDD red-green-refactor cycle with validation gates. Use when saying "TDD cycle", "test-driven development", or "full TDD workflow".
tdd
Test-Driven Development 방법론 스킬.
debugging
체계적 디버깅 및 버그 수정 스킬.
atomic-tdd
Test-first discipline. Auto-triggers on "let's implement X", "add feature Y", "fix bug Z", "write a test for", "implement", "build out", and similar pre-code-change phrases. Iron rule: failing test exists before production code. Skip only for pure docs/config changes with an explicit "skipped because:" note. Explicit…