Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Designs approval and sandbox policy for local coding agents: permission modes, isolation, network and destructive-command guards. Use when setting approvals. Not cloud sandboxes.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Use this skill to design or review the two layers that bound what a coding agent may do: the approval system (who decides: permission modes, rule sources, plan-mode transitions, prompt routing, leader-worker handoff) and the execution sandbox (what is reachable: process isolation, filesystem mounts, network policy, environment exposure, destructive-command controls).
Approval policy decides who decides; the sandbox decides what is reachable. Neither substitutes for the other, and both are defined here so their interaction (auto-allow inside the boundary, escalation at its edge, worker envelopes) is designed once.
This skill does not own remote execution or managed cloud sandboxes (ai-coding-agents-cloud-sandboxes), hook automation (../agents-hooks/SKILL.md), full settings-source layering and managed policy (../ai-coding-agents-settings-policy/SKILL.md), plugin trust (../ai-coding-agents-plugins/SKILL.md), or the tool execution pipeline (../ai-coding-agents-runtime-core/SKILL.md).
| Question | Read | Outcome |
|---|---|---|
| How should permission state live in the runtime? | references/permission-runtime-model.md | Central permission context, mode handling, plan-mode restore, host-owned rules |
| How do local, remote, and worker approvals differ? | references/permission-routing-local-remote-and-worker.md | Approval flows for REPL, remote sessions, and leader-worker teams |
| Which vendor modes, rule syntax, and precedence traps does an audit check first? | references/reference-runtime-permission-modes-and-rule-syntax.md | Mode ladder, protected paths, deny > ask > allow, path anchors, symlinks, hook limits |
How does OpenAI Codex model split filesystem policy and request_permissions? | references/openai-codex-request-permissions-and-split-policy.md | Read/write/deny entries, protected metadata, scoped grants |
| How does OpenAI Codex structure exec policy and network egress? | references/openai-codex-execpolicy-and-network-proxy.md | Prefix rules, strictest-decision wins, network deny precedence |
| How should process, filesystem, and workspace isolation work? | references/sandbox-process-and-filesystem-model.md | Execution modes, mounts, working directories, write boundaries |
| How should network, approvals, and destructive actions be controlled? | references/network-approval-and-destructive-action-guards.md | Outbound policy, command classes, escalation triggers |
| What sandbox mode names and backend split does Codex use? | references/openai-codex-sandbox-guardrails-may-2026.md | Mode names, platform backends, fail-closed translation, telemetry |
| What does a shipping subprocess sandbox enforce, and where does its scope end? | references/claude-code-bash-sandbox-mechanics.md | Read/write asymmetry, credential deny-vs-mask, TLS-blind allowlists, tool-scope limits |
| What is the canonical sandbox policy format? | references/sandbox-policy-format.md | Runtime-agnostic policy fields, traps, translation notes |
| How do I verify the permission boundary and sandbox before shipping? | references/hostile-path-test-checklist.md, references/escape-path-test-matrix.md | Path, symlink, interpreter-wrapper, env-injection, package-manager escape tests |
| Identity-aware or ACP-bridged approvals, build-time gates, distro allowlists? | references/goose-approval-and-distribution-layer-patterns.md | Cross-platform patterns beyond the local REPL |
A JSON schema for the permission context is in assets/templates/permission-context.schema.json.
| Need | Use Instead |
|---|---|
| Managed sandbox providers, ephemeral cloud workspaces, egress across a network boundary, cost per task | ai-coding-agents-cloud-sandboxes |
| Hook automation and lifecycle callbacks | ../agents-hooks/SKILL.md |
| Plugin trust and install-time capability boundaries | ../ai-coding-agents-plugins/SKILL.md |
| Settings-source precedence, managed policy layering, env controls | ../ai-coding-agents-settings-policy/SKILL.md |
| Remote bridge transport and local-UI remote execution | ../ai-coding-agents-surfaces/SKILL.md |
| Tool contract and execution pipeline | ../ai-coding-agents-runtime-core/SKILL.md |
| Multi-agent worker coordination | ../agents-swarm-orchestration/SKILL.md |
| Prompt-budget metrics | ../ai-coding-agents-observability-evals/SKILL.md |
Sandbox mode is not approval mode: they are related but not identical, and each needs its own enum.
bypassPermissions mode allow rules have no effect and the mode is the approval gate; deny rules still block and explicit ask rules still prompt, and a blanket allow that matches before classification switches the classifier off for that surface. Deny beats allow at every scope; see the rule-syntax reference.noexec mount plus one executable bin root). Plain seccomp filters cannot allowlist executables by path.~/.ssh or cloud credentials is not a secrets boundary.claude -p run shows neither the workspace-trust dialog nor the approval prompt for a project's .mcp.json servers (Claude Code security docs, "Trust verification"). Read the repository's committed config and .mcp.json before the first headless run, or pass --strict-mcp-config with your own --mcp-config so only servers you named load.--bare skips auto-discovery of hooks and MCP servers, so it removes your own guard hooks along with the repository's. Do not use it as a trust measure unless the guard lives somewhere the flag does not skip.Source idea: ECC the-security-guide.md (MIT), adapted.
All files under references/ are listed in the Quick Reference table above.
data/sources.json — Primary documentation and source references for approval and sandbox design../agents-hooks/SKILL.md../agents-swarm-orchestration/SKILL.md../ai-coding-agents-plugins/SKILL.md../ai-coding-agents-surfaces/SKILL.md../ai-coding-agents-runtime-core/SKILL.mdWhen prior decisions or pitfalls are relevant, consult learnings.consolidated.md if present; use learnings.md only for needed history or as the available fallback. Otherwise skip both.
After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Configures and hardens Claude Code and Codex MCP servers. Use when connecting databases, APIs, SaaS, building servers, or serving a clearance-filtered knowledge base.
日本語の概要は準備中です。原文の説明を表示しています。
Owns instruction files: AGENTS.md, CLAUDE.md, personal and repo rules. Use when writing, pruning, auditing them, sharing rules across Claude and Codex, or fixing ignored rules.
日本語の概要は準備中です。原文の説明を表示しています。
Creates and audits agent skills: SKILL.md, references, scripts, runtime metadata. Use when writing, validating, or security-reviewing a skill, or fixing truncated skill listings.
日本語の概要は準備中です。原文の説明を表示しています。
Adds per-skill learnings loops for dated patterns, mistakes, and domain facts. Use when wiring skill memory, consolidation, or drift audits.
日本語の概要は準備中です。原文の説明を表示しています。
Chooses subagent, team, workflow, or debate and launches it on Claude Code or Codex. Use when delegating, running agent review boards, or installing shared agents.
日本語の概要は準備中です。原文の説明を表示しています。