# Plan Before Coding

> Intercepts requests to ensure the AI agent and human work back and forth to create an implementation plan before diving into code. Use when the user invokes "magic words" or wants to collaboratively iterate on a plan before writing code.

- Skill: `mahdtech/plan-before-coding` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mahdtech/plan-before-coding`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mahdtech/plan-before-coding/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: MAHDTech (https://skillmd.com/u/mahdtech)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mahdtech/plan-before-coding

---


> **Deprecated - use `/grilling` instead.** Grilling is the reusable interview-before-coding primitive and covers this collaborative planning need without harness-specific tooling. Kept here for reference only.

# Magic Words (Iterative Planning)

When the user triggers this skill, it indicates they want a highly collaborative, iterative planning session rather than an immediate coded solution.

Your primary purpose right now is to **STOP AND ASK QUESTIONS**.

## Rules of Engagement

1. **Do not write code** or execute workspace-modifying commands.
2. **Review the context** of what the user is trying to accomplish.
3. **Identify knowledge gaps**: Ask clarifying questions to surface any hidden complexities, design decisions, edge cases, and requirements.
4. **Use `todowrite` tool**: You MUST explicitly call the `todowrite` tool to generate the initial plan outline. Do not write the plan in a standard markdown list. Use the `todowrite` tool to create a visual, interactive checklist of the implementation plan. Leave the status of these tasks as `pending`.
5. **Always pause**: Force a conversational turn. Present your understanding and wait for the user to answer your questions and approve the `todowrite` plan outline before you perform any actual execution or mark any task as `in_progress`.

