Plan mode permission gating

From ychampion/cskill-agents · View interactive version

Plan mode permission gating is an AI agent skill from the GitHub repository ychampion/cskill-agents. Gate plan mode entry with permission updates so complex tasks run in a controlled, reviewable state.

How to use this skill

Skill file

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

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)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.