agentsclimarketplace

Plan mode permission gating

Skill ychampion/cskill-agents/agents/codex/skills/plan-mode-permission-gating

Gate plan mode entry with permission updates so complex tasks run in a controlled, reviewable state.From its SKILL.md

Install
npx -y skills add ychampion/cskill-agents --skill plan-mode-permission-gating

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

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.agentId is set.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.