lint-build-fixer
Installation
SKILL.md
Lint and Build Fixer
This skill provides a systematic workflow for resolving TypeScript and ESLint errors in a project.
Workflow
1. Discovery
Analyze package.json to identify relevant scripts:
- Build/Type-check: Look for
build,type-check,tsc,check-types. - Lint: Look for
lint,eslint.
2. TypeScript/Build Fixes (Priority 1)
Fix all TypeScript or build-related errors before addressing linting.
- Identify Errors: Run the identified build or type-check command (e.g.,
npm run type-check). Alternatively, use IDE/editor TypeScript diagnostics. - Iterative Fix: Address errors one by one or in small batches.
- Verify: Re-run the build/type-check command to ensure all errors are resolved.
- Commit: Use
git commit -m "fixing the build"once the build is green.
3. ESLint/Lint Fixes (Priority 2)
After the build is passing, address linting issues.
- Auto-fix: Execute ESLint with the
--fixflag. Checkpackage.jsonfor an existing fix script (e.g.,lint:fix) or manually append--fixto the lint command. - Categorize Remaining Errors: If errors remain, group them by Rule, not by file.
- Use
scripts/sort_eslint_by_rule.pyto get a rule-based summary:npx eslint . -f json | python3 scripts/sort_eslint_by_rule.py
- Use
- Fix Rule-by-Rule: Address one rule at a time across all affected files.
- Fix all instances of
rule-ain all files before moving torule-b.
- Fix all instances of
- Incremental Verification: After fixing a specific rule in a set of files, verify the fix by running ESLint on those specific files:
npx eslint path/to/file1.ts path/to/file2.ts
- Repeat: Continue until all lint rules are addressed.
4. Final Verification
Once all individual rules are fixed:
- Run a full ESLint check on the entire project.
- Run a final TypeScript build/type-check to ensure no regressions were introduced.
Reusable Resources
Scripts
scripts/sort_eslint_by_rule.py: A Python script that takes ESLint JSON output via stdin and prints a summary of issues grouped by rule.- Usage:
[eslint command] -f json | python3 path/to/scripts/sort_eslint_by_rule.py
- Usage:
Weekly Installs
3
Repository
vajahath/skill-…ld-fixerFirst Seen
Feb 3, 2026
Security Audits
Installed on
opencode3
gemini-cli3
antigravity3
qwen-code3
claude-code3
codex3