plan-before-code
БесплатноБез исполняемых скриптовНе проверенPlan before editing code. Use this skill for multi-step implementation, debugging, refactors, release work, or any coding task where sequencing, assumptions…
от ThalesGroup★ 23 звезды на GitHubОб этом скилле
Plan Before Code
Use this skill to force a planning pass before coding. The goal is not paperwork. The goal is to improve sequencing, reduce avoidable edits, and catch bad assumptions before touching files.
When to use
- Multi-file changes
- Bug fixes with unclear root cause
- Refactors
- Release or packaging work
- Tests or docs that depend on code behavior
- Any task where validation matters before execution
Skip only for trivial tasks
You may skip an explicit visible plan only when all of these are true:
- the task is local and obvious
- one file is affected
- the edit is mechanically safe
- failure impact is negligible
Even then, still make a private micro-plan before editing.
Modes
Choose one mode before editing.
Lightweight mode
Use for bounded work with low ambiguity.
- Restate the goal in one sentence
- Identify likely files or components
- Make a 2-4 step plan
- Validate the critical assumption
- Edit
- Run targeted verification
Strict mode
Use for risky or multi-step work.
- Inspect the current implementation first
- Identify touch points and likely blast radius
- Produce an ordered plan
- Validate assumptions before the first edit
- Execute one step at a time
- Re-plan if facts change
- Verify each critical change
- Summarize residual risk at the end
Required workflow
Understand the real task.
- Separate the user request from the likely root problem.
- If the task mentions a symptom, inspect the cause before proposing edits.
- For review-only requests, report code and documentation discrepancies with
evidence; finding a discrepancy does not authorize editing either file.
A follow-up
fix itinherits the established scope and authorization.
Inspect before proposing a fix.
- Read the relevant files.
- Check logs, failing tests, or current behavior when available.
- Treat failure in a previously working workflow as a suspected regression, even when the user has not named it. Recover the last verified success, first failure and intervening changes from script, skill and configuration history plus dated execution evidence; record an unavailable baseline.
- Compare source, destination, protocol and execution context. Recheck the current interface, VPN and active configuration before probes; a later context change does not explain an earlier failure.
- Search for evidence that contradicts the leading hypothesis. A declared remote does not prove execution; a destination migration does not establish a new network path. Preserve current security and publication boundaries.
- Before changing managed firewalls or routers, identify the device and configuration owner. Compare dated known-good, running/applied and intended versioned configurations: active policy/slot, address/service objects and groups, rule order and conditions, network address translation, static/default routes and policy-based routing, VLAN interfaces and the return path. Check configuration/audit dates, author and reason, and whether dated exports and backups actually exist. Old documentation or an export schedule is not proof of a change. Require an identified cause and a verification plan before proposing an additional rule; otherwise continue bounded read-only diagnosis and state what remains unverified.
- Do not start editing from memory.
- For operational plans such as "next move", "ready for release", "release it",
or "sync HF", inspect the current workflow/tooling files before proposing
sequencing. In AGILAB release work, check
./dev --print-only release,.github/workflows/pypi-publish.yaml, andtools/release_plan.pybefore deciding which steps are local preflight, GitHub workflow jobs, or manual follow-ups.
Create the plan before coding.
- Use a short visible plan for substantial work.
- For complex work, use the planning tool if available.
- The plan should be ordered, concrete, and testable.
- In
agilab, runuv --preview-features extra-build-dependencies run python tools/impact_validate.py --stagedor--files ...if a diff already exists, and use its output to shape the plan.
Validate assumptions before execution.
- Confirm the file path, call site, dependency, config source, or failing case.
- Resolve documentation ownership from the repository's
AGENTS.mdand docs tooling. Update the canonical source for an authorized behavior change; do not create an alternate architecture/design document from an external skill's assumed path. Resolve ordinary implementation choices within the existing authorization; ask only when missing intent changes the outcome. - If a key assumption is unverified and easy to check, check it first.
- Do not code around uncertainty when inspection can remove it.
Execute in sequence.
- Change one logical unit at a time.
- Keep the wr
Установить plan-before-code в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл plan-before-code?
Plan before editing code. Use this skill for multi-step implementation, debugging, refactors, release work, or any coding task where sequencing, assumptions, or validation matter. It enforces a short plan first, validates assumptions before edits, and verifies results before close-out.
Как установить скилл plan-before-code?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл plan-before-code запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic