Templates Overview
Templates provide reusable defaults and body structure for note creation. They live in .bwrb/templates/.
Template Location
Section titled “Template Location”Templates are organized by type path:
my-vault/└── .bwrb/ ├── schema.json └── templates/ ├── idea/ │ └── default.md └── objective/ └── task/ ├── default.md └── bug-report.mdTemplate Format
Section titled “Template Format”Templates are markdown files with special frontmatter:
---type: templatetemplate-for: objective/taskdescription: Bug report with reproduction stepsdefaults: status: backlog priority: highprompt-fields: - deadline---
## Description
[Describe the bug]
## Steps to Reproduce
1.2.3.Using Templates
Section titled “Using Templates”# Auto-use default.md if it existsbwrb new task
# Use specific templatebwrb new task --template bug-report
# Skip templatesbwrb new task --no-templateHow Templates Are Selected
Section titled “How Templates Are Selected”When you run bwrb new <type>:
- With
--template name— Uses.bwrb/templates/{type}/name.md - With
--no-template— Skips templates, uses schema defaults only - Without flags — Uses
.bwrb/templates/{type}/default.mdif it exists
If both --template and --no-template are specified, --no-template wins.
Templates use strict type matching—no inheritance. A template for task won’t be found when creating objective/task unless it’s in the correct directory.
Template Workflow Example
Section titled “Template Workflow Example”Set up templates for a new note type:
# 1. Create a default template for tasksbwrb template new task
# 2. Create a specialized bug report templatebwrb template new task --name bug-report
# 3. Edit the template to customize itbwrb template edit task bug-report
# 4. List templates to verifybwrb template list task
# 5. Use the templatebwrb new task --template bug-report
# 6. Validate templates match current schemabwrb template validateKey Concepts
Section titled “Key Concepts”| Concept | Description |
|---|---|
| defaults | Pre-fill field values (skip prompting) |
| prompt-fields | Always prompt for these fields, even with defaults |
| Date expressions | Dynamic values like today() + '7d' |
| Body variables | {fieldName}, {date} replaced at creation |
Next Steps
Section titled “Next Steps”- Creating Templates — Full guide with best practices
- bwrb template command — Command reference