@snarkipus/opencode-beads 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +9 -0
- package/README.md +150 -0
- package/dist/init/artifacts/beads/SKILL.md +16 -0
- package/dist/init/artifacts/beads/references/DEPENDENCIES.md +5 -0
- package/dist/init/artifacts/beads/references/ISSUE_CREATION.md +5 -0
- package/dist/init/artifacts/beads/references/RESUMABILITY.md +5 -0
- package/dist/init/manifest.json +54 -0
- package/package.json +82 -0
- package/src/init-cli.ts +172 -0
- package/src/init.ts +700 -0
- package/src/plugin-core.ts +290 -0
- package/src/plugin.ts +150 -0
- package/src/prime.ts +88 -0
- package/src/skill-collision-policy.ts +133 -0
- package/src/vendor-adaptations.ts +146 -0
- package/src/vendor-provenance.ts +252 -0
- package/src/vendor.ts +297 -0
- package/vendor/agents/task-agent.md +61 -0
- package/vendor/commands/audit.md +28 -0
- package/vendor/commands/blocked.md +15 -0
- package/vendor/commands/close.md +18 -0
- package/vendor/commands/comments.md +30 -0
- package/vendor/commands/compact.md +31 -0
- package/vendor/commands/create.md +19 -0
- package/vendor/commands/decision.md +111 -0
- package/vendor/commands/delete.md +32 -0
- package/vendor/commands/dep.md +101 -0
- package/vendor/commands/epic.md +27 -0
- package/vendor/commands/export.md +25 -0
- package/vendor/commands/import.md +18 -0
- package/vendor/commands/init.md +18 -0
- package/vendor/commands/label.md +33 -0
- package/vendor/commands/list.md +64 -0
- package/vendor/commands/prime.md +10 -0
- package/vendor/commands/quickstart.md +13 -0
- package/vendor/commands/ready.md +15 -0
- package/vendor/commands/rename-prefix.md +24 -0
- package/vendor/commands/reopen.md +22 -0
- package/vendor/commands/restore.md +27 -0
- package/vendor/commands/search.md +103 -0
- package/vendor/commands/show.md +17 -0
- package/vendor/commands/stats.md +17 -0
- package/vendor/commands/sync.md +17 -0
- package/vendor/commands/template.md +337 -0
- package/vendor/commands/update.md +24 -0
- package/vendor/commands/version.md +26 -0
- package/vendor/commands/workflow.md +58 -0
- package/vendor/manifest.json +168 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Manage dependencies between issues
|
|
3
|
+
argument-hint: [command] [from-id] [to-id]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Manage dependencies between beads issues.
|
|
7
|
+
|
|
8
|
+
## Available Commands
|
|
9
|
+
|
|
10
|
+
- **add**: Add a dependency between issues
|
|
11
|
+
- $1: "add"
|
|
12
|
+
- $2: From issue ID
|
|
13
|
+
- $3: To issue ID
|
|
14
|
+
- $4: Dependency type (blocks, related, parent-child, discovered-from)
|
|
15
|
+
|
|
16
|
+
- **remove**: Remove a dependency
|
|
17
|
+
- $1: "remove"
|
|
18
|
+
- $2: From issue ID
|
|
19
|
+
- $3: To issue ID
|
|
20
|
+
|
|
21
|
+
- **tree**: Show dependency tree for an issue
|
|
22
|
+
- $1: "tree"
|
|
23
|
+
- $2: Issue ID
|
|
24
|
+
- Flags:
|
|
25
|
+
- `--reverse`: Show dependent tree (what was discovered from this) instead of dependency tree (what blocks this)
|
|
26
|
+
- `--format mermaid`: Output as Mermaid.js flowchart (renders in GitHub/GitLab markdown)
|
|
27
|
+
- `--json`: Output as JSON
|
|
28
|
+
- `--max-depth N`: Limit tree depth (default: 50)
|
|
29
|
+
- `--show-all-paths`: Show all paths (no deduplication for diamond dependencies)
|
|
30
|
+
|
|
31
|
+
- **cycles**: Detect dependency cycles
|
|
32
|
+
|
|
33
|
+
## Dependency Types
|
|
34
|
+
|
|
35
|
+
- **blocks**: Hard blocker (from blocks to) - affects ready queue
|
|
36
|
+
- **related**: Soft relationship - for context only
|
|
37
|
+
- **parent-child**: Epic/subtask relationship
|
|
38
|
+
- **discovered-from**: Track issues found during work
|
|
39
|
+
|
|
40
|
+
## Mermaid Format
|
|
41
|
+
|
|
42
|
+
The `--format mermaid` option outputs the dependency tree as a Mermaid.js flowchart:
|
|
43
|
+
|
|
44
|
+
**Example:**
|
|
45
|
+
```bash
|
|
46
|
+
bd dep tree bd-1 --format mermaid
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Output can be embedded in markdown:
|
|
50
|
+
|
|
51
|
+
````markdown
|
|
52
|
+
```mermaid
|
|
53
|
+
flowchart TD
|
|
54
|
+
bd-1["◧ bd-1: Main task"]
|
|
55
|
+
bd-2["☑ bd-2: Subtask"]
|
|
56
|
+
|
|
57
|
+
bd-1 --> bd-2
|
|
58
|
+
```
|
|
59
|
+
````
|
|
60
|
+
|
|
61
|
+
**Status Indicators:**
|
|
62
|
+
|
|
63
|
+
Each node includes a symbol indicator for quick visual status identification:
|
|
64
|
+
|
|
65
|
+
- ☐ **Open** - Not started yet (empty checkbox)
|
|
66
|
+
- ◧ **In Progress** - Currently being worked on (half-filled box)
|
|
67
|
+
- ⚠ **Blocked** - Waiting on something (warning sign)
|
|
68
|
+
- ☑ **Closed** - Completed! (checked checkbox)
|
|
69
|
+
|
|
70
|
+
The diagram colors are determined by your Mermaid theme (default, dark, forest, neutral, or base). Mermaid diagrams render natively in GitHub, GitLab, VSCode markdown preview, and can be imported to Miro.
|
|
71
|
+
|
|
72
|
+
## Examples
|
|
73
|
+
|
|
74
|
+
- `bd dep add bd-10 bd-20 --type blocks`: bd-10 depends on bd-20 (bd-20 blocks bd-10)
|
|
75
|
+
- `bd dep tree bd-20`: Show what blocks bd-20 (dependency tree going UP)
|
|
76
|
+
- `bd dep tree bd-1 --reverse`: Show what was discovered from bd-1 (dependent tree going DOWN)
|
|
77
|
+
- `bd dep tree bd-1 --reverse --max-depth 3`: Show discovery tree with depth limit
|
|
78
|
+
- `bd dep tree bd-20 --format mermaid > tree.md`: Generate Mermaid diagram for documentation
|
|
79
|
+
- `bd dep cycles`: Check for circular dependencies
|
|
80
|
+
|
|
81
|
+
## Reverse Mode: Discovery Trees
|
|
82
|
+
|
|
83
|
+
The `--reverse` flag inverts the tree direction to show **dependents** instead of **dependencies**:
|
|
84
|
+
|
|
85
|
+
**Normal mode** (`bd dep tree ISSUE`):
|
|
86
|
+
- Shows what blocks you (dependency tree)
|
|
87
|
+
- Answers: "What must I complete before I can work on this?"
|
|
88
|
+
- Tree flows **UP** toward prerequisites
|
|
89
|
+
|
|
90
|
+
**Reverse mode** (`bd dep tree ISSUE --reverse`):
|
|
91
|
+
- Shows what was discovered from you (dependent tree)
|
|
92
|
+
- Answers: "What work was discovered while working on this?"
|
|
93
|
+
- Tree flows **DOWN** from goal to discovered tasks
|
|
94
|
+
- Perfect for visualizing work breakdown and discovery chains
|
|
95
|
+
|
|
96
|
+
**Use Cases:**
|
|
97
|
+
- Document project evolution and how work expanded from initial goal
|
|
98
|
+
- Share "how we got here" context with stakeholders
|
|
99
|
+
- Visualize work breakdown structure from epics
|
|
100
|
+
- Track discovery chains (what led to what)
|
|
101
|
+
- Show yak shaving journeys in retrospectives
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Epic management commands
|
|
3
|
+
argument-hint: [command]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Manage epics (large features composed of multiple issues).
|
|
7
|
+
|
|
8
|
+
## Available Commands
|
|
9
|
+
|
|
10
|
+
- **status**: Show epic completion status
|
|
11
|
+
- Shows progress for each epic
|
|
12
|
+
- Lists child issues and their states
|
|
13
|
+
- Calculates completion percentage
|
|
14
|
+
|
|
15
|
+
- **close-eligible**: Close epics where all children are complete
|
|
16
|
+
- Automatically closes epics when all child issues are done
|
|
17
|
+
- Useful for bulk epic cleanup
|
|
18
|
+
|
|
19
|
+
## Epic Workflow
|
|
20
|
+
|
|
21
|
+
1. Create epic: `bd create "Large Feature" -t epic -p 1`
|
|
22
|
+
2. Link subtasks: `bd dep add bd-20 bd-10 --type parent-child` (task bd-20 is child of epic bd-10)
|
|
23
|
+
- Or at creation: `bd create "Subtask title" -t task --parent bd-10`
|
|
24
|
+
3. Track progress: `bd epic status`
|
|
25
|
+
4. Auto-close when done: `bd epic close-eligible`
|
|
26
|
+
|
|
27
|
+
Epics use parent-child dependencies to track subtasks.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Export issues to JSONL format
|
|
3
|
+
argument-hint: [-o output-file]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Export all issues to JSON Lines format (one JSON object per line).
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
- **To stdout**: `bd export`
|
|
11
|
+
- **To file**: `bd export -o issues.jsonl`
|
|
12
|
+
- **Filter by status**: `bd export --status open`
|
|
13
|
+
|
|
14
|
+
Issues are sorted by ID for consistent diffs, making git diffs readable.
|
|
15
|
+
|
|
16
|
+
## When to Use
|
|
17
|
+
|
|
18
|
+
Dolt is the primary storage backend, so manual export is rarely needed. Use `bd export` when you need:
|
|
19
|
+
- A JSONL snapshot of issue records
|
|
20
|
+
- Data migration to another system
|
|
21
|
+
- Sharing issues outside the Dolt workflow
|
|
22
|
+
|
|
23
|
+
`bd export` is not a full database backup. It does not capture Dolt branches,
|
|
24
|
+
commit history, working-set state, or non-issue tables. Use `bd backup` for a
|
|
25
|
+
restorable Dolt-native database backup.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Import issues from JSONL format (removed)
|
|
3
|
+
argument-hint: (removed)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`bd import` has been **removed**.
|
|
7
|
+
|
|
8
|
+
## Migration
|
|
9
|
+
|
|
10
|
+
If you need to import issues from a JSONL file, use `bd init` with the `--from-jsonl` flag:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
bd init <prefix> --from-jsonl issues.jsonl
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Note
|
|
17
|
+
|
|
18
|
+
Dolt is the primary storage backend. Manual JSONL import is no longer supported as a standalone command.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Initialize beads in the current project
|
|
3
|
+
argument-hint: [prefix]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Initialize beads issue tracking in the current directory.
|
|
7
|
+
|
|
8
|
+
If a prefix is provided as $1, use it as the issue prefix (e.g., "myproject" creates issues like myproject-1, myproject-2). If not provided, the default is the current directory name.
|
|
9
|
+
|
|
10
|
+
Use the beads MCP `init` tool with the prefix parameter (if provided) to set up a new beads database.
|
|
11
|
+
|
|
12
|
+
After initialization:
|
|
13
|
+
1. Show the database location
|
|
14
|
+
2. Show the issue prefix that will be used
|
|
15
|
+
3. Explain the basic workflow (or suggest running `/beads:workflow`)
|
|
16
|
+
4. Suggest creating the first issue with `/beads:create`
|
|
17
|
+
|
|
18
|
+
If beads is already initialized, inform the user and show project stats using the `stats` tool.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Manage issue labels
|
|
3
|
+
argument-hint: [command] [issue-id] [label]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Manage labels on beads issues. Labels provide flexible cross-cutting metadata beyond structured fields (status, priority, type).
|
|
7
|
+
|
|
8
|
+
## Available Commands
|
|
9
|
+
|
|
10
|
+
- **add**: Add a label to an issue
|
|
11
|
+
- $1: "add"
|
|
12
|
+
- $2: Issue ID
|
|
13
|
+
- $3: Label name
|
|
14
|
+
|
|
15
|
+
- **remove**: Remove a label from an issue
|
|
16
|
+
- $1: "remove"
|
|
17
|
+
- $2: Issue ID
|
|
18
|
+
- $3: Label name
|
|
19
|
+
|
|
20
|
+
- **list**: List labels on a specific issue
|
|
21
|
+
- $1: "list"
|
|
22
|
+
- $2: Issue ID
|
|
23
|
+
|
|
24
|
+
- **list-all**: Show all labels used across all issues
|
|
25
|
+
|
|
26
|
+
## Common Label Use Cases
|
|
27
|
+
|
|
28
|
+
- Technical scope: `backend`, `frontend`, `api`, `database`
|
|
29
|
+
- Quality gates: `needs-review`, `needs-tests`, `security-review`
|
|
30
|
+
- Effort sizing: `quick-win`, `complex`, `spike`
|
|
31
|
+
- Context: `technical-debt`, `documentation`, `performance`
|
|
32
|
+
|
|
33
|
+
Use `bd label add <issue-id> <label>` to tag issues with contextual metadata.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: List issues with optional filters
|
|
3
|
+
argument-hint: [--status] [--priority] [--type] [--assignee] [--label]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
List beads issues with optional filtering.
|
|
7
|
+
|
|
8
|
+
## Basic Filters
|
|
9
|
+
|
|
10
|
+
- **--status, -s**: Filter by status (open, in_progress, blocked, closed)
|
|
11
|
+
- **--priority, -p**: Filter by priority (0-4: 0=critical, 1=high, 2=medium, 3=low, 4=backlog)
|
|
12
|
+
- **--type, -t**: Filter by type (bug, feature, task, epic, chore, decision)
|
|
13
|
+
- **--assignee, -a**: Filter by assignee
|
|
14
|
+
- **--label, -l**: Filter by labels (comma-separated, must have ALL labels)
|
|
15
|
+
- **--label-any**: Filter by labels (OR semantics, must have AT LEAST ONE)
|
|
16
|
+
- **--title**: Filter by title text (case-insensitive substring match)
|
|
17
|
+
- **--limit, -n**: Limit number of results
|
|
18
|
+
|
|
19
|
+
## Advanced Filters
|
|
20
|
+
|
|
21
|
+
### Pattern Matching
|
|
22
|
+
- **--title-contains**: Search for text in title (case-insensitive)
|
|
23
|
+
- **--desc-contains**: Search for text in description (case-insensitive)
|
|
24
|
+
- **--notes-contains**: Search for text in notes (case-insensitive)
|
|
25
|
+
|
|
26
|
+
### Date Ranges
|
|
27
|
+
- **--created-after**: Issues created after date (YYYY-MM-DD or ISO 8601)
|
|
28
|
+
- **--created-before**: Issues created before date
|
|
29
|
+
- **--updated-after**: Issues updated after date
|
|
30
|
+
- **--updated-before**: Issues updated before date
|
|
31
|
+
- **--closed-after**: Issues closed after date
|
|
32
|
+
- **--closed-before**: Issues closed before date
|
|
33
|
+
|
|
34
|
+
### Priority Range
|
|
35
|
+
- **--priority-min**: Minimum priority (inclusive)
|
|
36
|
+
- **--priority-max**: Maximum priority (inclusive)
|
|
37
|
+
|
|
38
|
+
### Empty/Null Checks
|
|
39
|
+
- **--empty-description**: Find issues with no description
|
|
40
|
+
- **--no-assignee**: Find unassigned issues
|
|
41
|
+
- **--no-labels**: Find issues with no labels
|
|
42
|
+
|
|
43
|
+
## Examples
|
|
44
|
+
|
|
45
|
+
### Basic Usage
|
|
46
|
+
- `bd list --status open --priority 1`: High priority open issues
|
|
47
|
+
- `bd list --type bug --assignee alice`: Alice's assigned bugs
|
|
48
|
+
- `bd list --label backend,needs-review`: Backend issues needing review
|
|
49
|
+
- `bd list --title "auth"`: Issues with "auth" in the title
|
|
50
|
+
|
|
51
|
+
### Advanced Usage
|
|
52
|
+
- `bd list --title-contains "auth" --status open`: Search open issues for auth-related work
|
|
53
|
+
- `bd list --priority-min 0 --priority-max 1`: Critical and high priority issues only
|
|
54
|
+
- `bd list --created-after 2025-01-01 --status open`: Recent open issues
|
|
55
|
+
- `bd list --empty-description --status open`: Open issues missing descriptions
|
|
56
|
+
- `bd list --no-assignee --priority 1`: High priority unassigned work
|
|
57
|
+
- `bd list --desc-contains "TODO" --notes-contains "review"`: Find items needing attention
|
|
58
|
+
|
|
59
|
+
## Output Formats
|
|
60
|
+
|
|
61
|
+
- Default: Human-readable table
|
|
62
|
+
- `--json`: JSON format for scripting
|
|
63
|
+
- `--format digraph`: Graph format for golang.org/x/tools/cmd/digraph
|
|
64
|
+
- `--format dot`: Graphviz DOT format
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Load AI-optimized workflow context for beads issue tracking.
|
|
2
|
+
|
|
3
|
+
Outputs essential beads workflow rules and command reference to help agents remember to use bd instead of markdown TODOs after context compaction.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
bd prime
|
|
7
|
+
bd prime --memories-only
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Use `--memories-only` when a hook should inject durable project memories without the full workflow guide.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Quick start guide for bd workflows (deprecated)
|
|
3
|
+
argument-hint: []
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
**Note:** The `bd quickstart` command is deprecated. See the [Quick Start](https://gastownhall.github.io/beads/getting-started/quickstart) on the documentation site, or the repo pointer [docs/QUICKSTART.md](../docs/QUICKSTART.md).
|
|
7
|
+
|
|
8
|
+
The quickstart documentation covers:
|
|
9
|
+
- Getting started with bd
|
|
10
|
+
- Common workflow patterns
|
|
11
|
+
- Basic commands
|
|
12
|
+
- Dependency management
|
|
13
|
+
- Git integration
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Find ready-to-work tasks with no blockers
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Use the beads MCP server to find tasks that are ready to work on (no blocking dependencies).
|
|
6
|
+
|
|
7
|
+
Call the `ready` tool to get a list of unblocked issues. Then present them to the user in a clear format showing:
|
|
8
|
+
- Issue ID
|
|
9
|
+
- Title
|
|
10
|
+
- Priority
|
|
11
|
+
- Issue type
|
|
12
|
+
|
|
13
|
+
If there are ready tasks, ask the user which one they'd like to work on. If they choose one, use the `claim` tool to start work atomically.
|
|
14
|
+
|
|
15
|
+
If there are no ready tasks, suggest checking `blocked` issues or creating a new issue with the `create` tool.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Rename the issue prefix for all issues
|
|
3
|
+
argument-hint: <new-prefix> [--dry-run]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Rename the issue prefix for all issues in the database.
|
|
7
|
+
|
|
8
|
+
Updates all issue IDs and all text references across all fields.
|
|
9
|
+
|
|
10
|
+
## Prefix Rules
|
|
11
|
+
|
|
12
|
+
- Max length: 8 characters
|
|
13
|
+
- Allowed: lowercase letters, numbers, hyphens
|
|
14
|
+
- Must start with a letter
|
|
15
|
+
- Must end with a hyphen (e.g., 'kw-', 'work-')
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
- **Preview**: `bd rename-prefix kw- --dry-run`
|
|
20
|
+
- **Apply**: `bd rename-prefix kw-`
|
|
21
|
+
|
|
22
|
+
Example: Rename from 'knowledge-work-' to 'kw-'
|
|
23
|
+
|
|
24
|
+
All dependencies and text references are automatically updated.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Reopen closed issues
|
|
3
|
+
argument-hint: [issue-ids...] [--reason]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Reopen one or more closed issues.
|
|
7
|
+
|
|
8
|
+
Sets status to 'open' and clears the closed_at timestamp. Emits a Reopened event.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
- **Reopen single**: `bd reopen bd-42`
|
|
13
|
+
- **Reopen multiple**: `bd reopen bd-42 bd-43 bd-44`
|
|
14
|
+
- **With reason**: `bd reopen bd-42 --reason "Found regression"`
|
|
15
|
+
|
|
16
|
+
More explicit than `bd update --status open` - specifically designed for reopening workflow.
|
|
17
|
+
|
|
18
|
+
Common reasons for reopening:
|
|
19
|
+
- Regression found
|
|
20
|
+
- Requirements changed
|
|
21
|
+
- Incomplete implementation
|
|
22
|
+
- New information discovered
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Restore full history of compacted issue from git
|
|
3
|
+
argument-hint: <issue-id>
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Restore full history of a compacted issue from git version control.
|
|
7
|
+
|
|
8
|
+
When an issue is compacted, the git commit hash is saved. This command:
|
|
9
|
+
|
|
10
|
+
1. Reads the compacted_at_commit from the database
|
|
11
|
+
2. Retrieves the full issue from Dolt history at that point
|
|
12
|
+
3. Displays the full issue history (description, events, etc.)
|
|
13
|
+
4. Returns to the current state
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
`bd restore bd-42`
|
|
18
|
+
|
|
19
|
+
This is **read-only** - it does not modify the database or git state.
|
|
20
|
+
|
|
21
|
+
Useful for:
|
|
22
|
+
- Reviewing old issues after compaction
|
|
23
|
+
- Recovering forgotten context
|
|
24
|
+
- Audit trails
|
|
25
|
+
- Historical research
|
|
26
|
+
|
|
27
|
+
Requires git repository with issue history.
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Search issues by text query
|
|
3
|
+
argument-hint: <query> [--status] [--label] [--assignee]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Search issues across title, description, and ID with a simple text query.
|
|
7
|
+
|
|
8
|
+
**Note:** The `search` command is optimized for quick text searches and uses less context than `list` when accessed via MCP. For advanced filtering options, use `bd list`.
|
|
9
|
+
|
|
10
|
+
## Basic Usage
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
bd search "authentication bug"
|
|
14
|
+
bd search login --status open
|
|
15
|
+
bd search database --label backend
|
|
16
|
+
bd search "bd-5q" # Search by partial issue ID
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## How It Works
|
|
20
|
+
|
|
21
|
+
The search command finds issues where your query appears in **any** of:
|
|
22
|
+
- Issue title
|
|
23
|
+
- Issue description
|
|
24
|
+
- Issue ID (supports partial matching)
|
|
25
|
+
|
|
26
|
+
Unlike `bd list`, which requires you to specify which field to search, `bd search` automatically searches all text fields, making it faster and more intuitive for exploratory searches.
|
|
27
|
+
|
|
28
|
+
## Filters
|
|
29
|
+
|
|
30
|
+
- **--status, -s**: Filter by status (open, in_progress, blocked, closed)
|
|
31
|
+
- **--assignee, -a**: Filter by assignee
|
|
32
|
+
- **--type, -t**: Filter by type (bug, feature, task, epic, chore, decision)
|
|
33
|
+
- **--label, -l**: Filter by labels (must have ALL specified labels)
|
|
34
|
+
- **--label-any**: Filter by labels (must have AT LEAST ONE)
|
|
35
|
+
- **--limit, -n**: Limit number of results (default: 50)
|
|
36
|
+
- **--sort**: Sort by field: priority, created, updated, closed, status, id, title, type, assignee
|
|
37
|
+
- **--reverse, -r**: Reverse sort order
|
|
38
|
+
- **--long**: Show detailed multi-line output for each issue
|
|
39
|
+
- **--json**: Output results in JSON format
|
|
40
|
+
|
|
41
|
+
## Examples
|
|
42
|
+
|
|
43
|
+
### Basic Search
|
|
44
|
+
```bash
|
|
45
|
+
# Find all issues mentioning "auth" or "authentication"
|
|
46
|
+
bd search auth
|
|
47
|
+
|
|
48
|
+
# Search for performance issues
|
|
49
|
+
bd search performance --status open
|
|
50
|
+
|
|
51
|
+
# Find database-related bugs
|
|
52
|
+
bd search database --type bug
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Filtered Search
|
|
56
|
+
```bash
|
|
57
|
+
# Find open backend issues about login
|
|
58
|
+
bd search login --status open --label backend
|
|
59
|
+
|
|
60
|
+
# Search Alice's tasks for "refactor"
|
|
61
|
+
bd search refactor --assignee alice --type task
|
|
62
|
+
|
|
63
|
+
# Find recent bugs (limited to 10 results)
|
|
64
|
+
bd search bug --status open --limit 10
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Sorted Output
|
|
68
|
+
```bash
|
|
69
|
+
# Search bugs sorted by priority (P0 first)
|
|
70
|
+
bd search bug --sort priority
|
|
71
|
+
|
|
72
|
+
# Search features sorted by most recently updated
|
|
73
|
+
bd search feature --sort updated
|
|
74
|
+
|
|
75
|
+
# Search issues sorted by priority, lowest first
|
|
76
|
+
bd search refactor --sort priority --reverse
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### JSON Output
|
|
80
|
+
```bash
|
|
81
|
+
# Get JSON results for programmatic use
|
|
82
|
+
bd search "api error" --json
|
|
83
|
+
|
|
84
|
+
# Use with jq for advanced filtering
|
|
85
|
+
bd search memory --json | jq '.[] | select(.priority <= 1)'
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Comparison with bd list
|
|
89
|
+
|
|
90
|
+
| Command | Best For | Default Limit | Context Usage |
|
|
91
|
+
|---------|----------|---------------|---------------|
|
|
92
|
+
| `bd search` | Quick text searches, exploratory queries | 50 | Low (efficient for LLMs) |
|
|
93
|
+
| `bd list` | Advanced filtering, precise queries | None | High (all results) |
|
|
94
|
+
|
|
95
|
+
**When to use `bd search`:**
|
|
96
|
+
- You want to find issues quickly by keyword
|
|
97
|
+
- You're exploring the issue database
|
|
98
|
+
- You're using an LLM/MCP and want to minimize context usage
|
|
99
|
+
|
|
100
|
+
**When to use `bd list`:**
|
|
101
|
+
- You need advanced filters (date ranges, priority ranges, etc.)
|
|
102
|
+
- You want all results without a limit
|
|
103
|
+
- You need special output formats (digraph, dot)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Show detailed information about an issue
|
|
3
|
+
argument-hint: [issue-id]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Display detailed information about a beads issue.
|
|
7
|
+
|
|
8
|
+
If an issue ID is provided as $1, use it. Otherwise, ask the user for the issue ID.
|
|
9
|
+
|
|
10
|
+
Use the beads MCP `show` tool to retrieve issue details and present them clearly, including:
|
|
11
|
+
- Issue ID, title, and description
|
|
12
|
+
- Status, priority, and type
|
|
13
|
+
- Creation and update timestamps
|
|
14
|
+
- Dependencies (what this issue blocks or is blocked by)
|
|
15
|
+
- Related issues
|
|
16
|
+
|
|
17
|
+
If the issue has dependencies, offer to show the full dependency tree.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Show project statistics and progress
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Display statistics about the current beads project.
|
|
6
|
+
|
|
7
|
+
Use the beads MCP `stats` tool to retrieve project metrics and present them clearly:
|
|
8
|
+
- Total issues by status (open, in_progress, blocked, closed)
|
|
9
|
+
- Issues by priority level
|
|
10
|
+
- Issues by type (bug, feature, task, epic, chore)
|
|
11
|
+
- Completion rate
|
|
12
|
+
- Recently updated issues
|
|
13
|
+
|
|
14
|
+
Optionally suggest actions based on the stats:
|
|
15
|
+
- High number of blocked issues? Run `/beads:blocked` to investigate
|
|
16
|
+
- No in_progress work? Run `/beads:ready` to find tasks
|
|
17
|
+
- Many open issues? Consider prioritizing with `/beads:update`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Synchronize issues (deprecated — use bd dolt push/pull)
|
|
3
|
+
argument-hint: (deprecated)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`bd sync` is **deprecated** and is now a no-op.
|
|
7
|
+
|
|
8
|
+
## Use Dolt commands instead
|
|
9
|
+
|
|
10
|
+
- **Push to remote**: `bd dolt push`
|
|
11
|
+
- **Pull from remote**: `bd dolt pull`
|
|
12
|
+
- **Commit pending changes**: `bd dolt commit`
|
|
13
|
+
- **Check connection**: `bd dolt show`
|
|
14
|
+
|
|
15
|
+
## Note
|
|
16
|
+
|
|
17
|
+
Most users should rely on the Dolt server's automatic sync (with `dolt.auto-commit` enabled) instead of running manual sync commands.
|