Skip to content
Agentmart
Submit a tool

issue-close-migrated

Close an issue as status:migrated or status:cancelled with --reason "not planned".

Skill by nirecom

IndexedMIT★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/nirecom-issue-close-migrated

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Close an issue as status:migrated or status:cancelled with --reason "not planned". Applies label, posts comment, and closes.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/issue-close-migrated

What's inside

Skill name
issue-close-migrated
Description
Close an issue as status:migrated or status:cancelled with --reason "not planned". Applies label, posts comment, and closes.
License
MIT
Instructions
31 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • pre-flight.sh · scripts/

SKILL.md (first lines)

Close issue `<N>` as migrated (merged into another issue) or cancelled.

**Usage:**
- `/issue-close-migrated <N> --type migrated --into <M>` — issue N merged into M
- `/issue-close-migrated <N> --type cancelled` — issue N cancelled

`--into <M>` is **required** for `--type migrated` and **prohibited** for `--type cancelled`.

## Pre-flight

Read `rules/github-issues.md` first — on-demand-only, never auto-injected.

1. Parse `N`, `TYPE`, and (if migrated) `INTO` from the invocation arguments.
2. Verify issue `N` is OPEN: `gh issue view N --json state --jq .state`. Not OPEN → report and exit 0.
3. For `--type migrated`: verify issue `INTO` is OPEN. Not OPEN → report and exit 0.

Run: `bash "$AGENTS_MAIN_ROOT/skills/issue-close-migrated/scripts/pre-flight.sh" "$N" "$TYPE" "$INTO" || { echo "Pre-flight failed — check issue state"; exit 0; }`

## Procedure

Run `bin/github-issues/close-not-planned.sh` as one standalone call: `bash "$AGENTS_MAIN_ROOT/bin/github-issues/close-not-planned.sh" --type "<TYPE>" "<N>"`.
Only when `<TYPE>` is `migrated`, write `--into <INTO>` into the argument list yourself, before `<N>` — do not build that argument with a shell conditional.

The `gh issue close` inside `close-not-planned.sh` is a subprocess of the Bash tool command — `enforce-issue-close.js` (PreToolUse) fires only on the Bash tool command head, not on subprocess calls. No bypass marker is required.

## Rules

- Always close with `--reason "not planned"` via `close-not-planned.sh`. Never use `--reason completed` for migrated or cancelled issues.
- Never invoke `gh issue close` directly from this skill — use `close-not-planned.sh`.

From nirecom/agents, MIT.

More from nirecom/agents

Signals

Stars
3
Forks
0
Open issues
608
Last commit (this folder)
Oct 10, 2026 (19 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from nirecom

Cite this page

issue-close-migrated skill. Agent Mart. https://agentmart.dev/skills/nirecom-issue-close-migrated (last updated 2026-10-24)