tune-precious

tune-precious is a skill for Claude Code from oalders/kitchen-sink. It costs 124 tokens per session (15,773 once invoked), scanned B, original, MIT.

A Perl-project maintenance skill that makes Precious the standard tool for formatting and lint checks. It also updates related configuration, continuous integration, and pre-commit checks.

In plain words
What is it for?
Use it when adding or migrating to precious.toml, consolidating perltidy settings, removing Code::TidyAll configuration, updating dist.ini, and adding lint automation and a commit hook.
Why use it?
It removes overlapping tidy and lint setup, so the project has one documented way to check code before commits and in GitHub Actions. The changes preserve the project's existing checking intent.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the kitchen-sink plugin — 9 skills, 20 commands, 12 hooks shipped together

Good fit Use it when adding or migrating to precious.toml, consolidating perltidy settings, removing Code::TidyAll configuration, updating dist.ini, and adding lint automation and a commit hook.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oalders/kitchen-sink/tune-precious
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.

Any agent
npx skills add oalders/kitchen-sink --skill tune-precious
Clone the repo
git clone --depth 1 https://github.com/oalders/kitchen-sink

Made for: Claude Code.

Or install kitchen-sink, the plugin that ships this one along with the rest of its 9 skills, 20 commands, 12 hooks.

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-precious

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/oalders/kitchen-sink/tune-precious"><img src="https://agentmods.dev/badge/skills/oalders/kitchen-sink/tune-precious.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 15,773 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00124 $0.15773
Opus 5 $0.00062 $0.07886
Sonnet 5 $0.00025 $0.03155
Haiku 4.5 $0.00012 $0.01577

Measured 10d ago against content hash 5a481078f9fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade B, and why

tune-precious scanned grade B with 1 finding 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 10d 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.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

After editing `dist.ini`, re-run `dzil build --no-tgz` and confirm `precious.toml` is absent from the build output (`find <DistName>-*/ -name precious.toml` returns nothing). Then revert regenerated build artefacts the w

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/tune-precious/SKILL.md · 778 lines

How it starts

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

Tune Precious

Overview

Six idempotent transforms that land precious as the canonical tidy/lint driver for a Perl repo (or any repo that has opted into typos):

  1. Generate or refresh precious.toml with perltidy, perlvars, omegasort-gitignore, omegasort-stopwords, optionally perlcritic, and optionally typos.
  2. Consolidate the perltidy profile to the hidden .perltidyrc and strip -b (precious manages backup mode).
  3. Delete Code::TidyAll config (.tidyallrc, tidyall.ini, .tidyall.d/ ignore line).
  4. Edit dist.ini to remove the tidyall plugin + prereqs via the bundle's PluginRemover and a trailing [RemovePrereqs] block.
  5. Add a .github/workflows/lint.yml job that installs precious + omegasort (+ typos when wired) via ubi and runs precious lint — incrementally (--git-diff-from the PR base) on pull_request events, --all on every other event.
  6. Add a self-installing scripts/pre-commit shell hook that runs precious lint --staged and blocks direct commits to the default branch, so contributors catch tidy/lint drift before pushing.

Core principle: apply the canonical recipe without changing the user's tidy/lint intent. Each transform is its own commit so any single change is revertable. Re-running on an already-tuned repo is a no-op.

Four modes the skill handles transparently:

Mode Trigger What changes
Migrate Repo has .tidyallrc, tidyall.ini, or [Test::TidyAll] in dist.ini All six transforms apply
Greenfield Perl repo, no tidyall config, no precious.toml T1 + T2 (consolidate any visible perltidyrc) + T5 + T6
Tune precious.toml already exists All transforms run as no-ops; surfaces drift between current config and canonical recipe
Typos-only No Perl files, but typos.toml / _typos.toml / .typos.toml is present T1 (typos block only) + T5; T2/T3/T4 are no-ops

Worked example PR: libwww-perl/WWW-Mechanize-Cached#35 — the recipe was extracted from this PR.

Read the full file on GitHub · 778 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. 10d ago First seen · 778 lines · 124 tokens per session scan B 5a481078f9fe

Subscribe to this mod's changes

tune-precious is a skill published in the GitHub repository oalders/kitchen-sink (4 stars, last pushed 10d ago), licensed MIT. It adds 124 tokens to every session and 15,773 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it B with 1 finding (recursive force delete). 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

systematic-debugging

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

obra/superpowers · 21 tokens

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

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens