Command Palette

Search for a command to run...

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

dev-issue

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

Bootstrap a new GitHub issue implementation in one command: fetch the issue body, gather cross-references and code hotspots, infer a branch prefix and slug…

s-hiraokuот s-hiraoku★ 19 звёзд на GitHub

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

/dev-issue — Bootstrap an issue implementation

Compresses the manual gh issue view → grep → handwritten brief → branch → synapse spawn ritual into a single slash command. The skill is a procedural guide for Claude to execute, not an automation script — Claude reads the issue, reasons about scope, and constructs the brief.

Usage

/dev-issue <number>            # default: spawn codex with the brief
/dev-issue <number> --solo     # don't spawn; parent (you) implements
/dev-issue <number> --dry-run  # generate brief only; no branch, no spawn

<number> accepts:

  • bare integer: 467
  • hash form: #467
  • full URL: https://github.com/s-hiraoku/synapse-a2a/issues/467

Steps Claude must follow

1. Validate input and parse the issue number

Accept 123, #123, or a full GitHub issue URL. Extract the integer. If the input does not match any of these forms, abort with:

/dev-issue: cannot parse '<input>'. Expected: <num>, #<num>, or full issue URL.

2. Fetch state in parallel

Run these three calls in parallel (one Bash batch with & or three separate parallel tool calls):

gh issue view <num> --json number,title,body,labels,state,comments
gh issue list --state closed --search "#<num> in:body" --limit 5
git fetch origin main && git rev-parse origin/main

Parse the JSON outputs. Save the issue body, label names, state, and the SHA of origin/main for later steps.

3. Issue triage

  • If state == "CLOSED": abort. Print the closure date and the closer's comment. Do not create a branch.
  • If labels contain architecture or discussion: warn the user that this issue typically needs design discussion before implementation, and ask whether to proceed. Do not auto-continue.
  • If the issue body is empty: abort with a request for the user to add context to the issue first.

4. Discover related code (hotspots)

Heuristically grep the repo for:

  • File paths mentioned in the issue body. Regex: synapse/[a-z_/]+\.py, tests/[a-z_/]+\.py, etc. (extend per repo layout).
  • Symbols enclosed in backticks in the issue body (function names, env vars, constants).

For each unique file or symbol match:

git log --oneline -5 -- <file>

Build a "Code hotspots" section listing each file with its 1-2 most recent relevant commits (subject + SHA). Cap at the top 6 hotspots to keep the brief readable.

5. Discover related closed PRs

gh pr list --state merged --search "<num>" --json number,title,mergedAt --limit 5

These are usually implementation precedents (e.g., "PROCESSING wait" for a "READY delay" issue). Include them in the brief's 前提: section so the implementing agent treats them as the symmetric reference.

6. Determine branch prefix

Infer from issue labels (first match wins):

Label Prefix
bug fix/
enhancement feat/
feature feat/
chore chore/
refactor refactor/
docs / documentation docs/
(no match) feat/

7. Generate slug from title

Goal: a short, lowercased, hyphenated slug derived from the issue title.

  • If the title contains ASCII words: take the first 4-6 meaningful tokens (skip articles like "a/the/of"), lowercase, hyphenate. Example: "Delay send to READY agents" → delay-send-to-ready.
  • If the title is fully Japanese or otherwise non-ASCII: fall back to a short English summary derived from labels + the first sentence of the body. If even that is unclear, use the prefix-only form <prefix>/<num> and let the user rename later.

Final branch name: <prefix>/<slug>-<num>. Example: feat/delay-send-to-ready-467.

8. Construct the task brief

Write to /tmp/issue<num>-task.md using the Brief Template below (literal embed). Fill placeholders with the data gathered in steps 2-7. The template uses Japanese for consistency with the existing handwritten briefs in the repo (/tmp/issue467-task.md etc.) — switch to English if the user has indicated English-language briefs.

9. Create the branch

Only execute this step in default mode and --solo mode (skip in --dry-run):

git fetch origin main
git checkout main
git pull --ff-only origin main
git checkout -b <prefix>/<slug>-<num>

Idempotency: before creating, run git rev-parse --verify <branch> 2>/dev/null. If the branch already exists locally, abort with:

/dev-issue: branch '<branch>' already exists. Delete it (git branch -D),
or re-run with --resume (not yet implemented) to continue prior work.

Do not delete the branch automatically — that is a destructive action the user must perform.

10. Spawn or skip

Depending on the flag:

  • default:
    synapse spawn codex --task-file /tmp/issue<num>-task.md --notify
    
    Capture the spawned agent's n
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Bootstrap a new GitHub issue implementation in one command: fetch the issue body, gather cross-references and code hotspots, infer a branch prefix and slug, generate a structured task brief, create a fresh branch from latest main, and (by default) spawn a codex agent to implement it. Triggered by /dev-issue <number>. Use this skill when starting work on a new issue that follows the standard issue → codex spawn → review → PR pipeline.

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

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

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

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

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

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