Manage issue templates for streamlined issue creation.
Manages issue templates for streamlined issue creation.
/plugin marketplace add dbmcco/tmux-beads-loops/plugin install dbmcco-beads@dbmcco/tmux-beads-loopsManage issue templates for streamlined issue creation.
Templates provide pre-filled structures for common issue types, making it faster to create well-formed issues with consistent formatting.
bd template list
bd template show <template-name>
bd template create <template-name>
Templates can be:
.beads/templates/ directoryEach template defines default values for:
List all available templates (built-in and custom).
bd template list
bd template list --json
Examples:
$ bd template list
Built-in Templates:
epic
Type: epic, Priority: P1
Labels: epic
bug
Type: bug, Priority: P1
Labels: bug
feature
Type: feature, Priority: P2
Labels: feature
Show detailed structure of a specific template.
bd template show <template-name>
bd template show <template-name> --json
Examples:
$ bd template show bug
Template: bug
Type: bug
Priority: P1
Labels: bug
Description:
## Summary
[Brief description of the bug]
## Steps to Reproduce
...
Create a custom template in .beads/templates/ directory.
bd template create <template-name>
This creates a YAML file with default structure that you can edit to customize.
Examples:
$ bd template create performance
✓ Created template: .beads/templates/performance.yaml
Edit the file to customize your template.
$ cat .beads/templates/performance.yaml
name: performance
description: |-
[Describe the issue]
## Additional Context
[Add relevant details]
type: task
priority: 2
labels: []
design: '[Design notes]'
acceptance_criteria: |-
- [ ] Acceptance criterion 1
- [ ] Acceptance criterion 2
# Edit the template to customize it
$ vim .beads/templates/performance.yaml
bd createUse the --from-template flag to create issues from templates:
bd create --from-template <template-name> "Issue title"
Template values can be overridden with explicit flags:
# Use bug template but override priority
bd create --from-template bug "Login crashes on special chars" -p 0
# Use epic template but add extra labels
bd create --from-template epic "Q4 Infrastructure" -l infrastructure,ops
Examples:
# Create epic from template
$ bd create --from-template epic "Phase 3 Features"
✓ Created issue: bd-a3f8e9
Title: Phase 3 Features
Priority: P1
Status: open
# Create bug report from template
$ bd create --from-template bug "Auth token validation fails"
✓ Created issue: bd-42bc7a
Title: Auth token validation fails
Priority: P1
Status: open
# Use custom template
$ bd template create security-audit
$ bd create --from-template security-audit "Review authentication flow"
Templates are YAML files with the following structure:
name: template-name
description: |
Multi-line description with placeholders
## Section heading
[Placeholder text]
type: bug|feature|task|epic|chore
priority: 0-4
labels:
- label1
- label2
design: |
Design notes structure
acceptance_criteria: |
- [ ] Acceptance criterion 1
- [ ] Acceptance criterion 2
For large features composed of multiple issues.
Structure:
Defaults:
For bug reports with consistent structure.
Structure:
Defaults:
For feature requests and enhancements.
Structure:
Defaults:
Custom templates override built-in templates with the same name. This allows you to customize built-in templates for your project.
Priority:
.beads/templates/Example - Override bug template:
# Create custom bug template
$ bd template create bug
# Edit to add project-specific fields
$ cat > .beads/templates/bug.yaml << 'EOF'
name: bug
description: |
## Bug Report
**Severity:** [critical|high|medium|low]
**Component:** [auth|api|frontend|backend]
## Description
[Describe the bug]
## Reproduction
1. Step 1
2. Step 2
## Impact
[Who is affected? How many users?]
type: bug
priority: 0
labels:
- bug
- needs-triage
design: |
## Investigation Notes
[Technical details]
acceptance_criteria: |
- [ ] Bug fixed and verified
- [ ] Tests added
- [ ] Monitoring added
EOF
# Now 'bd create --from-template bug' uses your custom template
All template commands support --json flag for programmatic use:
$ bd template list --json
[
{
"name": "epic",
"description": "## Overview...",
"type": "epic",
"priority": 1,
"labels": ["epic"],
"design": "## Architecture...",
"acceptance_criteria": "- [ ] All child issues..."
}
]
$ bd template show bug --json
{
"name": "bug",
"description": "## Summary...",
"type": "bug",
"priority": 1,
"labels": ["bug"],
"design": "## Root Cause...",
"acceptance_criteria": "- [ ] Bug no longer..."
}
.beads/templates/ to share across teamperformance, security-audit) rather than generic ones[brackets] or TODO- [ ] for actionable items in description and acceptance criteria