Claude-skill-registry lint-and-fix
Run make format and make lint, then fix linter violations. Use when formatting code or fixing trunk/lint issues.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/lint-and-fix-yu-iskw-github-project-skill" ~/.claude/skills/majiayu000-claude-skill-registry-lint-and-fix && rm -rf "$T"
manifest:
skills/data/lint-and-fix-yu-iskw-github-project-skill/SKILL.mdsource content
Lint-and-Fix
Purpose
An autonomous loop to format the codebase, run linters, and fix any remaining violations until the project passes format and lint checks.
Loop Logic
- Format: Run
(trunk fmt).make format - Identify: Run
to list current failures.make lint - Analyze: Read the linter output and the affected code.
- Fix: Apply the minimum necessary change to resolve each issue.
- Verify: Re-run
andmake format
.make lint- If both pass: Done.
- If failures remain: Repeat from step 2 (or move to the next issue).
Termination Criteria
- No failures from
after fixes.make lint - Optional: Cap iterations (e.g. 5) to avoid unbounded loops.
Reference
Format and lint commands are defined in the project Makefile:
make format runs trunk fmt -a; make lint runs trunk check -a -y.