agentsclimarketplace

Lint fix

Skill yu-iskw/meta-agent-skills/.claude/skills/lint-fix

Standardized, portable AI agent skills that proactively bootstrap your codebase for autonomous development.

Install
npx -y skills add yu-iskw/meta-agent-skills --skill lint-fix

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

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 2 stars2 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

Iteratively run linters, apply auto-fixes, and resolve remaining issues using Trunk.

SKILL.md

1.8 KB, 463 tokens by cl100k_base, as published. Nobody here has run it

Lint & Fix with Trunk

Purpose

This skill provides an autonomous loop for identifying, fixing, and verifying linting and formatting issues using trunk. Use this when you need to ensure the codebase adheres to project standards or when fixing specific lint errors.

Loop Logic

  1. Auto-Format: Run trunk fmt (or trunk fmt -a) to apply automatic formatting fixes.
  2. Discovery: Run trunk check -y (or trunk check -a -y for all files) to list current linting issues.
  3. Analyze: For any remaining issues from Step 2:
    • Examine the error message and the failing code.
    • Identify the specific rule being violated (e.g., Ruff E501, Shellcheck SC2086).
  4. Fix: Apply the minimum necessary change to resolve the manual fix required.
  5. Verify: Re-run trunk check -y on the affected file(s).
    • If passed: Move to next issue.
    • If failed: Analyze the new failure and repeat the loop.

Termination Criteria

  • No more errors reported by trunk check -y.
  • Reached max iteration limit (default: 5).

Common Commands

TaskCommand
Check changed filestrunk check -y
Check all filestrunk check -a -y
Format changed filestrunk fmt
Format all filestrunk fmt -a
Check specific filetrunk check -y <path>
Format specific filetrunk fmt <path>

Examples

Scenario: Fixing Python Lint Errors

  1. trunk check -y reports ruff: D103 (missing docstring) in scripts/utils.py (after auto-fixing unused imports).
  2. Agent adds the missing docstring in scripts/utils.py.
  3. trunk check -y scripts/utils.py passes.

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.