{{REPO}}-fix

{{REPO}}-fix is a skill for Claude Code from steph-dove/klaussy-agents. It costs 57 tokens per session (927 once invoked), scanned A, a copy of fastapi-fix, MIT.

A workflow for fixing lint, formatting, and type-check errors in the current code changes. Linting checks code for common style and correctness problems, while type checking verifies that values are used with compatible types.

In plain words
What is it for?
Use it to format changed files and resolve their lint and type errors according to the repository's rules.
Why use it?
It prevents style and type issues in the changed files without altering their intended behavior or touching unrelated pre-existing problems.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Part of the klaussy plugin — 79 skills, 3 hooks, 1 MCP server shipped together

Good fit Use it to format changed files and resolve their lint and type errors according to the repository's rules.

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

Made for: Claude Code.

Or install klaussy, the plugin that ships this one along with the rest of its 79 skills, 3 hooks, 1 MCP server.

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 {{REPO}}-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/steph-dove/klaussy-agents/fix/github.svg)](https://agentmods.dev/skills/steph-dove/klaussy-agents/fix)
Your own site
<a href="https://agentmods.dev/skills/steph-dove/klaussy-agents/fix"><img src="https://agentmods.dev/badge/skills/steph-dove/klaussy-agents/fix/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 {{REPO}}-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/steph-dove/klaussy-agents/fix"><img src="https://agentmods.dev/badge/skills/steph-dove/klaussy-agents/fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 927 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 92% copy Near-identical to another mod 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.00057 $0.00927
Opus 5 $0.00028 $0.00464
Sonnet 5 $0.00011 $0.00185
Haiku 4.5 $0.00006 $0.00093

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

Security

Grade A, and why

{{REPO}}-fix 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 7d 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.

Origin

This is a copy

92% identical to fastapi-fix — 7 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

src/klaussy/templates/skills/fix/SKILL.md · 48 lines

How it starts

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

Fix all lint, format, and type errors in the current changes.

Steps

  1. Read CLAUDE.md to find the project's lint, format, and type-check commands. If they're missing, fall back to the stack defaults below.

  2. Read any .claude/rules/*.md whose paths: glob matches the files you're about to touch — they may carry style/typing rules the linter doesn't enforce.

  3. Scope to this branch's change. Build the changed-file list — the union of:

    • git diff --name-only {{BASE_BRANCH}}...HEAD (work committed on this branch)
    • git diff --name-only (unstaged) and git diff --name-only --cached (staged)

    Pass these paths to every command below so the tools judge only what this branch changed — never the whole repo. Pre-existing violations in untouched files are not yours to fix here. If the list is empty, there's nothing to fix; say so and stop. (If {{BASE_BRANCH}}...HEAD errors because the base branch isn't present locally, fall back to the uncommitted diff alone.)

  4. Run each command in this order, scoped to the changed files (apply each pass before running the next, so fixes from one don't fight the next):

    1. Format first (it normalizes whitespace and quoting that lint rules might complain about).
    2. Lint next (it picks up real style/safety issues on top of formatted code).
    3. Type-check last (type errors don't move under format/lint, but the line numbers will). If the type-checker needs whole-project context to resolve imports, run it normally but only fix errors that land in the changed files.
  5. Fix all reported issues. When format and lint disagree on a specific construct, lint wins (formatters auto-resolve; lint encodes intent).

  6. Re-run all three (still scoped to the changed files) to verify they're clean.

Stack defaults (if CLAUDE.md doesn't specify commands)

Append the changed files to each command (e.g. ruff check <files>) so it stays scoped to the branch's change.

  • Python: ruff format, ruff check, mypy (or pyright)
  • TypeScript / JavaScript: prettier --write, eslint --fix, tsc --noEmit (tsc checks the whole project — read only the changed files' errors)
  • Go: gofmt -w / goimports -w, go vet, staticcheck
  • Rust: cargo fmt, cargo clippy --fix, cargo check (cargo works per-crate — limit fixes to the changed files)

Read the full file on GitHub · 48 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. 7d ago First seen · 48 lines · 0 tokens per session scan A 71aab8abcb9d

Subscribe to this mod's changes

{{REPO}}-fix is a skill published in the GitHub repository steph-dove/klaussy-agents (16 stars, last pushed 14d ago), licensed MIT. It adds 57 tokens to every session and 927 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 92% identical to fastapi-fix, differing in 7 lines, and is treated as a copy.