tune

tune is a skill for Claude Code from XRenSiu/claude-code-forge. It costs 339 tokens per session (2,745 once invoked), scanned A, original, MIT.

A review tool that studies records from repeated development and checking cycles, then proposes changes to the workflow's settings. The proposals are saved for a person to review and apply; they do not take effect automatically.

In plain words
What is it for?
Use it to analyse cycle records, identify inefficient rules or limits, and produce evidence-backed patches or configuration proposals.
Why use it?
It turns repeated results into specific improvement suggestions without silently changing the development process. Evidence helps distinguish a recurring problem from a one-off result.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the ai-dlc plugin — 28 skills, 5 agents shipped together

Good fit Use it to analyse cycle records, identify inefficient rules or limits, and produce evidence-backed patches or configuration proposals.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xrensiu/claude-code-forge/tune
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 XRenSiu/claude-code-forge --skill tune
Clone the repo
git clone --depth 1 https://github.com/XRenSiu/claude-code-forge

Made for: Claude Code.

Or install ai-dlc, the plugin that ships this one along with the rest of its 28 skills, 5 agents.

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/xrensiu/claude-code-forge/tune/github.svg)](https://agentmods.dev/skills/xrensiu/claude-code-forge/tune)
Your own site
<a href="https://agentmods.dev/skills/xrensiu/claude-code-forge/tune"><img src="https://agentmods.dev/badge/skills/xrensiu/claude-code-forge/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/xrensiu/claude-code-forge/tune"><img src="https://agentmods.dev/badge/skills/xrensiu/claude-code-forge/tune.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 339 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,745 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.00339 $0.02745
Opus 5 $0.00169 $0.01373
Sonnet 5 $0.00068 $0.00549
Haiku 4.5 $0.00034 $0.00275

Measured 3d ago against content hash da586c60f270, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 3d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/apply_proposal.py, scripts/tune.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/ai-dlc/skills/tune/SKILL.md · 117 lines

How it starts

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

tune — 环改环的外环,改动永不自动生效

产物:tune/harness-proposals-<date>.yaml(形状 assets/harness_proposals_template.yaml)与可选的 tune/*.patch。 本文件写:这个环在流水线里是什么、什么算一条合格的 harness 提案、原语与出口、不可豁免的约束。哪条提案值得开 PR 是人的份额。

缺口(Knowledge + Judgment + Control)

deletion 测试:撤掉本 skill,引擎会在某次 review 跑到 exit 30 后说"MAX_ROUNDS 太小了,改成 20"——没有跨 PR 的数据、 没有对照"是预算不够还是层错了"、直接 sed 改脚本。缺的是:数据在哪、怎么算(Σ);什么算 harness 参数需要动的信号, 什么只是一次噪声(φ);导出与出 diff 的脚本(Π);提案永不自动生效的门(γ)。

世界(Σ)

  • 这是 hill_climb 环../ai-dlc/assets/loops.yaml#hill_climb):generator = 本 skill,verifier = human.harness-review, timescale = days,trigger = cron。它读其他五个环的 memory 文件,不读实现者会话。

  • 数据全部来自已有产物specs/<slug>/{state.json, ledger.md, trace.jsonl, escape-defects.md}.aidlc/pr-watch/pr-N.json + pr-N.counters.jsonratchet-log/**/results.tsv;参数现值来自 routing.yaml / loops.yaml / pr-poll.sh 的默认值。不需要额外埋点。

  • 可动的东西是封闭集(target ∈):routing.budgets.<track>.<key> · routing.fingerprint_repeat_limit · routing.plateau_rounds · review-loop.MAX_ROUNDS · review-loop.MAX_THREAD_STRIKES · acceptance-fleet.isolation_min · pr-review.b_tier_thresholds · code-reviewer.focus_allocation · <skill>.fix_list。契约、世界、代码、skill 正文都不在集合里——它们分别是 /retro、/implement、 skill-evolve 的地盘。

  • 信号与它说明的问题

    统计 说明
    某层预算从未被碰(max_used = 0) 预算可能过宽——降 1,不影响任何已发生的升级
    某层预算在 ≥ 50% 特性上耗尽 没有 repeat / oscillation / plateau 升级 重试在推进,预算真的短——升 1
    预算耗尽 且伴随 收敛升级 不是预算问题,是层错了——不提案,写 note
    review 轮次最大值 ≤ 40% MAX_ROUNDS 且从未 exit 30 MAX_ROUNDS 可收紧(失控环更早停)
    ≥ 50% PR 撞到 MAX_ROUNDS 升 2,但风险是掩盖本该去 G3 的争议
    ACCEPT / 已裁决 ≥ 0.95 且线程 ≥ 5 sycophancy 反向代理(SWE-Review):REJECT 是合法且被期望的;进 review-loop 的 fix_list
    strike 冻结线程 ≥ 50% PR 先审 REJECT 回帖有没有证据,不动 MAX_THREAD_STRIKES
    逃逸缺陷按归因层 进对应层 skill 的 fix_list(task → donewhen-extract,plan → plan-cards,card → implement …);trace.py why 看哪道门漏的
    豁免出现在 ≥ 50% 特性 前置条件可能定错了,不是人不小心——进 AI-DLC 的 fix_list
    G1 reject 以 rule_error 为主 PSL 在推导分歧处欠定——进 psl 的 fix_list

Read the full file on GitHub · 117 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 Changed da586c60f270
  2. 5d ago First seen · 117 lines · 339 tokens per session scan A ad2f686a8838

Subscribe to this mod's changes

tune is a skill published in the GitHub repository XRenSiu/claude-code-forge (2 stars, last pushed today), licensed MIT. It adds 339 tokens to every session and 2,745 once invoked, about $0.0017 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-07.

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

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

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 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