Command Palette

Search for a command to run...

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

reopen-issue

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

Reopen a closed issue or EPIC whose spec is in docs/issues/closed/, and move the spec back to open/. Use when new work belongs to a closed EPIC or a closed…

torrustот torrust★ 539 звёзд на GitHub

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

Reopening a Closed Issue or EPIC

This is the inverse of cleanup-completed-issues. It was first used to reopen configuration EPIC #1978 for subissue #2466 (2026-10-07). The EPIC path is exercised; the single-issue path is derived from it and should be refined on first use.

Step 1: Decide Whether to Reopen

Reopen only with explicit maintainer approval; reopening changes shared GitHub state.

Reopen when the new work belongs to the original goal and its deliverable is not yet released (for example, #1978's configuration schema v3.0.0 was active but not published on crates.io). Otherwise create a new issue or EPIC and reference the closed one.

Once the deliverable is released, never reopen its EPIC: create standalone issues and plan the version in which each should ship, stating the target version in the issue and its specification. While it is unpublished, the same EPIC may be reopened again for each new change, as #1978 was for #2466, and closed again when the last subissue closes.

For a closed single issue, reopen when the closing PR did not meet its acceptance criteria or the fix regressed before release. A regression after release is a new bug issue.

Step 2: Prepare the Branch

Update develop first, check that it is not behind, and only then create the branch. Run the behind count as its own step and read it: a skipped or failed git pull --ff-only leaves develop behind, and only the count shows it. Chained with &&, git checkout -b runs even when the count is non-zero.

UPSTREAM_REMOTE="${UPSTREAM_REMOTE:-torrust}"
git checkout develop
git pull --ff-only "$UPSTREAM_REMOTE" develop
git rev-list --count HEAD.."$UPSTREAM_REMOTE"/develop   # must print 0
git checkout -b <branch>

When reopening an EPIC to add a subissue, reuse that subissue's specification branch (<issue>-<epic>-<description>-spec), so the reopen, the subissue spec, and any ADR land in one PR.

Step 3: Update GitHub

  1. When adding a subissue, create it first (see create-issue), so the reopen comment can cite it.

  2. Reopen with the reason:

    gh issue reopen <number> --repo torrust/torrust-tracker --comment "Reopened to <reason>."
    
  3. Link a new subissue natively; the REST endpoint needs the child's database id, not its number:

    CHILD_ID=$(gh api repos/torrust/torrust-tracker/issues/<child> --jq .id)
    gh api -X POST repos/torrust/torrust-tracker/issues/<epic>/sub_issues -F sub_issue_id="$CHILD_ID"
    
  4. Check the reopened issue's body for a Specification link and point it at the open/ path. Repository searches do not see issue bodies, and older bodies may still name a legacy single-file path:

    gh issue view <number> --repo torrust/torrust-tracker --json body --jq .body > .tmp/issue-<number>-body.md
    # edit the link, then:
    gh issue edit <number> --repo torrust/torrust-tracker --body-file .tmp/issue-<number>-body.md
    

Step 4: Move the Specification Back

git mv docs/issues/closed/<folder> docs/issues/open/

Then update the moved spec:

  • Frontmatter: set status to planned or in-progress, spec-path to the open/ path, and last-updated-utc to the current time. Specs archived before the v1 schema must be migrated to v1 in open/ (schema-version: 1, epic: null where applicable, quoted last-updated-utc, no trailing slash in related-artifacts). Follow the migration checklist in contrib/dev-tools/checks/frontmatter-validator/README.md.
  • Archive-time edits: revert body paths the archive rewrote to closed/, such as the "spec drafted in" checkpoint.
  • Checkpoints: clear the "issue closed and spec moved" and "acceptance criteria reviewed" boxes.
  • Acceptance Verification: set rows that depended on all work being done back to TODO, clear the matching Acceptance Criteria checkboxes (for example, "Epic status reflects actual state of linked subissues"), and correct stale counts (for example, the number of linked subissues).
  • Subissues table (EPIC): add the new row with TODO. A related-artifacts entry must name a tracked file, so add the new child spec path in the commit that adds the spec.
  • Progress Log: add an entry with the reason and the remaining work. Date each entry at the action it records: the maintainer's decision, the GitHub reopen, and the move are separate events.
  • References: add the new subissue, the issue it came from, and any new ADR.
  • Parent EPIC (single issue): set its row back to IN_PROGRESS and point it at open/.

The frontmatter validator checks staged content. Stage the edits, not only the rename, before running it:

git add -A docs/issues/open/<folder>
cargo run --quiet --package frontmatter-validator --bin frontmatter-validator -- --
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Reopen a closed issue or EPIC whose spec is in docs/issues/closed/, and move the spec back to open/. Use when new work belongs to a closed EPIC or a closed issue regressed.

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

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

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

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

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

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