Agent skill
plan-fix-linter-error
This skill should be used when fixing all violations of one or more RuboCop cops across the codebase. It runs RuboCop, groups violations by cop 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-codyswanngt-lisa
SKILL.md
Fix Linter Errors
Target cops: $ARGUMENTS
If no arguments provided, prompt the user for at least one RuboCop cop name.
Step 1: Gather Requirements
- Parse cops from $ARGUMENTS (space-separated)
- Run RuboCop to collect all violations:
bash
bundle exec rubocop --format json 2>&1 - Group violations by cop, then by file, noting:
- File path and line numbers
- Violation count per file
- Sample offense messages
Step 2: Compile Brief and Delegate
Compile the gathered information into a structured brief:
Fix RuboCop violations for cops: $ARGUMENTS
Violations by cop:
- [CopName1]: X total violations across Y files
- [file]: N violations (lines: ...)
- ...
- [CopName2]: X total violations across Y files
- ...
Fix strategies: extract methods, reduce complexity, apply auto-correct where safe
Verification: `bundle exec rubocop --format simple 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?