tune-repo

tune-repo is a skill for Claude Code from alexmond/alexmskills. It costs 117 tokens per session (2,069 once invoked), scanned A, original, MIT.

A repository audit and cleanup workflow for Claude Code, an AI coding assistant. It checks project instructions, verification commands, static checks, and tool permissions against the repository's actual setup.

In plain words
What is it for?
Use it to audit or tune a code repository and make small changes that improve its build, test, lint, and permission setup.
Why use it?
It helps prevent an AI assistant from following outdated instructions or using an unreliable build, test, or lint process.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the tune-repo-beta plugin — 1 skill shipped together

Good fit Use it to audit or tune a code repository and make small changes that improve its build, test, lint, and permission setup.

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

Made for: Claude Code.

Or install tune-repo-beta, the plugin that ships this one along with the rest of its 1 skill.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexmond/alexmskills/tune-repo"><img src="https://agentmods.dev/badge/skills/alexmond/alexmskills/tune-repo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,069 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.00117 $0.02069
Opus 5.5 $0.00047 $0.00828
Sonnet 5.5 $0.00023 $0.00414
Haiku 4.5 $0.00012 $0.00207

Measured 2mo ago against content hash cb26b2f1521a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tune-repo 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 2mo 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.

plugins/tune-repo-beta/skills/tune-repo/SKILL.md · 148 lines

How it starts

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

Codex: Read the client path before applying this workflow.

tune-repo

Make a repository a place where Claude Code performs at its best: an accurate CLAUDE.md, a single fast deterministic verification command, enforced static guardrails, and low permission friction. The biggest accuracy killer is a stale CLAUDE.md — a wrong instruction is worse than a missing one — so this skill verifies claims against reality before adding anything.

Run the three phases below. If the user's request contains audit, do Phases 1–2 only and apply nothing. Make minimal, idiomatic changes; never weaken an existing guardrail; never invent a convention the repo doesn't already follow.

Calibrate to the project (don't impose a generic template)

Discover the repo's own conventions and match them. If sibling repositories exist in the parent directory, read the closest well-tuned one (the one with the most complete CLAUDE.md + enforced guardrails) and use it as the template, so a fleet of related repos converges on one house style instead of drifting.

Map common stacks to their guardrails and one-shot verify command, but confirm what the repo actually uses before proposing anything:

  • Java / Maven or Gradle — formatter (e.g. spring-javaformat / Spotless), Checkstyle, PMD, and a JaCoCo coverage gate; verify via mvn verify (often wrapped in a scripts/dev-verify.sh that formats then runs the full build, plus a scripts/dev-test.sh <selector> for one test). The maven-quality plugin provides these skills for Java/Maven repos.
  • JS / TS — Prettier/Biome + ESLint + tsc --noEmit + the test runner; verify via the package script that chains them (e.g. npm run check).
  • Python — ruff/black + mypy + pytest; verify via the project's task runner.
  • Go / Rust — gofmt/vet/golangci-lint + go test; fmt/clippy + cargo test.

For a non-code repo (docs, plugin/marketplace, infra), infer the verify command and guardrails from its own tooling or the closest sibling.

Read the full file on GitHub · 148 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago Changed · +3 lines cb26b2f1521a
  2. 2mo ago First seen · 145 lines · 117 tokens per session scan A a8452cd527c0

Subscribe to this mod's changes

tune-repo is a skill published in the GitHub repository alexmond/alexmskills (11 stars, last pushed 1mo ago), licensed MIT. It adds 117 tokens to every session and 2,069 once invoked, about $0.0005 per session on Opus 5.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-05.

Related

tune-repo compared with skills from other repositories

tune-repo next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tune-repoalexmond/alexmskillsSkill111mo agoMITA117Claude Code
quality-scandiegosouzapw/OmniRouteSkill91kyesterdayMITA45Claude Code, Codex
vercelasgeirtj/system_prompts_leaksSkill74k2d agoCC0-1.0A52Claude Code, Codex
gitlab-ci-patternswshobson/agentsSkill43kyesterdayMITA46Claude Code
deployment-pipeline-designwshobson/agentsSkill43kyesterdayMITA58Claude Code
green-prsdiegosouzapw/OmniRouteSkill91kyesterdayMITA51Claude Code, Codex
bazel-build-optimizationwshobson/agentsSkill43kyesterdayMITA36Claude Code