code-lint
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
More from sirn/dotfiles
code-plan
Generate comprehensive implementation plan based on analysis. Use when user asks to plan this, create a plan, how should I implement, or wants implementation guidance.
19code-commit
Commit current changes using jj. Analyzes changes, suggests commit messages following repository conventions, proposes splits if needed, and creates commits. Use ONLY when user explicitly asks to commit changes or create commits.
18gemini-reference
Reference for calling the Gemini CLI agent from other agents. ALWAYS read BEFORE invoking Gemini to ensure correct JSON protocol, session management, and subtask delegation patterns.
18code-quality
Run comprehensive quality checks by orchestrating review, verification, testing, and linting. Use when user asks to check code quality, run full checks, or verify code health.
18context7
Retrieve up-to-date documentation context for libraries using the Context7 API. Use when needing current library documentation (React, Python stdlib, Rust, etc.) BEFORE implementing or writing code.
17code-setup-project
Sets up project development environment (wrapper scripts and/or Nix flake). Use when user wants to set up a development environment, create wrapper scripts, or add a Nix flake.
17