lint-and-fix

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

A Trunk-based workflow for finding and fixing linting and formatting problems. Linters check code for likely errors or rule violations, while formatters apply consistent style.

In plain words
What is it for?
Running project-wide or focused checks, fixing ESLint and Trunk findings, formatting files, and verifying that the checks pass.
Why use it?
It turns code-quality failures into a repeatable cycle of checking, making focused fixes, formatting, and checking again.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Running project-wide or focused checks, fixing ESLint and Trunk findings, formatting files, and verifying that the checks pass.

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

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/coding-agent-fabric/lint-and-fix/github.svg)](https://agentmods.dev/skills/yu-iskw/coding-agent-fabric/lint-and-fix)
Your own site
<a href="https://agentmods.dev/skills/yu-iskw/coding-agent-fabric/lint-and-fix"><img src="https://agentmods.dev/badge/skills/yu-iskw/coding-agent-fabric/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/coding-agent-fabric/lint-and-fix"><img src="https://agentmods.dev/badge/skills/yu-iskw/coding-agent-fabric/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 676 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.00676
Opus 5 $0.00023 $0.00338
Sonnet 5 $0.00009 $0.00135
Haiku 4.5 $0.00005 $0.00068

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

How it starts

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

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. Identify: Run pnpm lint (which executes trunk check -y and eslint .) to list current violations. For a comprehensive check across the entire project, use pnpm lint:all (executes trunk check --all and eslint .). You can also run pnpm lint:eslint for focused ESLint checks.
  2. Analyze: Examine the output from Trunk or ESLint, focusing on the file path, line number, and error message. Refer to ../common-references/troubleshooting.md for environment or runtime issues.
  3. Fix:
    • For formatting issues, run pnpm format (which executes trunk fmt). To format all files in the project, use pnpm format:all.
    • For linting violations, apply the minimum necessary change to the source code to resolve the error. You can use pnpm format:eslint to automatically fix many ESLint violations.
    • For security-specific checks, you can run pnpm run lint:security.
  4. Verify: Re-run pnpm lint (or pnpm lint:all or pnpm lint:eslint depending on what you used initially).
    • If passed: Move to the next issue or finish if all are resolved.
    • If failed: Analyze the new failure and repeat the loop.

Termination Criteria

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

Examples

Scenario: Fixing a formatting violation

  1. pnpm lint reports formatting issues in src/index.ts.
  2. Agent runs pnpm format.
  3. pnpm lint now passes.

Scenario: Performing a full project cleanup

  1. Agent runs pnpm lint:all to check every file.
  2. Several formatting issues are found.
  3. Agent runs pnpm format:all to fix them all at once.
  4. pnpm lint:all now passes.

Scenario: Fixing ESLint violations

  1. pnpm lint:eslint reports several linting errors.
  2. Agent runs pnpm format:eslint.
  3. pnpm lint:eslint now passes or shows fewer errors that require manual fixing.

Read the full file on GitHub · 55 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. 9d ago First seen · 55 lines · 45 tokens per session scan A 48ae210868be

Subscribe to this mod's changes

lint-and-fix is a skill published in the GitHub repository yu-iskw/coding-agent-fabric (1 stars, last pushed 8d ago), licensed Apache-2.0. It adds 45 tokens to every session and 676 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

firebase-crashlytics

Use when implementing crash reporting, capturing fatal/non-fatal errors, recording isolate/async exceptions, customizing reports, or uploading obfuscated symbols.

evanca/flutter-ai-rules · 34 tokens

flutter-errors

Use when hitting layout errors (RenderFlex overflow, unbounded constraints, RenderBox not laid out), scroll errors, or setState-during-build errors.

evanca/flutter-ai-rules · 34 tokens

code-context

How to answer codebase questions with the code-context MCP tools (search, sql, reindex): ranked hybrid keyword+semantic search, relevance-ranked SQL aggregation over the index, and index lifecycle. Use when a question spans many files ("how does X work", "where is Y handled"), when ranking or counting code by topic…

infino-ai/code-context · 103 tokens

support-ticket-triage

Triage support tickets by pulling helpdesk context, searching issue trackers and knowledge bases in parallel, classifying the issue, and giving reps a recommended next action.

zapier/gtm-cheat-codes · 38 tokens

debug-sentry-monitor

Operate Sentry: triage/fix unresolved issues, reduce noise, audit instrumentation, and monitor after deploy. Use when "check Sentry", "fix Sentry issues", "review production errors", or "improve error tracking". One named bug through PR → workflow-fix-and-ship. Plan-only observability → plan-error-handling.

kensaurus/cursor-kenji · 75 tokens

audit-performance

Audit runtime performance (CWV, load priority). Use when "slow page", "LCP/INP/CLS", "fetchpriority", "early hints", "speculation rules", "bfcache", or "long tasks". JS payload → audit-bundle-size. Instant nav implement → enhance-web-instant-nav. Breaking point → test-load.

kensaurus/cursor-kenji · 75 tokens