Skip to content
Agentmart
Submit a tool

guard

Activate safety guard mode — restrict edit scope, confirm destructive ops

Skill by Hbin77

IndexedMIT
Write a review

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/hbin77-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.

We use your email only for this newsletter. Privacy

About

Activate safety guard mode — restrict edit scope, confirm destructive ops

Use cases: writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/guard

What's inside

Skill name
guard
Description
Activate safety guard mode — restrict edit scope, confirm destructive ops
License
MIT
Instructions
53 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

Activate safety guard mode. Restricts editing scope and adds extra confirmation for destructive operations.

Scope: the task/scope the user described when invoking this skill (if none given, ask or infer from context)

## Modes
### Mode 1: Freeze (edit scope restriction)
When the task/scope the user described when invoking this skill (if none given, ask or infer from context) contains a path or file pattern:
- ONLY files matching the specified scope may be edited; all others are READ-ONLY this session.
- Before every edit, verify the target is within scope. If out of scope: warn and ask for explicit confirmation.
- Example: `$guard src/auth/` → only files under `src/auth/` may be modified.

### Mode 2: Careful (destructive operation warnings)
When the task/scope the user described when invoking this skill (if none given, ask or infer from context) is empty or contains "careful":
- Before any destructive shell command, print a warning and ask for confirmation:
  - `rm`, `git reset`, `git checkout .`, `git clean`
  - `DROP`, `TRUNCATE`, `DELETE FROM`
  - `docker rm`, `docker system prune`
  - Any command modifying files outside the project directory
- Before large-scale edits (5+ files), show a summary first.
- Before any git push, show what will be pushed.

### Mode 3: Full Guard (freeze + careful)
When the task/scope the user described when invoking this skill (if none given, ask or infer from context) contains both a path and "careful", apply both.

## Activation
Print:
```
Guard Mode Activated
- Scope: [restricted path or "all files"]
- Mode: [freeze / careful / full]
- To deactivate: tell me "guard off"
```

## During Session
Before every edit or shell command, check:
1. **Freeze check**: is the target within the allowed scope?
2. **Careful check**: is this destructive or large-scale?
3. If either fails → warn + ask confirmation before proceeding.

## Deactivation
When the user says "guard off" or "가드 해제":
```
Guard Mode Deactivated
- All restrictions removed
```

## Rules
- Guard mode is advisory — the user can always override with explicit confirmation.
- Don't be annoying — only warn on genuinely risky operations, not every edit.
- Always show what you're about to do when asking for confirmation.
- Track which files were modified during guard mode for the deactivation summary.

From Hbin77/codex-kit, MIT.

More from Hbin77/codex-kit

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 7, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Hbin77

Cite this page

guard skill. Agent Mart. https://agentmart.dev/skills/hbin77-guard (last updated 2026-10-24)