linear
Linear issue management with workflows for retrieving, updating, and commenting on LOBE-xxx issues.
- Retrieve issue details, check for sub-issues, and update status using dedicated MCP tools before and after work
- Automatically link PRs to Linear issues using magic keywords (Fixes/Closes/Resolves LOBE-xxx) in PR body
- Add completion comments to all referenced issues immediately after PR creation with a standardized format summarizing changes, files modified, and PR reference
- Create new issues with the
claude codelabel automatically - Enforce per-issue workflow: complete implementation, create PR, update status to "In Review", then add Linear comments before moving to the next issue
Linear Issue Management
Before using Linear workflows, search for linear MCP tools. If not found, treat as not installed.
⚠️ CRITICAL: PR Creation with Linear Issues
When creating a PR that references Linear issues (LOBE-xxx), you MUST:
- Create the PR with magic keywords (
Fixes LOBE-xxx) - IMMEDIATELY after PR creation, add completion comments to ALL referenced Linear issues
- Do NOT consider the task complete until Linear comments are added
This is NON-NEGOTIABLE. Skipping Linear comments is a workflow violation.
Workflow
- Retrieve issue details before starting:
mcp__linear-server__get_issue - Check for sub-issues: Use
mcp__linear-server__list_issueswithparentIdfilter - Update issue status when completing:
mcp__linear-server__update_issue - Add completion comment (REQUIRED):
mcp__linear-server__create_comment
Creating Issues
When creating issues with mcp__linear-server__create_issue, MUST add the claude code label.
Completion Comment Format
Every completed issue MUST have a comment summarizing work done:
## Changes Summary
- **Feature**: Brief description of what was implemented
- **Files Changed**: List key files modified
- **PR**: #xxx or PR URL
### Key Changes
- Change 1
- Change 2
- ...
This is critical for:
- Team visibility
- Code review context
- Future reference
PR Association (REQUIRED)
When creating PRs for Linear issues, include magic keywords in PR body:
Fixes LOBE-123Closes LOBE-123Resolves LOBE-123
Per-Issue Completion Rule
When working on multiple issues, update EACH issue IMMEDIATELY after completing it:
- Complete implementation
- Run
bun run type-check - Run related tests
- Create PR if needed
- Update status to "In Review" (NOT "Done")
- Add completion comment immediately
- Move to next issue
Note: Status → "In Review" when PR created. "Done" only after PR merged.
❌ Wrong: Complete all → Create PR → Forget Linear comments
✅ Correct: Complete → Create PR → Add Linear comments → Task done