fix-department

Fix RuboCop cop deviations to achieve full corpus conformance.

18|2|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/6/nitrocop --skill fix-department
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-department
Source: https://github.com/6/nitrocop/tree/main/.agents/skills/fix-department
Command: npx skills add https://github.com/6/nitrocop --skill fix-department

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill drives a RuboCop gem's cops toward full corpus conformance by triaging, planning, and executing targeted fixes while ensuring changes are tested and documented, reducing false positives and false negatives across the corpus.

Core Features & Use Cases

  • Triage and scoring: starts from a scoreboard to prioritize cops with the most impact and least risk.
  • End-to-end workflow: guides assessment, batch planning, per-cop fixes, batch verification, and reporting in a single cohesive process.
  • Guarded changes: encourages small, test-driven changes with explicit revert guidance and corpus checks for safety.
  • Use Case: A maintainer aims to bring a gem like rubocop-rails from partial conformance to near 100% by iteratively fixing FP/FN in a managed workstream.

Quick Start

Run the fix-department skill for a chosen gem to begin triage, planning, and fixes in a dedicated worktree.

Frequently Asked Questions about fix-department

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix RuboCop false positives and false negatives across my entire corpus?

To fix RuboCop false positives and false negatives across a corpus, you can triage cop deviations using a scoring system, apply per-cop fixes in a dedicated worktree, and run batch verification to prevent regressions.

What is the best way to achieve 100% corpus conformance for a single RuboCop gem?

Achieving 100% corpus conformance for a RuboCop gem requires phased assessment, per-cop fixes, and batch verification, working through triage and planning while enforcing unit tests and documentation updates.

How do I prioritize which RuboCop cops to fix first for maximum impact?

Prioritize RuboCop cop fixes by generating a scoreboard that ranks cops based on impact and risk, allowing you to address the most significant deviations first while keeping changes small and test-driven.

Can I fix RuboCop cop deviations without causing regressions in my testing suite?

You can fix RuboCop cop deviations without regressions by using guardrails that enforce unit tests, corpus checks, and scoped changes, providing explicit revert guidance if batch verification fails.

Does fixing RuboCop cops require updating documentation for the gem?

Fixing RuboCop cops requires updating documentation as part of the workflow, ensuring that changes to reduce false positives and false negatives are properly recorded alongside the enforced unit tests.