What problem does it solve? AI agents performing file and shell operations can accidentally or maliciously read, write, or execute outside the intended project scope, causing data leaks or system damage. This Skill applies mandatory guardrails to every operation so unauthorized paths and commands are blocked before they run. ## Core Features & Use Cases - Path Traversal Blocking: Rejects any path containing ../ and logs it as a P0 security issue in .ai/LOG.md. - Capability-Based Shell Control: Allows only shell commands explicitly listed in CAPABILITIES.md under shell.exec, with default-deny behavior for anything unlisted. - MCP Layer Alignment: Coordinates with the .mcp.json filesystem server so restrictions are enforced at the MCP layer, and respects PreToolUse secret-scan hook blocks. - Use Case: When an agent attempts to write a file outside the repository root or run an unapproved shell command, the operation is stopped and a Capability Gate decision is proposed instead. ## Quick Start Ask the agent to verify that the current file operation stays within the repository root and complies with CAPABILITIES.md before executing it.