agentsclimarketplace

Nightgauge careful

Skill nightgauge/nightgauge/skills/nightgauge-careful

Turn on an opt-in guardrail that blocks production-destructive shell commands (docker compose down -v, docker volume rm, kubectl delete, SQL DROP/TRUNCATE) for the rest of the working session. Use before touching a production droplet, database, or cluster — when you want a safety net while doing risky ops — and turn it off when done.From its SKILL.md

Install
npx -y skills add nightgauge/nightgauge --skill nightgauge-careful

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.5 KB, as published. Nobody here has run it

Careful Mode

Opt-in destructive-operation guardrail. On only when you ask for it — an always-on version would block routine work.

<!-- phase-registry: standalone-skill -->

Description

When you are about to touch production, flip this on. While careful mode is active, the careful-gate PreToolUse(Bash) hook blocks the documented production-destructive commands with a clear reason and the safe alternative. When off (the default), it is a complete no-op.

This complements the always-on workflow gate (which already blocks pushes to main, force-pushes, git reset --hard, git clean -f, and secret read/write) by adding the prod-data-destruction set that you only want guarded occasionally.

Implementation note: skill-frontmatter session hooks are not wired into this codebase, so careful mode is a sentinel lock (.nightgauge/careful.lock) that the always-registered gate consults — opt-in via careful on, cleared via careful off, with a TTL backstop so a forgotten lock can't block forever.

Invocation

ToolCommand
Claude Code/nightgauge-careful [on|off|status]
Codex$nightgauge-careful on

What it blocks (while ON)

  • docker compose down -v / --volumes — destroys the postgres_data volume. Fix credential issues with ALTER USER, never a volume wipe.
  • docker volume rm / docker volume prune — can delete persistent data.
  • kubectl delete … — can remove live cluster resources (prefer kubectl apply).
  • SQL DROP TABLE/DATABASE/SCHEMA and TRUNCATE — irreversible data loss.

Workflow

Phase 0: Environment Preflight

<!-- include: ../_shared/PREFLIGHT.md -->

Phase 1: Apply the requested mode

Parse the argument (on | off | status; default status) and run the deterministic command:

case "${1:-status}" in
  on)     nightgauge careful on --note "manual /careful" ;;
  off)    nightgauge careful off ;;
  status) nightgauge careful status ;;
  *)      echo "usage: /nightgauge-careful [on|off|status]" >&2; exit 2 ;;
esac

Report the resulting state to the user. If turning on, remind them to run /nightgauge-careful off (or nightgauge careful off) when the risky work is done — otherwise it auto-expires after the TTL (default 12h).

Gotchas

  • It is opt-in. Careful mode does nothing until careful on. Don't assume a prod session is guarded — check careful status first.
  • Turn it off when done. It blocks docker compose down -v etc. for everyone in the repo until off or TTL expiry — a forgotten lock is friction.
  • It complements, not replaces, the always-on gate. Force-push / main-push / secret protection are always enforced; careful adds the prod-data set.
<!-- include: ../_shared/GOTCHAS.md -->

Source

Part of the Nightgauge Issue-to-PR pipeline.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.