Command Palette

Search for a command to run...

Назад к скиллам
скилл № 06088

plan-issue

Convert an open GitHub Idea, Concern, or Epic issue — or a bundle of them — into a concrete implementation plan. Deepens context from the issue first, then…

БесплатноБез исполняемых скриптов
CERTCCот CERTCC★ 22 звезды на GitHub

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

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

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

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

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

Skill: Plan Issue

Convert an open GitHub type:Idea, type:Concern, or type:Epic issue into an implementation plan: interview → explore → create impl issues → optionally update docs → archive/close (Ideas and Concerns) or annotate (Epics).

Type-specific interview questions, docs output, and completion steps are in the companion files alongside this one:

  • idea.md — Idea-specific interview and archive/close steps
  • concern.md — Concern-specific interview and archive/close steps
  • epic.md — Epic validation (Phase A) and decomposition (Phase B) steps

Load only the file matching the detected issue type.

Constants

See .agents/skills/shared/README.md for project IDs and issue type IDs.


Workflow

Phase 0 — Select the Issue

If the user provided a GitHub issue number, skip to Phase 1. Several numbers is a bundle: plan all of them in one PR that closes every member, per .agents/skills/shared/bundling.md § "Executing a bundle". Every member must be an Idea, Concern, or Epic (name the right skill for any that is not), one grill-me interview covers the whole bundle, and each member still gets its own implementation issues and its own disposition in Phase 9.

Otherwise, query open issues of all three types and present as a combined multiple-choice list via ask_user:

# Ideas and Concerns
gh issue list --repo CERTCC/Vultron --state open --limit 1000 \
  --json number,title,issueType \
  --jq '.[] | select(.issueType.name == "Idea" or .issueType.name == "Concern")
        | "#\(.number) [\(.issueType.name)]: \(.title)"'

# Epics with the needs-planning label (set by the epic-needs-planning workflow)
gh issue list --repo CERTCC/Vultron --state open --limit 1000 \
  --label "needs-planning" \
  --json number,title,issueType \
  --jq '.[] | select(.issueType.name == "Epic")
        | "#\(.number) [Epic/needs-planning]: \(.title)"'

The workflow also labels an Epic that has children but an open, unblocked Concern or Idea among them. That child is already in the first list: plan it there, and offer the Epic itself only when it has no sub-issues.

Include a "Create a new Idea" option at the end. Wait for the user's selection before continuing.

Creating a new Idea (if selected)

Invoke create-issue with type Idea, reason planned, and the user present. It asks for the description, picks the theme, and routes the Idea to a same-theme Epic. Continue with the issue number it returns.

Phase 0b — Sync

Move the worktree HEAD to origin/main before loading any context, so all planning (orient, deepen-context, grill-me) is based on the current state of specs and notes. Do not use git checkout main — that branch may be checked out in another worktree.

git fetch origin main && git checkout --detach origin/main

Detach rather than git reset --hard: a reset moves whatever branch is checked out, which may be another session's, and discards uncommitted work. A detached checkout moves no branch and refuses to overwrite local changes.

If this fails, stop and investigate before proceeding.

Phase 1 — Read and Validate

ISSUE_JSON=$(gh issue view "${ISSUE_NUMBER}" --repo CERTCC/Vultron \
  --json number,title,body,labels,state,issueType)
ISSUE_STATE=$(echo "${ISSUE_JSON}" | jq -r '.state')
ISSUE_TYPE=$(echo "${ISSUE_JSON}"  | jq -r '.issueType.name // ""')

if [ "${ISSUE_STATE}" != "OPEN" ]; then
  echo "❌ #${ISSUE_NUMBER} is not open (state=${ISSUE_STATE}). Stopping." >&2
  exit 1
fi
if [ "${ISSUE_TYPE}" != "Idea" ] && \
   [ "${ISSUE_TYPE}" != "Concern" ] && \
   [ "${ISSUE_TYPE}" != "Epic" ]; then
  echo "❌ #${ISSUE_NUMBER} is type '${ISSUE_TYPE}', expected Idea, Concern, or Epic." >&2
  exit 1
fi

Load the type-specific companion file matching ${ISSUE_TYPE}: idea.md, concern.md, or epic.md. All type-specific steps below reference that file.

For all types, also query the parent epic (if any):

EPIC_NUMBER=$(gh api graphql -f query='{
  repository(owner:"CERTCC", name:"Vultron") {
    issue(number: '"${ISSUE_NUMBER}"') { parent { number } }
  }
}' --jq '.data.repository.issue.parent.number // ""')

Use the title and body from ISSUE_JSON as source material throughout.

Phase 1b — Claim the Issue and Create Task Branch

Claim the issue now — as soon as it is validated — so others can see work has started. Derive <slug> from the issue title (lowercase, hyphenated). Delegate to claim-issue.sh for idempotency guard, branch creation, assignee, and claim comment — exactly as build and bugfix do:

bash .agents/skills/shared/claim-issue.sh "${ISSUE_NUMBER}" plan "<slug>" \
  ${OTHER_MEMBERS[@]+"${OTHER_MEMBERS[@]}"}

Phase 2 — Orient (invoke orient-agent)

Invoke the orient-agent skill to load required baseline context.

Phase 3 — Deepen Context (invoke deepen-context)

Invoke the deepen-context skill, using focus hints derived from the issue title and body (e.g., "wire lay

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

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

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

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

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

  • concern.md
  • epic.md
  • idea.md

FAQ

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

Convert an open GitHub Idea, Concern, or Epic issue — or a bundle of them — into a concrete implementation plan. Deepens context from the issue first, then runs a grill-me interview to understand scope, creates implementation issues, optionally updates specs/notes, and closes or annotates the source issue appropriately. Auto-detects type from the GitHub issue type. Use when the user references an Idea, Concern, or Epic issue number, or says "plan this idea/concern/epic".

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

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

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

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

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

Сравнить plan-issue с