agentsclimarketplace

Lint and fix

Skill yu-iskw/skill-inspector/.claude/skills/lint-and-fix

A sophisticated tool designed to bring quality and security to the world of AI Agent Skills

Install
npx -y skills add yu-iskw/skill-inspector --skill lint-and-fix

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Run linters and fix violations, formatting errors, or style mismatches using Trunk. Use when code quality checks fail, before submitting PRs, or to repair "broken" linting states.

SKILL.md

1.8 KB, as published. Nobody here has run it

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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.