katas-plan-mode-exploration

Explores unknown repositories in read-only Plan Mode and produces a human-signed plan.md before enabling writes.

Updated Jun 28, 2026
One-click install
npx skills add https://github.com/JaviMontano/claude-plugins --skill katas-plan-mode-exploration-javimontano
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: katas-plan-mode-exploration
Source: https://github.com/JaviMontano/claude-plugins/tree/main/plugins/claude-native-toolkit/skills/katas-plan-mode-exploration
Command: npx skills add https://github.com/JaviMontano/claude-plugins --skill katas-plan-mode-exploration-javimontano

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Letting an agent loose with write permissions on an unfamiliar or critical codebase risks destructive mistakes before anyone reviews its reasoning. This Skill enforces a two-mode contract: the agent explores in read-only Plan Mode, drafts an auditable plan.md with findings and a proposed architecture, and only transitions to writing after a human signs the plan. ## Core Features & Use Cases - Read-only exploration: Configures the agent with permission_mode="plan" and a read-only toolset (Read, Glob, Grep) so it can map structure, conventions, and dependencies without touching disk. - Hard write barrier via hooks: A PreToolUse hook denies write-capable tools (Write, Edit, NotebookEdit, and Bash commands with redirections) while Plan Mode is active, rather than merely discouraging them. - Signed approval artifact: Produces a frozen plan.md that a human signs; any change to the plan forces a return to Plan Mode and re-approval. - Use Case: You inherit an unfamiliar Python microservices repo and need to add JWT authentication to the payments service. The agent explores read-only, proposes the middleware architecture in plan.md, and writes code only after you sign off. ## Quick Start Ask the agent to explore an unfamiliar repository in Plan Mode, write its findings and proposed architecture into plan.md, and wait for your signed approval before making any code changes.

Frequently Asked Questions about katas-plan-mode-exploration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make an AI agent explore a repository without writing files?▼

Configure the agent with permission_mode="plan" and restrict allowed_tools to Read, Glob, and Grep. Add a PreToolUse hook that denies Write, Edit, NotebookEdit, and Bash commands with redirections while the mode is plan, so writes are blocked rather than merely discouraged.

What is Plan Mode in the Claude Agent SDK?▼

Plan Mode is a read-only permission mode where the agent explores code and drafts a plan without mutating the filesystem. It is one half of a two-mode contract: the transition to a write mode happens only after a human signs the frozen plan.md artifact.

Can a PreToolUse hook block Bash commands that write files?▼

Yes, but the hook must inspect the command content, not just the tool name. A Bash call can write via redirections like >, tee, or cp, so the hook should deny Bash invocations capable of mutation while Plan Mode is active.

What happens if the approved plan changes during implementation?▼

The approval is void because it applies to a frozen plan. The agent returns to Plan Mode, updates plan.md with the new scope, and requests a fresh human signature before any further writing is allowed.

When should I not use Plan Mode exploration?▼

Skip it when the task is read-only with no intent to write later, or when the repository is well known and the change is trivial and reversible. It is designed for unknown or critical codebases where unreviewed writes carry real risk.