guardrailslisted
Install: claude install-skill atretyak1985/swarmery
# Purpose
A risky action gets a structured go/no-go before it runs, derived from an
Impact × Reversibility matrix — not ad-hoc vibes. The output contract is
binary: `APPROVED` (possibly with conditions) or `REJECTED` (with the
reason) — never ambiguous.
# The check
1. **Short-circuit:** read-only actions (viewing files, running tests) are
APPROVED immediately — no ceremony.
2. **Risk level** = Impact (Low / High / Critical) × Reversible (Yes / No):
Low×Yes → Low; High×Yes → Medium; Low/High×No → High; Critical×anything →
Critical. The matrix and per-action guidance: `resources/risk-checks.md`.
3. **Deterministic checks** for the affected stack (typecheck/lint/tests for
code, dry-run/lint for config, `--dry-run` for migrations where the
tooling offers one). A failing deterministic check is an automatic
REJECTED.
4. **Rollback plan** with actionable commands ("`DROP TABLE IF EXISTS x;`",
"`git revert <sha>`") — "revert the change" is not a plan.
5. **Critical never auto-approves.** Anything Critical (prod data loss
potential, credential changes, irreversible deletes) escalates to the user
regardless of checks.
Verdict line: `GUARDRAIL: {APPROVED|REJECTED} | Risk: {level} | Checks:
{pass/fail/skip} | Rollback: {one line}`.
# How to use
## What it does
Derives a risk level for a proposed action from an Impact × Reversibility matrix, runs the stack's deterministic checks, and emits an unambiguous APPROVED/REJECTED call with a concrete rollback pla