guard
Full safety mode: destructive command warnings + directory-scoped edits.
Skill by coder100001
Chalk Labs
Need help deploying guard?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/coder100001-guard
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
guard- Description
- Full safety mode: destructive command warnings + directory-scoped edits. (gstack)
- License
- MIT
- Instructions
- 61 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- allowed-tools: must be a space-separated string
Files (2)
- SKILL.md
- SKILL.md.tmpl
SKILL.md (first lines)
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
<!-- Regenerate: bun run gen:skill-docs -->
## When to invoke this skill
Combines /careful (warns before rm -rf, DROP TABLE, force-push, etc.) with
/freeze (blocks edits outside a specified directory). Use for maximum safety
when touching prod or debugging live systems. Use when asked to "guard mode",
"full safety", "lock it down", or "maximum safety".
# /guard — Full Safety Mode
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).
```bash
mkdir -p ~/.gstack/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/analytics/skill-usage.jsonl 2>/dev/null || true
```
## Setup
Ask the user which directory to restrict edits to. Use AskUserQuestion:
- Question: "Guard mode: which directory should edits be restricted to? Destructive command warnings are always on. Files outside the chosen path will be blocked from editing."
- Text input (not multiple choice) — the user types a path.
Once the user provides a directory path:
1. Resolve it to an absolute path:
```bash
FREEZE_DIR=$(cd "<user-provided-path>" 2>/dev/null && pwd)
echo "$FREEZE_DIR"
```
2. Ensure trailing slash and save to the freeze state file:
```bash
FREEZE_DIR="${FREEZE_DIR%/}/"
eval "$(~/.claude/skills/gstack/bin/gstack-paths)"
STATE_DIR="$GSTACK_STATE_ROOT"
mkdir -p "$STATE_DIR"
echo "$FREEZE_DIR" > "$STATE_DIR/freeze-dir.txt"
echo "Freeze boundary set: $FREEZE_DIR"
```
Tell the user:
- "**Guard mode active.** Two protections are now running:"
- "1. **Destructive command warnings** — rm -rf, DROP TABLE, force-push, etc. will warn before executing (you can override)"
- "2. **Edit boundary** — file edits restricted to `<path>/`. Edits outside this directory are blocked."
- "To remove the edit boundary, run `/unfreeze`. To deactivate everything, end the session."
## What's protected
See `/careful` for the full list of destructive command patterns and safe exceptions.
See `/freeze` for how edit boundary enforcement works.From coder100001/gstack-superpowers-hybrid-skill, MIT.
More from coder100001/gstack-superpowers-hybrid-skill
- 0.514score
gs-hybrid-v3
coder100001
AI Engineering Governance System — 5-state workflow (DEFINE→PLAN→IMPLEMENT→VALIDATE→SHIP).
SkillBFreshness: BClaude Code +9 - 0.469score
design
coder100001
Use when in ARCH_REVIEW to produce a concrete design doc with tradeoffs, constraints, and decision rationale.
SkillCFreshness: CClaude Code +9 - 0.457score
qa
coder100001
Systematically QA test a web application and fix bugs found.
SkillCFreshness: CClaude Code +9 - 0.456score
benchmark
coder100001
Performance regression detection using the browse daemon.
SkillCFreshness: CClaude Code +9 - 0.449score
context-save
coder100001
Save working context.
SkillCFreshness: CClaude Code +9 - 0.449score
cso
coder100001
Chief Security Officer mode.
SkillCFreshness: CClaude Code +9 - 0.449score
plan-eng-review
coder100001
Eng manager-mode plan review.
SkillCFreshness: CClaude Code +9 - 0.449score
retro
coder100001
Weekly engineering retrospective.
SkillCFreshness: CClaude Code +9 - 0.446score
learn
coder100001
Manage project learnings.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 26, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from coder100001
- 0.514score
gs-hybrid-v3
coder100001
AI Engineering Governance System — 5-state workflow (DEFINE→PLAN→IMPLEMENT→VALIDATE→SHIP).
SkillBFreshness: BClaude Code +9 - 0.469score
design
coder100001
Use when in ARCH_REVIEW to produce a concrete design doc with tradeoffs, constraints, and decision rationale.
SkillCFreshness: CClaude Code +9 - 0.457score
qa
coder100001
Systematically QA test a web application and fix bugs found.
SkillCFreshness: CClaude Code +9 - 0.456score
benchmark
coder100001
Performance regression detection using the browse daemon.
SkillCFreshness: CClaude Code +9 - 0.449score
context-save
coder100001
Save working context.
SkillCFreshness: CClaude Code +9 - 0.449score
cso
coder100001
Chief Security Officer mode.
SkillCFreshness: CClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get guard running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
guard skill. Agent Mart. https://agentmart.dev/skills/coder100001-guard (last updated 2026-10-24)