Guards

5,126 mods

Guards sit in front of the tools Claude uses. They can allow, deny or rewrite a tool call before it runs, for example to block risky shell commands or keep secrets out of tool output, using the tool.call and tool.check hooks.

git-pane

baselane-sh/mods

A live side pane, read with git: the branch, ahead and behind its upstream, changed files (staged and unstaged) and the last 5 commits. Refreshes after git commands and edits. Open it with /git.

★ 3PanesGuardsCommands

gitignore-check

baselane-sh/mods

Asks before git add or commit when secret-looking files are not ignored or are already tracked. Checks with git ls-files.

★ 3GuardsAutomation

guard-devops

baselane-sh/mods

Asks before harsh DevOps commands: destructive Docker, Kubernetes and Helm calls, CI config edits, broad chmod and chown, and git commands that lose work. Add infra-guard for plain kubectl delete.

★ 3GuardsAutomation

guard-essentials

baselane-sh/mods

Asks only before harsh or disaster commands: destructive infra, git and SQL, piping downloads into a shell, sudo, leaking or committing secrets. Reads git. The quiet choice for daily work.

★ 3GuardsPromptAutomation

guard-pack

baselane-sh/mods

The 15 core Baselane guards in one mod (secrets, git, infra, packages, path jail). Some read git, measure files with find, read HOME with printenv, or check where a path really lands.

★ 3GuardsPromptAutomation

handoff

baselane-sh/mods

Adds /handoff: writes a session summary with the git status to .claude/handoff.md (never overwriting) and answers with the path. Copies the result to your clipboard.

★ 3ReskinsGuardsCommands

heatmap

baselane-sh/mods

Adds /heatmap: a 12-week calendar grid of the days you used Claude Code, like a contribution graph, shaded by turns, naming your busiest day.

★ 3ToastsGuardsCommands

hotspots

baselane-sh/mods

Adds /hotspots: the 10 files changed most often in the last 90 days, from git log, with change counts. Read-only. Copies the result to your clipboard.

★ 3ReskinsGuardsCommands

infra-guard

baselane-sh/mods

Asks before terraform destroy, kubectl delete, force-push, DROP TABLE or rm -rf.

★ 3GuardsAutomation

k8s-guard

baselane-sh/mods

Asks before kubectl apply or replace with --force, kubectl drain, helm uninstall, and kubectl delete behind global flags (plain kubectl delete is infra-guard's).

★ 3GuardsAutomation

langs

baselane-sh/mods

Counts the file types Claude edits across sessions and adds /langs: a bar list of the types edited most, each file counted once per session.

★ 3ToastsGuardsCommands

licenses

baselane-sh/mods

Adds /licenses: the licence of each direct dependency, from node_modules and Python dist-info at the git repo root. Shows unknown when it cannot tell. Read-only. Copies the result to your clipboard.

★ 3ReskinsGuardsCommands

lifecycle-pack

baselane-sh/mods

The four original lifecycle mods in one: runs your formatter, sends ntfy.sh pushes for long commands and input waits, and appends to ~/.claude/journal.log.

★ 3GuardsAutomation

loc

baselane-sh/mods

Adds /loc: lines of tracked text files by language, read with git, sorted, with a total. Skips lockfiles and binaries. Read-only. Copies the result to your clipboard.

★ 3ReskinsGuardsCommands

lockfile-guard

baselane-sh/mods

Asks before a lockfile is written or edited by hand; the package manager should change it.

★ 3GuardsAutomation

lockfile-nudge

baselane-sh/mods

At turn end, one toast when dependencies in package.json, pyproject.toml, Cargo.toml or go.mod changed and neither the matching lockfile was edited nor an install command ran.

★ 3ToastsGuards

long-run-notify

baselane-sh/mods

Sends a phone push through ntfy.sh when a Bash command ran longer than a threshold (60 seconds by default). Sends the project name and the seconds only. Does nothing until you set an ntfy topic.

★ 3GuardsAutomation

migration-guard

baselane-sh/mods

Asks before Write or Edit changes a migration that already exists; new migration files pass.

★ 3GuardsAutomation

migration-nudge

baselane-sh/mods

At turn end, one toast when a schema file changed (schema.prisma, models.py, SQL under schema/, a drizzle schema) and no migration file was created this session.

★ 3ToastsGuards

mood-ring

baselane-sh/mods

A band above the prompt with a colored dot and a word for the error and block rate of your last 20 tool calls: calm (green) under 10 percent, tense (yellow) under 30, stormy (red) from 30.

★ 3BandsGuards

night-owl

baselane-sh/mods

Records the hour of each prompt across sessions and adds /hours: a 24-hour histogram of when you work, naming your peak hour.

★ 3ToastsGuardsCommands

no-verify-guard

baselane-sh/mods

Asks before git hooks are skipped (--no-verify, commit -n, HUSKY=0, core.hooksPath=/dev/null).

★ 3GuardsAutomation

nudge-pack

baselane-sh/mods

Two turn-end reminders in one mod: test-reminder and ctx-nudge.

★ 3ToastsGuards

ops-band

baselane-sh/mods

The ops band in one row above the prompt: commits ahead and behind the upstream (git), the latest GitHub Actions run of your branch (gh), and the Mac battery (pmset).

★ 3BandsGuards