Skip to content
Skills Library
DevOps & cloud · Review & audit

guardrails

/guardrails

Use this skill before executing a risky or hard-to-reverse action — migrations, deletions, deploy/config changes, force operations — to derive a risk level and an APPROVED/REJECTED call with a rollback plan. Don't use it for routine read-only work.

Repository
swarmery ↗
Licence
Apache-2.0
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Use this skill before executing a risky or hard-to-reverse action — migrations, deletions, deploy/config changes, force operations — to derive a risk level and an APPROVED/REJECTED call with a rollback plan. Don't use it for routine read-only work.

Original author description

Use this skill before executing a risky or hard-to-reverse action — migrations, deletions, deploy/config changes, force operations — to derive a risk level and an APPROVED/REJECTED call with a rollback plan. Don't use it for routine read-only work.

How it works

  1. What it does
  2. When to use it
  3. How to invoke
  4. Worked example
Original SKILL.md headings · 46 lines, 350 words
SKILL.md preview
---
name: guardrails
version: "1.0.0"
owner: "swarmery-core"
description: "Use this skill before executing a risky or hard-to-reverse action — migrations, deletions, deploy/config changes, force operations — to derive a risk level and an APPROVED/REJECTED call with a rollback plan. Don't use it for routine read-only work."
color: red
docs:
  status: draft
  updated: 2026-09-01
---

# 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 plan — escalating anything Critical to the user instead of auto-approving.

## When to use it

Before migrations, bulk deletes or renames, deploy/infra config changes, force operations, or anything an orchestrator flags as hard to reverse — especially inside autonomous runs where no human watches each step.

## How to invoke

`@core:tech-lead` loads it via `skills:` and applies it before risky delegations; load it manually (`/guardrails` context or read `resources/risk-checks.md`) when about to run a risky command yourself.

## Worked example

Proposed: migration adding a `flight_logs` table. Additive CREATE TABLE → Impact Low, Reversible Yes (DROP TABLE) → Risk Low; typecheck/lint/tests pass. `GUARDRAIL: APPROVED | Risk: Low | Checks: 3 pass | Rollback: DROP TABLE IF EXISTS flight_logs;`. The same flow on `DROP COLUMN` with data present would come back High and REJECTED pending an expand/contract plan.
Files in this package (2)
  • SKILL.md 3 KB
  • resources/risk-checks.md 2 KB

Versions

RepositoryScoreLicence
This page · atretyak1985/swarmery100Apache-2.0
fusengine/agents100MIT
ai-analyst-lab/ai-analyst-plugin100MIT
jacob-balslev/skill-graph100Apache-2.0
everyinc/draft-review-kit100MIT
coderbuzz/agent-toolkit90MIT
rainmanjam/poka-yoke90MIT

Database snapshot: 13.11.2026 · package version e786efb82252 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90destructive-action
    Use when the next action is irreversible: force push, drop, delete, rm, overwrite, schema migration, or permission change. Confirm current state explicitly and never proceed on assumption. Also covers scope creep: fix touched files outside the stated task.
  • 100sbp-safe-change
    Use when planning a high-risk production change — classifies the change, assesses risk, runs pre-flight checks, builds an execution plan with rollback triggers, and verifies after completion.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.