scopes: Command for Claude Code

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

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

A command that analyses a GitHub issue and identifies independent streams of work that can be done in parallel. GitHub issues are shared records for planned work, bugs, or requests.

In plain words
What is it for?
Use it to examine an imported local issue, read its GitHub details and acceptance criteria, and create a parallel-work analysis.
Why use it?
It helps break a large issue into separate technical areas and find work that does not need to wait on other work.

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-analyze.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-analyze

README.md
[![agentmods](https://agentmods.dev/badge/commands/kamiazya/scopes/issue-analyze.svg)](https://agentmods.dev/commands/kamiazya/scopes/issue-analyze)
Your own site
<a href="https://agentmods.dev/commands/kamiazya/scopes/issue-analyze"><img src="https://agentmods.dev/badge/commands/kamiazya/scopes/issue-analyze.svg" alt="Measured on agentmods" 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 1,203 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.01203
Opus 5 $0.00000 $0.00602
Sonnet 5 $0.00000 $0.00241
Haiku 4.5 $0.00000 $0.00120

Measured 7d ago against content hash 69ca62c40eb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

issue-analyze 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 7d 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-analyze.md · 186 lines

How it starts

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

Issue Analyze

Analyze an issue to identify parallel work streams for maximum efficiency.

Usage

/pm:issue-analyze <issue_number>

Quick Check

  1. Find local task file:

    • First check if .claude/epics/*/$ARGUMENTS.md exists (new naming convention)
    • If not found, search for file containing github:.*issues/$ARGUMENTS in frontmatter (old naming)
    • If not found: "❌ No local task for issue #$ARGUMENTS. Run: /pm:import first"
  2. Check for existing analysis:

    test -f .claude/epics/*/$ARGUMENTS-analysis.md && echo "⚠️ Analysis already exists. Overwrite? (yes/no)"
    

Instructions

1. Read Issue Context

Get issue details from GitHub:

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

Read local task file to understand:

  • Technical requirements
  • Acceptance criteria
  • Dependencies
  • Effort estimate

2. Identify Parallel Work Streams

Analyze the issue to identify independent work that can run in parallel:

Common Patterns:

  • Database Layer: Schema, migrations, models
  • Service Layer: Business logic, data access
  • API Layer: Endpoints, validation, middleware
  • UI Layer: Components, pages, styles
  • Test Layer: Unit tests, integration tests
  • Documentation: API docs, README updates

Key Questions:

  • What files will be created/modified?
  • Which changes can happen independently?
  • What are the dependencies between changes?
  • Where might conflicts occur?

3. Create Analysis File

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

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

---
issue: $ARGUMENTS
title: {issue_title}
analyzed: {current_datetime}
estimated_hours: {total_hours}
parallelization_factor: {1.0-5.0}
---

# Parallel Work Analysis: Issue #$ARGUMENTS

## Overview
{Brief description of what needs to be done}

## Parallel Streams

### Stream A: {Stream Name}
**Scope**: {What this stream handles}
**Files**:
- {file_pattern_1}
- {file_pattern_2}
**Agent Type**: {backend|frontend|fullstack|database}-specialist
**Can Start**: immediately
**Estimated Hours**: {hours}
**Dependencies**: none

### Stream B: {Stream Name}
**Scope**: {What this stream handles}
**Files**:
- {file_pattern_1}
- {file_pattern_2}
**Agent Type**: {agent_type}
**Can Start**: immediately
**Estimated Hours**: {hours}
**Dependencies**: none

### Stream C: {Stream Name}
**Scope**: {What this stream handles}
**Files**:
- {file_pattern_1}
**Agent Type**: {agent_type}
**Can Start**: after Stream A completes
**Estimated Hours**: {hours}
**Dependencies**: Stream A

## Coordination Points

### Shared Files
{List any files multiple streams need to modify}:
- `src/types/index.ts` - Streams A & B (coordinate type updates)
- `package.json` - Stream B (add dependencies)

### Sequential Requirements
{List what must happen in order}:
1. Database schema before API endpoints
2. API types before UI components
3. Core logic before tests

## Conflict Risk Assessment
- **Low Risk**: Streams work on different directories
- **Medium Risk**: Some shared type files, manageable with coordination
- **High Risk**: Multiple streams modifying same core files

## Parallelization Strategy

**Recommended Approach**: {sequential|parallel|hybrid}

{If parallel}: Launch Streams A, B simultaneously. Start C when A completes.
{If sequential}: Complete Stream A, then B, then C.
{If hybrid}: Start A & B together, C depends on A, D depends on B & C.

## Expected Timeline

With parallel execution:
- Wall time: {max_stream_hours} hours
- Total work: {sum_all_hours} hours
- Efficiency gain: {percentage}%

Without parallel execution:
- Wall time: {sum_all_hours} hours

## Notes
{Any special considerations, warnings, or recommendations}

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

Subscribe to this mod's changes

issue-analyze 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,203 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.