Agent skill
plan-fix-linter-error
This skill should be used when fixing all violations of one or more ESLint rules across the codebase. It runs the linter, groups violations by rule and file, generates a brief with fix strategies, and creates a plan with tasks to implement the fixes.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/plan-fix-linter-error
SKILL.md
Fix Linter Errors
Target rules: $ARGUMENTS
If no arguments provided, prompt the user for at least one lint rule name.
Step 1: Gather Requirements
- Parse rules from $ARGUMENTS (space-separated)
- Run linter to collect all violations:
bash
bun run lint 2>&1 - Group violations by rule, then by file, noting:
- File path and line numbers
- Violation count per file
- Sample error messages
Step 2: Compile Brief and Delegate
Compile the gathered information into a structured brief:
Fix ESLint violations for rules: $ARGUMENTS
Violations by rule:
- [rule-name-1]: X total violations across Y files
- [file]: N violations (lines: ...)
- ...
- [rule-name-2]: X total violations across Y files
- ...
Fix strategies: extract functions, early returns, apply formatting, add types
Verification: `bun run lint 2>&1 | grep -E "($ARGUMENTS)" | wc -l` → Expected: 0
Invoke /plan-execute with this brief to create the implementation plan.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?