fix-rule

Diagnose ShellCheck and shuck rule deltas to fix issues at the correct linter layer.

106|3|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/ewhauser/shuck --skill fix-rule
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-rule
Source: https://github.com/ewhauser/shuck/tree/main/.claude/skills/fix-rule
Command: npx skills add https://github.com/ewhauser/shuck --skill fix-rule

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fix a shuck lint rule that has conformance deltas against ShellCheck. Use this skill whenever the user asks to fix a rule (e.g., "fix C001", "fix the deltas for C006"), debug why a rule is producing wrong results, or work through a bug document in docs/bugs/. This skill is about diagnosing whether a delta is a shuck bug or a ShellCheck quirk and then fixing at the right layer — not about implementing new rules from scratch (that's the implement-rule skill).

Core Features & Use Cases

  • Diagnose whether a delta is ShellCheck right or shuck right.
  • Fix at the layer where the problem originates (parser/semantic/facts) rather than hacking the rule.
  • Work with corpus-test deltas, bug docs, and corpus-metadata to track divergences.

Quick Start

Provide a minimal reproducer, identify the layer to fix, implement the correction, and verify via targeted corpus tests.

Frequently Asked Questions about fix-rule

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

FAQPage Schema
How do I fix ShellCheck lint rule deltas in shuck?

To fix ShellCheck lint rule deltas in shuck, diagnose whether the divergence originates from the ShellCheck tool, the shuck architecture, or a corpus mismatch, then implement the correction at the appropriate linter architecture layer.

Why does my shuck rule produce different results than ShellCheck?

Your shuck rule produces different results due to conformance deltas caused by a ShellCheck quirk, a shuck bug in the parser or semantic layer, or a corpus mismatch that requires updating corpus-metadata with divergence notes.

How do I debug a CXXX rule producing wrong linting results?

Debug a CXXX rule by tracing the delta through the linter architecture layers—parser, semantic, facts, and rules—to identify the exact layer where the conformance failure originates before applying a targeted fix.

When should I fix a linter rule directly versus correcting the parser or facts layer?

You should fix the parser or facts layer when a delta originates from shuck architecture limitations, and avoid hacking the rule directly; the structured workflow ensures fixes are implemented at the appropriate layer where the problem actually originates.

Can I use this skill to implement a new lint rule from scratch?

You cannot use this skill to implement new rules from scratch; it is specifically designed to diagnose and fix misalignments between ShellCheck and shuck rule deltas for existing rules, not to build new linting logic.

How do I verify shuck lint rule fixes using corpus tests?

Verify shuck lint rule fixes by running targeted corpus tests against the minimal reproducer after implementing the correction at the identified layer, ensuring the conformance delta is resolved across the corpus.