lint-fix
Automated code maintenance loop using Trunk to perform linting, formatting, and iterative error resolution.
Introduction
The lint-fix skill provides an autonomous, recursive workflow designed to keep codebases clean and standards-compliant by leveraging the Trunk CLI. It is primarily intended for software engineers and automated agents tasked with maintaining codebase quality, ensuring consistent formatting, and resolving linting errors across diverse programming environments. By wrapping the Trunk toolset, this skill minimizes manual intervention for routine code health tasks.
-
Executes automatic formatting via trunk fmt and trunk fmt -a to ensure uniform code style across projects.
-
Performs comprehensive linting discovery using trunk check -y and trunk check -a -y, identifying rule violations from various linters such as Ruff, Shellcheck, and ESLint.
-
Implements an iterative fix-and-verify loop that analyzes failing rules, applies targeted repairs, and re-validates the codebase to ensure issues are fully resolved.
-
Provides clear termination criteria by stopping after all issues are resolved or a configurable maximum iteration limit (default 5) is reached, preventing infinite loops.
-
Supports granular control by allowing linting and formatting on specific files or the entire project scope.
-
The skill is best utilized when onboarding a new project, preparing code for pull requests, or addressing technical debt discovered by CI/CD pipelines.
-
Users should expect the agent to modify files directly in the working directory; ensure code is version-controlled before execution.
-
Primary inputs include the target repository or specific file paths; the output is a series of patches or file updates that satisfy local project configuration.
-
Constraints include a dependency on a project-specific .trunk directory or configuration file for accurate rule enforcement.
-
Typical triggers include commands such as 'fix lint errors', 'format the codebase', or 'ensure project standards'.
Repository Stats
- Stars
- 1
- Forks
- 0
- Open Issues
- 4
- Language
- Makefile
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- May 3, 2026, 09:29 PM