code-lint
SKILL.md
Run project linting by detecting the environment and fixing issues.
Process
-
Identify context:
- If code changes are involved: run
jj diff -sfirst to see changed files; then usejj diff -- pathto restrict to specific files/directories - If the user specified specific files or paths, focus on those
- If code changes are involved: run
-
Detect the preferred way to run linting: a. Check existing instructions:
README.md,CONTRIBUTING.md,CLAUDE.md,AGENTS.md,GEMINI.md,CODEX.mdb. Check task runners:Makefile,justfile,Taskfile.ymlfor lint target c. Check for scripts inbin/,.my/bin/(lint, check, *-lint, etc.) d. Check package manager scripts (package.jsonlint/check scripts, etc.) e. Fall back to standard:npm run lint,ruff check .,golangci-lint run,cargo clippy -
Run the detected linting command with auto-fix where possible
-
Handle remaining issues manually
Remaining Issues
For issues that require manual intervention:
- Categorize by severity (critical > high > medium > low)
- Provide specific fixes for each issue
- Explain impact of each fix
- Re-run lint to verify all issues are resolved
Stop Condition
- If a fix fails twice, stop and ask for guidance.
Output
- Lint command used
- Auto-fixes applied
- Remaining issues
Weekly Installs
7
Repository
sirn/dotfilesGitHub Stars
8
First Seen
12 days ago
Security Audits
Installed on
gemini-cli7
github-copilot7
codex7
kimi-cli7
amp7
cline7