Fetch Linear issue and create branch
Linear issue identifier: $ARGUMENTS
Examples: ALG-27, 27, alg-27
Parse issue identifier from $ARGUMENTS:
ALG-27, 27, alg-27ALG-{NUM} for Linear API callFetch issue details using Linear MCP:
mcp__linear-server__get_issue with:
- id: ALG-{NUM}
- includeRelations: true
Extract from issue response:
identifier: e.g., "ALG-27"title: Issue titledescription: Full descriptionlabels: Array of label namesstatus: Current statusrelations.blocks: Issues this blocksrelations.blockedBy: Issues blocking thisrelations.relatedTo: Related issuesParse description for mentioned issues:
ALG-\d+ (case-insensitive)[ALG-13](https://linear.app/...) -> extract ALG-13For each linked issue (from relations AND description mentions):
specs/alg-{related-num}-*/spec.md (Glob matches files, not directories)Derive kebab-slug from title:
Create branch and spec directory:
NUM={extracted number}
SLUG={kebab-slug}
git checkout -b alg-${NUM}-${SLUG}
mkdir -p specs/alg-${NUM}-${SLUG}
Output context summary: