lint-and-fix
Skill2 starsChanged 10 months agoApache-2.0View on GitHub
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.
4 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- yu-iskw/coding-agent-skillstheir own version, first seen Mar 28, 2026
- yu-iskw/github-project-skillstheir own version, first seen Mar 23, 2026
- yu-iskw/openspec-skillstheir own version, first seen Feb 9, 2026
- yu-iskw/coding-agent-fabricedited, first seen Feb 5, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- yu-iskw/coding-agent-fabric★ 135% same
Wrote their own version · 3
- yu-iskw/github-project-skills★ 10same name
- yu-iskw/coding-agent-skills★ 1same name
- yu-iskw/openspec-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/tech-stack.mdcCursor rule
- .cursor/rules/typescript-coding-convention.mdcCursor rule
- .cursor/rules/unit-test-manners.mdcCursor rule
- build-and-fixSkill
- clean-projectSkill
- initialize-projectSkill
- node-upgradeSkill
- security-vulnerability-auditSkill
- setup-dev-envSkill
- test-and-fixSkill
- update-llm-modelsSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Format: Run pnpm format (which executes trunk fmt) to automatically fix trivial formatting issues.
- Very specific: line 15
Identify: Run pnpm lint (which executes trunk check) to list any remaining violations.
- Very specific: line 19
If pnpm lint passes: Finish.
- Distinctive: line 20
If it fails: Analyze the new failure and repeat the loop.
- Very specific: line 24
No more errors reported by pnpm lint.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Format: Run
pnpm format(which executestrunk fmt) to automatically fix trivial formatting issues. - Identify: Run
pnpm lint(which executestrunk check) to list any remaining violations. - 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.
- Fix: Apply the minimum necessary change to the source code to resolve the reported linting violations.
- Verify: Re-run the loop (starting from Format) until all issues are resolved.
- If
pnpm lintpasses: Finish. - If it fails: Analyze the new failure and repeat the loop.
- If
Termination Criteria
- No more errors reported by
pnpm lint. - Reached max iteration limit (default: 5).
Examples
Scenario: Fixing violations in a modified file
- Agent runs
pnpm formatto ensure consistent style. - Agent runs
pnpm lintand finds a linting violation insrc/index.ts. - Agent analyzes the error and applies a manual fix.
- Agent runs
pnpm formatagain (part of the loop). - Agent runs
pnpm lintand it now passes.
Resources
- Trunk CLI Reference: Common commands for linting and formatting.
- Trunk Documentation: Official documentation for the Trunk CLI.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

