Ctx sanitize permissions

From ActiveMemory/ctx · View interactive version

Ctx sanitize permissions is an AI agent skill from the GitHub repository ActiveMemory/ctx. Audit tool permissions for dangerous or overly broad entries. Use to ensure safe agent configuration.

How to use this skill

Skill file

Audit agent permission configurations for dangerous patterns.

When to Use

When NOT to Use

Categories to Check

1. Hook bypass permissions

Permissions that disable safety hooks entirely.

2. Destructive command permissions

Allow patterns that cover rm -rf, git push --force,

git reset --hard, etc.

3. Injection vectors

Overly broad shell permissions that could allow arbitrary

command execution.

4. Overly broad wildcards

Permissions like Bash(*) or Write(*) that grant

unrestricted access.

Process

  1. Read the permission configuration file
  2. Check each entry against the four categories
  3. Flag dangerous entries with severity level
  4. Propose safer alternatives
  5. Apply fixes with user approval

Output Format

## Permission Audit Results

### 🔴 Critical (N)
1. `Bash(*)`: unrestricted shell access
   → Suggest: scope to specific commands

### 🟡 Warning (N)
1. `Write(/etc/*)`: write access to system dirs
   → Suggest: remove or scope to project

### ✅ Clean (N entries passed)

Quality Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.