Activates full safety mode combining destructive command warnings and directory-scoped edit restrictions. Prompts for a directory to restrict edits to.
Ships in gstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Activates both destructive command warnings and directory-scoped edit restrictions.
This is the combination of /careful + /freeze in a single command.
Dependency note: This skill references hook scripts from the sibling /careful
and /freeze skill directories. Both must be installed (they are installed together
by the gstack setup script).
GSTACK_STATE_ROOT=$(~/.claude/skills/gstack/bin/gstack-paths --get GSTACK_STATE_ROOT); : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
mkdir -p "$GSTACK_STATE_ROOT"/analytics
echo '{"skill":"guard","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}' >> "$GSTACK_STATE_ROOT"/analytics/skill-usage.jsonl 2>/dev/null || true
Ask the user which directory to restrict edits to. Use AskUserQuestion:
Once the user provides a directory path:
Set the user-selected boundary with the shared writer, which resolves a physical absolute path and serializes replacement with investigation cleanup:
bash "$HOME/.claude/skills/gstack/freeze/bin/freeze-state.sh" set "<user-provided-path>"
On helper failure, do not claim the boundary is active. Preserve the state and report recovery; never bypass the shared writer with a direct write or deletion.
Tell the user:
<path>/. Edits outside this directory are blocked."/unfreeze. Ending the session stops its hooks but does not delete that boundary."See /careful for the full list of destructive command patterns and safe exceptions.
See /freeze for how edit boundary enforcement works.
What SKILL.md sets; muted values are Claude Code's defaults
Bashbash -c "exec bash \"$HOME/.claude/skills/gstack/careful/bin/check-careful.sh\""PowerShellbash -c "exec bash \"$HOME/.claude/skills/gstack/careful/bin/check-careful.sh\""Editbash -c "exec bash \"$HOME/.claude/skills/gstack/freeze/bin/check-freeze.sh\""Writebash -c "exec bash \"$HOME/.claude/skills/gstack/freeze/bin/check-freeze.sh\""NotebookEditbash -c "exec bash \"$HOME/.claude/skills/gstack/freeze/bin/check-freeze.sh\""Three short reads, in order
/gstack:guardfrom gstack
gstack@giofornari is listed by giofornari/skills — review the source before installing
npx claudepluginhub giofornari/skills --plugin gstack35 skills in this plugin
/autoplanAuto-review pipeline — runs the CEO, design, eng and DX reviews in order (lean run: one reviewer), auto-deciding. Use for: run all reviews, automatic review pipeline. (gstack)/benchmarkWeb performance regression detection. Use for: web performance benchmark, check page speed. (gstack)/browseDrive a real browser through Aside: open a page, read it, click through a flow, take screenshots, check console errors. Use for: browse a page, open this url, take page screenshot. (gstack)/canaryPost-deploy canary monitoring. Use for: monitor after deploy, canary check. (gstack)Other plugins' skills for the same job