Create bead(s) from a user prompt. Investigates relevance, checks for duplicates, and may split complex requests into multiple focused beads...
Analyze user requests and create appropriate beads with intelligent investigation.
/triage <description of feature, bug, or task>
/triage ABC-123 # Create bead(s) from a Jira ticket
/triage ABC-123 break into subtasks # Jira ticket with additional instructions
Investigate Relevance
Check for Duplicates
bd list --status=open to see existing workAnalyze Complexity
Create Beads
Report Summary
# Simple feature request
/triage Add dark mode toggle to settings page
# Bug report
/triage Users seeing 500 error when saving profile with emoji in name
# Complex request (may split)
/triage Implement user authentication with OAuth, session management, and password reset
# From a Jira ticket
/triage SP-123
# Jira ticket broken into subtasks
/triage SP-123 break into subtasks
After triage, provide:
When invoked:
Parse the input to determine the source:
[A-Z]{2,4}-\d+ (e.g., SP-123, ABC-45)If Jira ticket detected, look up the ticket:
mcp__jira__jira_get with:
path: /rest/api/3/issue/{ticketNumber}
jq: "{key: key, summary: fields.summary, type: fields.issuetype.name, description: fields.description}"
Map the Jira issue type to bead type:
| Jira Issue Type | Bead Type |
|---|---|
| Story | feature |
| Task | task |
| Bug | bug |
| Sub-task | task |
| Improvement | feature |
| Spike | task |
| Technical Debt | task |
| Default | task |
Use the ticket summary and description to populate the bead title and description. Any additional text after the ticket ID in the prompt is treated as extra instructions (e.g., "break into subtasks").
Quick codebase investigation:
# Search for related code/files
# Check if area of code exists
Check for duplicates:
bd list --status=open
bd search "<keywords from description>"
Decide on bead structure:
Create bead(s):
# For Jira-sourced beads, include --external-ref and --labels
bd create --title="..." --type=feature|bug|task --priority=2 \
--description="..." \
--external-ref "jira-SP-123" \
--labels "jira"
# For free-text beads (no Jira reference)
bd create --title="..." --type=feature|bug|task --priority=2 --description="..."
If multiple beads, set dependencies:
bd dep add <dependent> <dependency>
When creating multiple beads from a single Jira ticket, all beads get the same --external-ref and jira label so they can be traced back to the source ticket.
Report results with summary of open beads