lint-and-fix

lint-and-fix is a skill for Claude Code from yu-iskw/skill-inspector. It costs 45 tokens per session (444 once invoked), scanned A, original, Apache-2.0.

An automated loop for formatting code and fixing lint errors with Trunk, a tool that checks code style and common problems. It runs the project's formatting and lint commands, then addresses the reported issues.

In plain words
What is it for?
Use it when linting fails, before submitting a pull request, or when formatting and code-quality checks need repair.
Why use it?
It removes the manual cycle of finding style violations, locating their files and lines, making fixes, and checking again.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when linting fails, before submitting a pull request, or when formatting and code-quality checks need repair.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yu-iskw/skill-inspector/lint-and-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 yu-iskw/skill-inspector --skill lint-and-fix
Clone the repo
git clone --depth 1 https://github.com/yu-iskw/skill-inspector

Made for: Claude Code.

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 lint-and-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/yu-iskw/skill-inspector/lint-and-fix/github.svg)](https://agentmods.dev/skills/yu-iskw/skill-inspector/lint-and-fix)
Your own site
<a href="https://agentmods.dev/skills/yu-iskw/skill-inspector/lint-and-fix"><img src="https://agentmods.dev/badge/skills/yu-iskw/skill-inspector/lint-and-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 lint-and-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/yu-iskw/skill-inspector/lint-and-fix"><img src="https://agentmods.dev/badge/skills/yu-iskw/skill-inspector/lint-and-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 444 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.00045 $0.00444
Opus 5 $0.00023 $0.00222
Sonnet 5 $0.00009 $0.00089
Haiku 4.5 $0.00005 $0.00044

Measured 12d ago against content hash 2ecd7a925a18, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

lint-and-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 12d 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.

.claude/skills/lint-and-fix/SKILL.md · 41 lines

What it actually says

Lint and Fix Loop: Trunk

Purpose

An autonomous loop for the agent to identify, fix, and verify linting and formatting violations using Trunk.

Loop Logic

  1. Format: Run pnpm format (which executes trunk fmt) to automatically fix trivial formatting issues.
  2. Identify: Run pnpm lint (which executes trunk check) to list any remaining violations.
  3. Analyze: Examine the output from Trunk, focusing on the file path, line number, and error message. Refer to ../common-references/troubleshooting.md for environment or runtime issues.
  4. Fix: Apply the minimum necessary change to the source code to resolve the reported linting violations.
  5. Verify: Re-run the loop (starting from Format) until all issues are resolved.
    • If pnpm lint passes: Finish.
    • If it fails: Analyze the new failure and repeat the loop.

Termination Criteria

  • No more errors reported by pnpm lint.
  • Reached max iteration limit (default: 5).

Examples

Scenario: Fixing violations in a modified file

  1. Agent runs pnpm format to ensure consistent style.
  2. Agent runs pnpm lint and finds a linting violation in src/index.ts.
  3. Agent analyzes the error and applies a manual fix.
  4. Agent runs pnpm format again (part of the loop).
  5. Agent runs pnpm lint and it now passes.

Resources

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. 12d ago First seen · 41 lines · 45 tokens per session scan A 2ecd7a925a18

Subscribe to this mod's changes

lint-and-fix is a skill published in the GitHub repository yu-iskw/skill-inspector (2 stars, last pushed 11d ago), licensed Apache-2.0. It adds 45 tokens to every session and 444 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

codex

OpenAI Codex CLI wrapper — three modes. Code review: independent diff review via codex review with pass/fail gate. Challenge: adversarial mode that tries to break your code. Consult: ask codex anything with session continuity for follow-ups. The "200 IQ autistic developer" second opinion. Use when asked to "codex…

CarbeneAI/Forge · 95 tokens

canary

Post-deploy canary monitoring. Watches the live app for console errors, performance regressions, and page failures using the browse daemon. Takes periodic screenshots, compares against pre-deploy baselines, and alerts on anomalies. Use when: "monitor deploy", "canary", "post-deploy check", "watch production", "verify…

CarbeneAI/Forge · 75 tokens

investigate

Systematic debugging with root cause investigation. Four phases: investigate, analyze, hypothesize, implement. Iron Law: no fixes without root cause. Use when asked to "debug this", "fix this bug", "why is this broken", "investigate this error", or "root cause analysis". Proactively suggest when the user reports…

CarbeneAI/Forge · 85 tokens

RedTeam

Adversarial analysis with parallel agents to stress-test ideas and strategies. USE WHEN user mentions red team, devil's advocate, adversarial analysis, stress test idea, challenge proposal, poke holes, find weaknesses, OR wants critical evaluation of plans, proposals, strategies, or arguments.

CarbeneAI/Forge · 59 tokens

wiki-lint

Health check the Obsidian wiki vault. Finds orphan pages, dead wikilinks, stale claims, missing cross-references, frontmatter gaps, and empty sections. Creates or updates Dataview dashboards. Generates canvas maps. Triggers on: "lint", "health check", "clean up wiki", "check the wiki", "wiki maintenance", "find…

CarbeneAI/Forge · 84 tokens

anti-debug-bypass

Detect and neutralize anti-debug / anti-VM checks — IsDebuggerPresent, ptrace, NtGlobalFlag, timing, hardware-breakpoint detection.

MingyiSecLab/Mingyi-Atlas · 35 tokens