implement-issue

A command workflow for implementing a Linear issue, where Linear is a tool for tracking software tasks and bugs. It retrieves the issue, checks dependencies and branch placement, and coordinates investigation, coding, testing, and review.

In plain words
What is it for?
Use it when implementing a BLZ issue from Linear, especially when the issue has dependencies or must be placed in a Graphite stack.
Why use it?
It gives an agent a repeatable process for turning a tracked issue into a code change. This helps reveal blocked work and keeps related branches organized before implementation begins.

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/outfitter-dev/blz/implement-issue
Clone the repo
git clone --depth 1 https://github.com/outfitter-dev/blz

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 2,035 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.02035
Opus 5 $0.00000 $0.01018
Sonnet 5 $0.00000 $0.00407
Haiku 4.5 $0.00000 $0.00203

Measured yesterday against content hash 25ad3b7cec71, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

implement-issue 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 yesterday.

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/implement-issue.md · 223 lines

How it starts

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

Implement Linear Issue

Instructions:

Context

Linear Team ID: 28630e87-24b7-4401-840b-600703c308fc Linear Team Name: BLZ

Overview

Orchestrate a complete implementation workflow for the Linear issue using specialized subagents. Follow best practices for investigation, implementation, testing, and quality assurance.

Important

  • When working on this issue, ensure that you're using gt commands exclusively.
  • If at any point you encounter errors or unexpected behavior, pause and discuss with the user.

Preparation

  1. Look up issue details:

    • Use mcp__linear-server__get_issue to fetch the $ARGUMENTS issue (e.g., BLZ-123)
    • Extract the gitBranchName field from the response (e.g., blz-123-fix-something)
    • Note any dependencies mentioned in the issue description (links to other issues like "Depends on BLZ-XXX" or "Blocked by BLZ-XXX")
  2. Check dependencies and stack placement:

    • Review the Graphite stack: !gt log short
    • If issue has dependencies:
      • Check if dependency issues are already in the stack (look for their branch names in gt log short)
      • Verify dependency branches are below (downstack from) where this work will go
      • If dependencies are missing or not yet merged: Inform user that the issue is blocked and suggest implementing dependencies first
      • If dependencies are complete: Proceed, ensuring this branch builds on top of them
    • Determine stack position:
      • If dependencies exist in stack: This branch should be created on top of the highest dependency
      • If no dependencies: Can branch from trunk (main)
      • Check for related work in stack that this should build upon
  3. Verify branch alignment:

    • Check current branch: !git branch --show-current
    • Compare with the recommended gitBranchName from Linear
    • If gitBranchName does not match the current branch:
      • Inform the user of the mismatch
      • Consider stack position: Suggest gt create <gitBranchName> from appropriate parent branch
      • Example: If building on BLZ-100, suggest: gt checkout blz-100-some-feature && gt create <gitBranchName>
      • Wait for user confirmation before proceeding
    • If on the correct branch: Verify it's in the right position in the stack (correct parent branch)
    • If branch exists but wrong position: Suggest gt move --onto <parent-branch> to reposition

Read the full file on GitHub · 223 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. yesterday First seen · 223 lines · 0 tokens per session scan A 25ad3b7cec71

Subscribe to this mod's changes

implement-issue is a command published in the GitHub repository outfitter-dev/blz (27 stars, last pushed 20d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,035 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-30.