Command Palette

Search for a command to run...

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

plan

БесплатноБез исполняемых скриптовНе проверен

Generate an implementation plan from a PRD, tech spike, or feature spec and save it to context/plans/. Use for planning work, breaking down a PRD, or creating…

drnот drn★ 23 звезды на GitHub

Об этом скилле

Implementation Plan

Read a PRD, tech spike, or feature spec and produce a concrete implementation plan saved to context/plans/.

Arguments

  • $ARGUMENTS - Required: path to a PRD/spike/spec file, a URL, or inline description of what to plan

Context

  • Project type: !find . -maxdepth 1 \( -name go.mod -o -name Gemfile -o -name package.json -o -name Cargo.toml -o -name pyproject.toml -o -name CLAUDE.md -o -name AGENTS.md \) 2>/dev/null | head -10
  • Directory structure: !find . -maxdepth 2 -type d -not -path './.git/*' -not -path './node_modules/*' -not -path './vendor/*' 2>/dev/null | head -30
  • Recent commits: !git log --oneline -10 2>/dev/null | head -10
  • Prior plans: !find .context/plans -name "*.md" 2>/dev/null | head -10
  • Prior spikes: !find context/spikes -name "*.md" 2>/dev/null | head -10
  • Phase artifacts: !command ls -t .context/phases/*.md 2>/dev/null | head -10

Phase Protocol

This skill participates in a phase chain. Read ~/.claude/skills/_shared/resources/phase-protocol.md for the full protocol.

Before starting: Check .context/phases/ for prior artifacts:

  • If critique-*.md exists → read the latest critique. This is a second pass — incorporate the critique's concerns into a refined plan. Write output as plan-{ts}.md.
  • If no critique exists → this is a first pass (thinking/exploration). Write output as think-{ts}.md.

After completing Step 4: Write the phase artifact to .context/phases/:

mkdir -p .context/phases

Use the artifact format from the phase protocol. The Handoff section should include: key decisions, implementation phases, open questions, and risks — everything /dev needs to start building.

Instructions

Step 1: Ingest the source material

Parse $ARGUMENTS to locate the input:

  1. File path — Read the file directly.
  2. URL — Fetch the content.
  3. Inline text — Use the arguments as the spec.

IF $ARGUMENTS is empty or unclear, ask the user to provide a PRD, spike, or spec.

Extract from the source:

  • Goal: What is being built or changed?
  • Requirements: Functional and non-functional requirements, acceptance criteria.
  • Constraints: Technical constraints, dependencies, timeline signals.
  • Open questions: Anything unresolved in the source material.

Present a brief summary of what you understood and ask the user to confirm before proceeding.

Step 2: Explore the codebase

Investigate the current codebase to ground the plan in reality:

  1. Find relevant code — Search for files, modules, and patterns related to the requirements.
  2. Understand existing architecture — Read key files to understand conventions, patterns, and boundaries.
  3. Identify integration points — Where does the new work connect to existing code?
  4. Check for prior art — Look at prior plans and spikes in context/ for related work.

Step 3: Write the plan

Ensure context/plans/ directory exists (create if needed).

Save the plan to context/plans/<date>-<slug>.md where <date> is today in YYYY-MM-DD format and <slug> is a short kebab-case summary.

Use this format:

# Plan: <title>

**Date:** <YYYY-MM-DD>
**Source:** <path or URL to the PRD/spike/spec>
**Status:** Draft
**Current Phase:** Phase 1

## Goal

<1-2 sentence summary of what this plan achieves>

## Background

<current state, why this work is needed, link to source material>

## Requirements

### Must Have
- <requirement with acceptance criteria>

### Should Have
- <requirement>

### Won't Do (this iteration)
- <explicitly excluded scope>

## Technical Approach

<high-level strategy: what patterns to follow, key design decisions>

## Decisions

| Decision | Rationale |
|----------|-----------|
| <what was decided> | <why — constraints, trade-offs, alternatives rejected> |

## Implementation Steps

### Phase 1: <name>
**Status:** pending

- [ ] <task> — `path/to/file` — <what to do>
- [ ] <task> — `path/to/file` — <what to do>

### Phase 2: <name>
**Status:** pending

- [ ] <task> — `path/to/file` — <what to do>

### Phase 3: <name> (if needed)
**Status:** pending

- [ ] <task> — `path/to/file` — <what to do>

## Testing Strategy

- <what tests to write, what to verify>
- <edge cases to cover>

## Risks & Open Questions

| Risk | Mitigation |
|------|------------|
| <risk> | <how to handle> |

- <open question from source material>
- <open question discovered during exploration>

## Dependencies

- <external dependency or prerequisite>

## Errors Encountered

| Error | Attempt | Resolution |
|-------|---------|------------|

## Estimated Scope

**Phases:** <N>
**Tasks:** <N>
**Files touched:** <N>

Step 4: Report

Print the plan summary (goal, phases, task count) and the file path where the full plan was saved. Offer to:

  1. Print the full plan
  2. Start implementation (suggest /dev with the plan as input)

Updating Progress

The plan is the single source of truth for progress. Any agent or

Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

Что делает скилл plan?

Generate an implementation plan from a PRD, tech spike, or feature spec and save it to context/plans/. Use for planning work, breaking down a PRD, or creating an implementation plan from a spec.

Как установить скилл plan?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл plan запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить plan с