Skip to content
Skill

Tune

Audits your agent setup against past sessions and proposes one-line harness fixes

Tune is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
9
Last commit
License
MIT
Listing updated

Similar skills

About Tune

Tune is a periodic retrospective for an AI coding agent's harness. It reads recent session transcripts from the current project, optionally across all projects, and looks for corrections the user keeps repeating, permission prompts approved over and over, tool errors that recur, and rules that are violated despite being written down. It also checks for rules, skills and allowlist entries that no longer earn their context cost.

The workflow inventories the existing CLAUDE.md files, installed skills and settings before mining, so findings are judged against the current setup. Mining is delegated to cheaper parallel workers, one per evidence stream. Findings need at least two occurrences to be proposed, and each is presented one at a time with quoted, dated evidence and an exact proposed change. The change is chosen from an escalation ladder that prefers the weakest mechanism likely to work, such as a rule, an allowlist entry, a script, or a hook. For mechanical changes, the skill injects the violation to confirm the new config actually blocks it.

Nothing is applied without explicit approval. Accepted and rejected decisions are logged to a local learnings file so rejected ideas are not raised again, and recurring principles can be promoted into a separate principles file. The skill expects Claude Code session transcripts on disk and the user's project directory layout.

When your agent uses it

Harness retro — turn recurring agent mistakes into one-line fixes. Mines recent session transcripts (plus the bugfix log and past runs) for repeated corrections, permission friction, and rules that get violated anyway, then proposes ranked changes one at a time: a CLAUDE.md rule, an allowlist entry, a script replacing repeated prose, a new-skill candidate, or a deletion that no longer earns its context cost. Nothing applies without approval; accepted/rejected findings persist in out/tune/learnings.md. Use when the user says "/tune", "improve my setup", "why does claude keep doing X", or after a frustrating session. done's one-line retro catches one lesson at ship time; tune is the periodic audit of the whole harness.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (8 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the daily plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add duthaho/skillhub
/plugin install daily@skillhub

Or copy only this skill to ~/.claude/skills/tune:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/duthaho/skillhub.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/tune &&
cp -R "$tmp/.claude/skills/tune" ~/.claude/skills/tune &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/tune inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/tune to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/duthaho/skillhub.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/tune &&
cp -R "$tmp/.claude/skills/tune" ~/.agents/skills/tune &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/tune inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/tune to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/duthaho/skillhub.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/tune &&
cp -R "$tmp/.claude/skills/tune" ~/.cursor/skills/tune &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/tune inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/duthaho/skillhub.git --path .claude/skills/tune

Or copy the folder to ~/.gemini/skills/tune yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/tune:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/duthaho/skillhub.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/tune &&
cp -R "$tmp/.claude/skills/tune" ~/.copilot/skills/tune &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/tune inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/duthaho/skillhub.git

Then copy skillhub/.claude/skills/tune into your agent's skills folder as tune. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Transcript mining
Parallel workers scan recent sessions for repeated corrections, friction and violated rules.
Two-strike filtering
Only mistakes that recur across sessions become proposals; single incidents are parked.
One-at-a-time proposals
Each finding is shown with quoted evidence and an exact change for explicit approval.
Deletion review
Flags rules and skills that no longer justify the context they consume.
Mechanism escalation
Prefers a rule, allowlist entry or script over prose, and hooks only for hard blocks.
Learnings log
Records accepted and rejected findings so past decisions guide future runs.

Good for

  • Find out why the agent keeps repeating the same mistake
  • Reduce repeated permission prompts for safe commands
  • Turn a procedure the agent re-derives every session into a script
  • Trim a bloated CLAUDE.md of rules that no longer matter
  • Review the harness after a frustrating session

Tune FAQ

When does the skill trigger?

When the user says /tune, asks to improve their setup, asks why the agent keeps doing something, or after a frustrating session.

Does Tune change my configuration automatically?

No. Nothing is applied without an explicit yes for each proposed change.

What does /tune all do?

It widens the mining to every project under the Claude projects directory, with shallower analysis per project.

Where are findings stored?

Accepted and rejected findings persist in out/tune/learnings.md, and quotes are kept in out/tune/ files that should be gitignored.

How do I install Tune in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/tune to use it in all your projects, or to .claude/skills/tune in one project. Or install the daily plugin, which includes it: /plugin marketplace add duthaho/skillhub, then /plugin install daily@skillhub.

Does Tune run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Tune?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Tune?

The closest alternatives to Tune are Regression finder, Reflect, Review sessions, Retro and Scan sessions and learn.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from duthaho/skillhub

  1. Finds where refactoring pays off from git churn and bug history, then applies it safely

    • Open source
    • 9 GitHub stars
    • Developer tools
  2. Lists parked items from your other skills that are now due for a re-check

    • Open source
    • 9 GitHub stars
    • Productivity
  3. Maps peer projects and their user demand to decide which features to adopt

    • Open source
    • 9 GitHub stars
    • Developer tools
  4. Builds scored, evidence-backed technology decision briefs comparing options for a context

    • Open source
    • 9 GitHub stars
    • Developer tools
  5. Generates grounded architecture docs and mermaid diagrams for a codebase or feature

    • Open source
    • 9 GitHub stars
    • Documentation review
  6. Reproduce, root-cause, fix test-first and verify a bug before shipping the change

    • Open source
    • 9 GitHub stars
    • Developer tools