guardrail-optimizer
Installation
SKILL.md
Guardrail Optimizer
Leading word: allowlist — the set of outside-cwd paths AND dangerous-command patterns the guardrail permits without prompting; this skill finds candidates and adds them.
Prerequisites
- Node.js ≥ 24 (native TypeScript support via
--experimental-strip-types) - Python3 available (helper scripts are stdlib-only)
- Session JSONL files under
~/.pi/agent/sessions/
Flow
The skill analyzes two independent dimensions of guardrail friction:
- Path access — outside-cwd paths that trigger
pathAccessprompts - Command execution — bash commands that trigger
permissionGateprompts
Both scanners share the same --sessions, --cwd, --limit, and --global flags. Run them in parallel for efficiency.