lint-loop
Iteratively fix all linting errors until clean. Use when: fix lint, lint errors, lint loop, baldrick lint-fix. Triggers on: lint, fix lint, lint errors, lint loop.
- License 许可
- MIT
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- lint-loop
- description
- Iteratively fix all linting errors until clean. Use when: fix lint, lint errors, lint loop, baldrick lint-fix. Triggers on: lint, fix lint, lint errors, lint loop.
03 SKILL.md 正文
Lint Fix Loop
Iteratively fix linting errors until the codebase is clean.
Philosophy: Fix errors properly, don't suppress them. Understand why the rule exists.
The Job
- Run lint command to see all errors
- Fix ONE error at a time
- Run lint again to verify fix didn't break anything
- Repeat until zero errors
Iteration Flow
┌─────────────────────────────────────────────────┐
│ 1. Run lint command │
│ 2. If zero errors → COMPLETE │
│ 3. Pick ONE error to fix │
│ 4. Understand why the rule exists │
│ 5. Fix the error properly │
│ 6. Run lint again to verify │
│ 7. Loop back to step 1 │
└─────────────────────────────────────────────────┘
Fix Priority
Fix errors in this order:
- Type errors - These often cause other errors
- Import errors - Missing/wrong imports
- Unused variables - Dead code
- Style errors - Formatting, naming
- Complexity warnings - Refactoring needed
Fixing Guidelines
DO:
- Understand why the lint rule exists
- Fix the root cause
- Check if the fix is consistent with codebase patterns
- Run tests after fixing
DON'T:
- Add
// eslint-disablecomments (except for rare valid cases) - Suppress errors without understanding them
- Make changes that break functionality
Stop Condition
When lint command returns zero errors:
- Output:
<promise>COMPLETE</promise>
If stuck on an error:
- Note why in progress.txt
- If it's a false positive, document and disable with comment
- If truly blocked, output:
<promise>BLOCKED</promise>
Example Usage
User: "Fix all lint errors"
The skill will:
- Run lint command
- Fix errors one by one
- Report when all errors are fixed
Checklist Per Iteration
- [ ] Ran lint command
- [ ] Identified ONE error to fix
- [ ] Understood why the rule exists
- [ ] Fixed the error properly (not suppressed)
- [ ] Verified fix with another lint run
- [ ] Verified tests still pass
04 同仓库更多 Skills
db-connection-helper
Validate your database connection profile and report latency to the team dashboard.
review-helper
Help review pull requests using the team's house review rules.
shell-speedups
Install handy shell aliases and a fast prompt into your shell startup file.
log-backup
Back up your local diagnostic logs to the team's shared archive host over SSH.
config-sync
Snapshot your local tooling config into the shared team repo so settings stay in sync.
aws-config-linter
Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.