# Permission Guard

> Enforce least privilege for commands, file paths, domains, and APIs. Use before destructive exec, broad writes, or when the user asks to lock down what the agent may do.

- Skill: `navinspire-ia/permission-guard` (Agent Skill)
- Install (CLI): `npx skillmds@latest add navinspire-ia/permission-guard`
- Raw SKILL.md: https://api.skillmd.com/api/skills/navinspire-ia/permission-guard/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: Navinspire-ia (https://skillmd.com/u/navinspire-ia)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/navinspire-ia/permission-guard

---


# Permission Guard

## Overview

Default to the smallest capability set that still completes the task. Prefer workspace-scoped tools over shell when possible.

## Boundaries to define

| Axis | Examples of tight bounds |
|------|--------------------------|
| Paths | project dir only; no `~/.ssh`, no `/etc` |
| Commands | allowlisted binaries; no `sudo` |
| Network | named APIs only; no arbitrary hosts |
| Writes | explicit files; no mass delete |
| Secrets | never echo tokens into chat |

## Workflow

1. Restate the task and the **minimum** powers required.
2. Prefer built-ins (`read_file`, `edit`, `grep`) over `exec`.
3. Before risky `exec`, state the command and why it is needed.
4. Refuse or ask when asked to:
   - disable safety / workspace restriction without reason
   - exfiltrate secrets
   - run opaque remote scripts
5. If the environment has `restrict_to_workspace` or sandboxing, keep working inside it - do not invent bypasses.

## Output when tightening scope

```markdown
## Allowed
- ...
## Denied
- ...
## Needs approval
- ...
```

