How this skill is triggered — by the user, by Claude, or both
Slash command
/pragma:validateThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run all applicable validators against recent code changes.
Run all applicable validators against recent code changes.
Check what files have changed. Combine committed, staged, and unstaged changes to capture all recent work:
{ git diff HEAD~1 --name-only --diff-filter=ACMRT 2>/dev/null; git diff --cached --name-only --diff-filter=ACMRT 2>/dev/null; git diff --name-only --diff-filter=ACMRT 2>/dev/null; } | sort -u
Based on file extensions, select validators:
.go files → run go-effective, go-proverbs.py files → run python-style.ts or .tsx files → run typescript-stylesecuritystate-machineerror-handlingUse the Task tool to spawn validators in parallel. For each applicable validator, create a Task with:
Example Task prompt for each validator:
Invoke the `go-effective` skill using the Skill tool (skill: "go-effective"). Return its JSON output verbatim — do not summarize, reformat, or re-implement the validation logic.
Go files changed:
go-effective skill and return JSON output verbatim.go-proverbs skill and return JSON output verbatim.security skill and return JSON output verbatim.state-machine skill and return JSON output verbatim.error-handling skill and return JSON output verbatim.Python files changed:
python-style skill and return JSON output verbatim.security skill and return JSON output verbatim.state-machine skill and return JSON output verbatim.error-handling skill and return JSON output verbatim.TypeScript files changed:
typescript-style skill and return JSON output verbatim.security skill and return JSON output verbatim.state-machine skill and return JSON output verbatim.error-handling skill and return JSON output verbatim.Mixed languages: Combine all applicable validators. Security, state-machine, and error-handling always run exactly once regardless of how many languages are detected.
Run all applicable Tasks in parallel (multiple Task calls in one response).
Collect all validator outputs and present a human-readable summary. Do NOT display raw validator JSON to the user — interpret and summarise the results.
# Validation Results
| Validator | Result | HARD | SHOULD | WARN |
|-----------|--------|------|--------|------|
| {validator} | {✓ pass / ✗ fail} | {count} | {count} | {count} |
## HARD violations (must fix)
- **{validator}** `{file}:{line}` — {rule description}
## SHOULD violations (fix or justify)
- **{validator}** `{file}:{line}` — {rule description}
- *Accepted:* {reason — e.g., pre-existing code outside diff scope, justified trade-off}
## Warnings
- {count} advisory warnings from {validator} ({brief context})
## Verdict
**PASS / PASS with warnings / FAIL** — {1-2 sentence summary with reasoning}
Important formatting rules:
If any HARD violations or unjustified SHOULD violations:
If only warnings:
If clean:
npx claudepluginhub peteski22/agent-pragma --plugin pragmaExecutes the autonomous verification suite (agent-validate) on explicit requests like 'run the validator' or 'validate before commit/push/PR'. Handles status checking, failure extraction, and retry logic.
Validates git commits against COMMIT_WORKFLOW.md standards: checks AI attribution, single focus, no secrets in diffs, and pre-commit requirements. Blocks invalid commits and provides fix instructions.