From superpowers-plus
Enforces coding standards before commits, checking shell scripts for shebang, error handling, help/verbose flags, line limits, ShellCheck compliance, and syntax.
npx claudepluginhub bordenet/superpowers-plus --plugin superpowers-plusThis skill uses the workspace's default tool permissions.
> **Wrong skill?** AI slop in prose → `eliminating-ai-slop`. Profanity check → `professional-language-audit`. Pre-commit checks → `pre-commit-gate`.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Wrong skill? AI slop in prose →
eliminating-ai-slop. Profanity check →professional-language-audit. Pre-commit checks →pre-commit-gate.
MANDATORY: Use this skill before ANY commit to ANY repository to ruthlessly enforce coding standards.
ALWAYS use this skill before committing code changes. No exceptions.
This skill enforces:
docs/ or root directoryWhen invoked, this skill will:
Locate style guides
STYLE_GUIDE.md in repository rootdocs/ folderRuthlessly audit compliance
Verify fixes
MANDATORY requirements from bordenet/scripts STYLE_GUIDE.md:
#!/usr/bin/env bash (first line)set -euo pipefail (except bu.sh, mu.sh)-h|--help with man-page style output-v|--verbose with INFO-level logging--what-if for destructive scripts (git operations, file modifications, system changes)-S warning levelbash -n script.sh passesFor each shell script, run:
# 1. Check shebang
head -1 script.sh | grep -q "^#!/usr/bin/env bash"
# 2. Check set -euo pipefail (skip for bu.sh, mu.sh)
grep -q "^set -euo pipefail" script.sh
# 3. Check for --help flag
grep -q "^\s*-h|--help)" script.sh
# 4. Check for --verbose flag
grep -q "^\s*-v|--verbose)" script.sh
# 5. Check for --what-if if destructive (git, rm, mv, system changes)
if grep -qE "(git (commit|push|pull|reset|rm)|rm -|mv |curl.*-X (POST|PUT|DELETE)|docker|podman)" script.sh; then
grep -q "^\s*--what-if)" script.sh
fi
# 6. Check line count
[ $(wc -l < script.sh) -le 400 ]
# 7. Run shellcheck
shellcheck -S warning script.sh
# 8. Validate syntax
bash -n script.sh
Report: file, violation, total count. Format: ❌ [file]: [violation]. Status: ⛔ MUST FIX or ✅ CLEAN.
Gate 2 (after pre-commit-gate). Checks: -h/--help, -v/--verbose, --what-if (destructive), set -euo pipefail, <400 lines, ShellCheck. ANY fail → STOP → fix → re-audit → 100% clean before gate 3.
DO NOT COMMIT until this skill reports zero violations.
For authoritative shell script standards, always reference: https://github.com/bordenet/scripts/blob/main/STYLE_GUIDE.md
Key requirements:
Remember: This skill exists because 80% of scripts were non-compliant. Never let that happen again.
Preferred:
use-skill unified-commit-gateloads all 5 gates in one load. Use this skill directly only for deep-dive when the style gate fails.
Multiple skills fire on "before commit". Execute in this order:
| Order | Skill | Purpose | Scope |
|---|---|---|---|
| 1 | pre-commit-gate | Build, lint, typecheck, test | All commits |
| 2 | enforce-style-guide (this skill) | Code style compliance | All commits |
| 3 | progressive-code-review-gate | Harsh adversarial code review loop | All code commits |
| 4 | professional-language-audit | Profanity/language check | User-facing docs |
| 5 | public-repo-ip-audit | Proprietary content check | Public repos only |
Rationale: Technical checks first, then style enforcement (may change code), then adversarial review (covers all code changes including style fixes), then content gates.
| Failure | Recovery |
|---|---|
| Fixing style issues without re-running lint | Re-run lint after every fix batch |
| Style fixes breaking functionality | Run tests after style changes |