tune-repo

tune-repo is a skill for Claude Code from alexmond/alexmskills. It costs 117 tokens per session (2,049 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,049 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.02049
Opus 5 $0.00059 $0.01025
Sonnet 5 $0.00023 $0.00410
Haiku 4.5 $0.00012 $0.00205

Measured 6d ago against content hash a8452cd527c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 6d 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 · 145 lines

How it starts

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

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 / Rustgofmt/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.

On sibling conflicts, prefer the in-repo working tool. If this repo already uses spring-javaformat and the sibling uses Spotless, the in-repo tool stays — swapping a working guardrail for a different one is churn. Surface the divergence in Phase 2 as a finding for the user to decide, never silently align.

Read the full file on GitHub · 145 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. 6d 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 (6 stars, last pushed 3d ago), licensed MIT. It adds 117 tokens to every session and 2,049 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-05.

Related

Other skills, from other repositories

verification-engine

Use when verifying build/test/lint before commit, PR, or completion claims. Runs verification pipeline in fresh subagent context with auto-repair. Triggers on /handoff-verify, pre-commit check, build verification, test validation.

sangrokjung/claude-forge · 52 tokens

verify-implementation

A workflow that runs a project’s verification skills to produce a report on coding patterns, architecture rules, and project conventions. It is intended for work after implementation, before a pull request, or during code review.

sangrokjung/claude-forge · 37 tokens

ci-pipeline-patterns

GitHub Actions workflow templates, matrix builds, caching, and monorepo CI strategies.

vibeeval/vibecosystem · 23 tokens

test-fixing

Run tests and systematically fix all failing tests using smart error grouping. Use when user asks to fix failing tests, mentions test failures, runs test suite and failures occur, or requests to make tests pass.

mhattingpete/claude-skills-marketplace · 44 tokens

audit-harness

Use when auditing HARNESS.md, pre-commit hooks, pre-push hooks, architecture gates, or CI workflows for tunacode-cli. This skill treats any mismatch, skipped gate, or failing check as a critical failure and requires manual one-by-one execution rather than make targets, batch wrappers, or summary-only audits.

alchemiststudiosDOTai/tunacode · 69 tokens

ci-pipeline

CI pipeline discipline: lint→build→test→quality→security, fail-fast, deterministic build, secret handling, PR gates.

byerlikaya/claude-starter-kit · 30 tokens