scopes: Command for Claude Code

.claude/commands/pm/issue-close.md

issue-close is a command for Claude Code from kamiazya/scopes. It costs 0 tokens per session (648 once invoked), scanned B, original, Apache-2.0.

A command that marks a tracked GitHub issue as complete in the local project files and on GitHub.

In plain words
What is it for?
Use it to close an issue, add completion notes, mark related progress as 100%, and update the task list for its larger work item.
Why use it?
It keeps the local task records, progress notes, and GitHub issue status aligned when work is finished.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is kamiazya/scopes's own configuration. It tells Claude Code how to work on scopes itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything scopes configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kamiazya/scopes. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kamiazya/scopes/main/.claude/commands/pm/issue-close.md
Clone the repo
git clone --depth 1 https://github.com/kamiazya/scopes

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for issue-close

README.md
[![agentmods](https://agentmods.dev/badge/commands/kamiazya/scopes/issue-close/github.svg)](https://agentmods.dev/commands/kamiazya/scopes/issue-close)
Your own site
<a href="https://agentmods.dev/commands/kamiazya/scopes/issue-close"><img src="https://agentmods.dev/badge/commands/kamiazya/scopes/issue-close/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for issue-close

Your own site · 80×15
<a href="https://agentmods.dev/commands/kamiazya/scopes/issue-close"><img src="https://agentmods.dev/badge/commands/kamiazya/scopes/issue-close.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 648 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00648
Opus 5.5 $0.00000 $0.00259
Sonnet 5.5 $0.00000 $0.00130
Haiku 4.5 $0.00000 $0.00065

Measured 2mo ago against content hash 1e23fcc0a6fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

issue-close scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

epic_issue=$(grep 'github:' .claude/epics/$epic_name/epic.md | grep -oE '[0-9]+$')
.claude/commands/pm/issue-close.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Issue Close

Mark an issue as complete and close it on GitHub.

Usage

/pm:issue-close <issue_number> [completion_notes]

Instructions

1. Find Local Task File

First check if .claude/epics/*/$ARGUMENTS.md exists (new naming). If not found, search for task file with github:.*issues/$ARGUMENTS in frontmatter (old naming). If not found: "❌ No local task for issue #$ARGUMENTS"

2. Update Local Status

Get current datetime: date -u +"%Y-%m-%dT%H:%M:%SZ"

Update task file frontmatter:

status: closed
updated: {current_datetime}

3. Update Progress File

If progress file exists at .claude/epics/{epic}/updates/$ARGUMENTS/progress.md:

  • Set completion: 100%
  • Add completion note with timestamp
  • Update last_sync with current datetime

4. Close on GitHub

Add completion comment and close:

# Add final comment
echo "✅ Task completed

$ARGUMENTS

---
Closed at: {timestamp}" | gh issue comment $ARGUMENTS --body-file -

# Close the issue
gh issue close $ARGUMENTS

5. Update Epic Task List on GitHub

Check the task checkbox in the epic issue:

# Get epic name from local task file path
epic_name={extract_from_path}

# Get epic issue number from epic.md
epic_issue=$(grep 'github:' .claude/epics/$epic_name/epic.md | grep -oE '[0-9]+$')

if [ ! -z "$epic_issue" ]; then
  # Get current epic body
  gh issue view $epic_issue --json body -q .body > /tmp/epic-body.md
  
  # Check off this task
  sed -i "s/- \[ \] #$ARGUMENTS/- [x] #$ARGUMENTS/" /tmp/epic-body.md
  
  # Update epic issue
  gh issue edit $epic_issue --body-file /tmp/epic-body.md
  
  echo "✓ Updated epic progress on GitHub"
fi

6. Update Epic Progress

  • Count total tasks in epic
  • Count closed tasks
  • Calculate new progress percentage
  • Update epic.md frontmatter progress field

7. Output

✅ Closed issue #$ARGUMENTS
  Local: Task marked complete
  GitHub: Issue closed & epic updated
  Epic progress: {new_progress}% ({closed}/{total} tasks complete)
  
Next: Run /pm:next for next priority task

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 103 lines · 0 tokens per session scan B 1e23fcc0a6fa

Subscribe to this mod's changes

issue-close is a command published in the GitHub repository kamiazya/scopes (2 stars, last pushed 11mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 648 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

issue-close compared with commands from other repositories

issue-close next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
issue-closekamiazya/scopesCommand211mo agoApache-2.0B0Claude Code
CHANGELOGbytedance/UI-TARS-desktopCommand40k29d agoApache-2.0A0Claude Code
diagnose-deeptracezscaler/zscaler-mcp-serverCommand5510d agoMITA29Claude Code
troubleshoot-userzscaler/zscaler-mcp-serverCommand5510d agoMITA25Claude Code
create-access-rulezscaler/zscaler-mcp-serverCommand5510d agoMITA20Claude Code
investigate-incidentzscaler/zscaler-mcp-serverCommand5510d agoMITA27Claude Code
review-attack-surfacezscaler/zscaler-mcp-serverCommand5510d agoMITA27Claude Code