issue-start

A command for starting work on a GitHub issue, a tracked software task, after checking its local task file, analysis, and project worktree.

In plain words
What is it for?
Use it to verify an issue, locate its matching local task, check that analysis exists, and prepare the relevant worktree for implementation.
Why use it?
It prevents work from starting without the required issue details, planning analysis, or isolated project workspace.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/kamiazya/scopes/issue-start
Clone the repo
git clone --depth 1 https://github.com/kamiazya/scopes

Made for: Claude Code.

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 1,127 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01127
Opus 5 $0.00000 $0.00563
Sonnet 5 $0.00000 $0.00225
Haiku 4.5 $0.00000 $0.00113

Measured 2d ago against content hash a92c0aaabd66, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

issue-start scanned grade A with 0 findings 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/pm/issue-start.md · 164 lines

How it starts

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

Issue Start

Begin work on a GitHub issue with parallel agents based on work stream analysis.

Usage

/pm:issue-start <issue_number>

Quick Check

  1. Get issue details:

    gh issue view $ARGUMENTS --json state,title,labels,body
    

    If it fails: "❌ Cannot access issue #$ARGUMENTS. Check number or run: gh auth login"

  2. Find local task file:

    • First check if .claude/epics/*/$ARGUMENTS.md exists (new naming)
    • If not found, search for file containing github:.*issues/$ARGUMENTS in frontmatter (old naming)
    • If not found: "❌ No local task for issue #$ARGUMENTS. This issue may have been created outside the PM system."
  3. Check for analysis:

    test -f .claude/epics/*/$ARGUMENTS-analysis.md || echo "❌ No analysis found for issue #$ARGUMENTS
    
    Run: /pm:issue-analyze $ARGUMENTS first
    Or: /pm:issue-start $ARGUMENTS --analyze to do both"
    

    If no analysis exists and no --analyze flag, stop execution.

Instructions

1. Ensure Worktree Exists

Check if epic worktree exists:

# Find epic name from task file
epic_name={extracted_from_path}

# Check worktree
if ! git worktree list | grep -q "epic-$epic_name"; then
  echo "❌ No worktree for epic. Run: /pm:epic-start $epic_name"
  exit 1
fi

2. Read Analysis

Read .claude/epics/{epic_name}/$ARGUMENTS-analysis.md:

  • Parse parallel streams
  • Identify which can start immediately
  • Note dependencies between streams

3. Setup Progress Tracking

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

Create workspace structure:

mkdir -p .claude/epics/{epic_name}/updates/$ARGUMENTS

Update task file frontmatter updated field with current datetime.

4. Launch Parallel Agents

For each stream that can start immediately:

Create .claude/epics/{epic_name}/updates/$ARGUMENTS/stream-{X}.md:

---
issue: $ARGUMENTS
stream: {stream_name}
agent: {agent_type}
started: {current_datetime}
status: in_progress
---

# Stream {X}: {stream_name}

## Scope
{stream_description}

## Files
{file_patterns}

## Progress
- Starting implementation

Read the full file on GitHub · 164 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. 2d ago First seen · 164 lines · 0 tokens per session scan A a92c0aaabd66

Subscribe to this mod's changes

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