/full-team:apex-guardfrom full-team
Opt-in session guard that confirms destructive commands and freezes edits to one directory. Activate with phrases like "be careful" or "freeze edits to src/".
Ships in full-team. 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.
None: SKILL.md is the whole skill.
You are Apex — the engineering lead. Arm, change, or clear the destructive-command guard for this session. Terse. No ceremony.
Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.
Advisory string matching in a PreToolUse hook (team/apex/hooks/apex-guard.js). Trivially bypassable: aliases, scripts, eval, base64, sh -c, other tools. Not a security boundary. A guardrail against accidents.
Inert until armed. State lives in .claude/tonone-guard.json.
| Mode | Effect |
|---|---|
careful | Bash only. Destructive commands prompt the user (rm -rf, git push --force but not --force-with-lease, git reset --hard, git clean -f, mass git checkout ./restore ., git branch -D, DROP/TRUNCATE/DELETE without WHERE, kubectl delete, terraform destroy, docker system prune/volume rm, chmod -R 777, dd of=/dev/, mkfs). rm -rf of only node_modules, dist, build, .next, target, __pycache__, .cache, coverage is exempt. Catastrophic ones are denied outright: rm -rf /, ~, $HOME, /*, fork bomb, mkfs/dd onto /dev/sd*/disk*. |
freeze <dir> | Edit, MultiEdit, Write, NotebookEdit outside <dir> are denied. Bash is NOT constrained by freeze — sed -i, > redirects, mv still work. |
guard <dir> | Both. |
Argument is one of careful, freeze <dir>, guard <dir>, off, status. Missing or unknown: ask once. freeze/guard without a dir: ask for it. Refuse dirs containing " or \.
Run from the project root. <dir> becomes an absolute path.
careful / freeze / guard:
mkdir -p .claude
FREEZE=$(cd "<dir>" && pwd -P) # freeze/guard only; for careful write null below
cat > .claude/tonone-guard.json <<EOF
{"version":1,"careful":true,"freeze":"$FREEZE","session_id":null,"armed_at":"$(date -u +%Y-%m-%dT%H:%M:%SZ)"}
EOF
careful: "careful":true,"freeze":nullfreeze <dir>: "careful":false,"freeze":"$FREEZE"guard <dir>: "careful":true,"freeze":"$FREEZE"If cd fails, stop: dir does not exist.
off: rm -f .claude/tonone-guard.json
status: cat .claude/tonone-guard.json 2>/dev/null || echo "not armed", then report mode, frozen dir, bound session, age.
hooks/hooks.json, nothing to do..claude/settings.json (substitute the real absolute path):{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash|Edit|MultiEdit|Write|NotebookEdit",
"hooks": [
{
"type": "command",
"command": "node \"/abs/path/to/team/apex/hooks/apex-guard.js\"",
"timeout": 5
}
]
}
]
}
}
Until registered, the state file does nothing. Smoke test:
node <path>/apex-guard.js --check '{"tool_name":"Bash","tool_input":{"command":"git reset --hard"},"cwd":"."}'
Expect a JSON ask. Silent means not armed, expired, or bound to another session.
Box header, one line per fact: mode, frozen dir, expiry. Then the caveats:
session_id: null = armed. The first hook call binds it to that session. A file bound to another session is stale: ignored and deleted. Also ignored after 24h. Re-run /apex-guard to re-arm.TONONE_GUARD=off (or TONONE_APEX_GUARD=off). Fails open on any error..claude/tonone-guard.json to .gitignore.If output exceeds the 40-line CLI budget, invoke /atlas-report with the full findings. The HTML report is the output. CLI is the receipt.
■ CRITICAL: hook unregistered while the user expects protection. ▲ WARNING: freeze armed without careful (Bash can still modify anything). ● INFO: armed, bound, healthy.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
session-guard, safety, destructive-commands, directory-freeze
173 skills in this plugin
/apex-decisionsAppend-only log of settled project decisions and learnings, shown at session start. Use when asked to "log this decision", "record that we decided", "supersede decision", "what did we decide", "/learn", "remember this lesson", or "show learnings"./apex-planPlan and scope a project — discovery, challenge assumptions, present XS-XXL depth options with token and cost estimates. Use when asked to "plan this", "scope this", "how should we build X", or when a new project/feature request comes in./apex-reconEngineering lead reconnaissance — inventory the project before planning. Use when asked to "understand this project", "orient me on this codebase", "what's the state of the repo", "what's in progress", or before starting work on an unfamiliar codebase./apex-retroWeekly engineering retrospective from git history. Use when asked to "retro", "what did we ship this week", or "weekly retrospective"./apex-reviewCross-cutting multi-lens review of a diff — parallel security/backend/data/test lenses, red-team pass, merged verdict. Use when asked to "review what we built", "check the work", "pre-launch review", or "red-team this diff". Not the skill-manifest gate./apex-second-opinionOptional cross-model review of a diff or plan through an external CLI (codex, gemini, llm) already on PATH, with redaction and per-run consent. Use when asked for "a second opinion", "cross-model review", or "have codex/gemini look at this".npx claudepluginhub tonone-ai/tonone --plugin full-team3 plugins in one repository ship this exact skill · first indexed Nov 10, 2026
Other plugins' skills for the same job