Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. 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 it inherits the established scope and authorization.
  2. 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, and tools/release_plan.py before deciding which steps are local preflight, GitHub workflow jobs, or manual follow-ups.
  3. 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, run uv --preview-features extra-build-dependencies run python tools/impact_validate.py --staged or --files ... if a diff already exists, and use its output to shape the plan.
  4. Validate assumptions before execution.

    • Confirm the file path, call site, dependency, config source, or failing case.
    • Resolve documentation ownership from the repository's AGENTS.md and 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.
  5. Execute in sequence.

    • Change one logical unit at a time.
    • Keep the wr
Полный SKILL.md на GitHub

Установить plan-before-code в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlreferences/workflow.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить plan-before-code с