fix-common-issues

Installation
SKILL.md

Fix Common Issues

"Automate the mechanical so humans can focus on the meaningful."

Auto-remediates mechanical issues found during plugin validation: JSON syntax, missing shebangs, script permissions, incompatible hook types, missing frontmatter fields, and settings.json defaults. Presents all proposed changes for user approval before modifying any file.


Procedure

  1. Inventory fixable issues -- review findings from previous validation results. If no validation has been run yet, inform the user and suggest running validations first. Categorize issues into fixable (mechanical) vs. non-fixable (requires human judgment). List only mechanical issues for auto-fix.

  2. Detect and plan JSON trailing comma fixes -- scan all .json files for trailing commas (comma before ] or }). Plan: parse the JSON, reformat with standard 2-space indentation, write clean JSON back.

  3. Detect and plan missing shebang fixes -- scan all .sh files for missing #!/bin/bash (or #!/usr/bin/env bash) on line 1. Plan: prepend #!/bin/bash followed by a newline.

  4. Detect and plan non-executable script fixes -- check all .sh files in scripts/ and hooks/ for missing execute permission. Plan: mark for chmod +x.

  5. Detect and plan prompt-to-command hook conversion -- scan hooks/hooks.json for entries using type: "prompt" or type: "agent" on non-ToolUseContext events (any event other than PreToolUse, PostToolUse, PermissionRequest). Plan: convert to type: "command" using echo as the command, preserve the original prompt text as a comment in the command string.

Installs
1
GitHub Stars
2
First Seen
Sep 4, 2026