Plan mode permission gating
Skill ychampion/cskill-agents/agents/claude-code/skills/plan-mode-permission-gating
Agent skills for coding CLIs, multi-agent runtimes, context engines, MCP extensions, and terminal tooling. Instead of using claude code's source code, give your agent skills to create your own!
npx -y skills add ychampion/cskill-agents --skill plan-mode-permission-gatingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Gate plan mode entry with permission updates so complex tasks run in a controlled, reviewable state.
SKILL.md
2.0 KB, 345 tokens by cl100k_base, as published. Nobody here has run it
SKILL: Plan Mode Permission Gating
Domain: permission-gating Trigger: Invoke when the user wants to enter plan mode or a complex implementation requires additional permission scrutiny before introducing file edits. Source Pattern: Distilled from reviewed plan-mode entry and permission-transition implementations.
Core Method
Wrap plan-mode entry in an explicit permission transition. Validate that the request comes from the root session, switch the shared permission context into a planning state, and emit a standardized banner that reminds agents to explore before editing. Centralizing that transition prevents individual call sites from bypassing the plan-mode contract or drifting into edits before planning is complete.
Key Rules
- Treat plan-mode entry as a read-only permission change that cannot be invoked inside a child-agent context.
- Reconfigure the shared permission context through one centralized transition path so state sync and side effects stay consistent.
- Return a human-facing banner describing the plan-mode obligations, and let follow-up instructions adapt to the active plan-mode variant.
- Keep the tool’s UI payload minimal but explicit about the no-edit rule; reuse the same instructions for both regular and interview-enhanced plan mode.
Example Application
Use this skill when a CLI state machine detects a non-trivial refactor request: enter plan mode first, flip the session into a no-edit planning state, and require a reviewed plan before touching files.
Anti-Patterns (What NOT to do)
- Don’t let a code path change permissions directly without the standardized transition, or some agents will edge into edits without the plan-mode reminder.
- Don’t ignore agent forks — the gate belongs only to the root session, so refuse plan-mode tool calls when
context.agentIdis set.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 0 of the 12 instructions most plan spec skills give in 345 tokens
Counted across 1,099 of the 1,860 authors here whose files we hold, read 2026-08-07
- ask one question at a timein 51 of 1099
- Break plans into vertical slicesin 29 of 1099, across 11 files
- Publish issues in dependency orderin 27 of 1099, across 9 files
- Iterate until user approves the breakdownin 25 of 1099, across 7 files
- Explore the repository to understand the codebase statein 24 of 1099, across 7 files
- Use domain glossary vocabularyin 23 of 1099, across 5 files
- Apply correct triage labels to published issuesin 23 of 1099, across 5 files
- prefer AFK slices over HITLin 22 of 1099, across 7 files
- write a specification before writing any codein 22 of 1099, across 14 files
- Write failing tests before implementation codein 22 of 1099, across 20 files
- ask clarifying questions until requirements are concretein 21 of 1099, across 13 files
- Respect existing architecture decision recordsin 20 of 1099, across 5 files
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.