opencodekit 0.20.4 → 0.20.6
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/dist/index.js +1 -1
- package/dist/template/.opencode/AGENTS.md +71 -9
- package/dist/template/.opencode/agent/build.md +82 -32
- package/dist/template/.opencode/agent/plan.md +22 -14
- package/dist/template/.opencode/agent/review.md +18 -40
- package/dist/template/.opencode/agent/scout.md +17 -0
- package/dist/template/.opencode/command/compound.md +24 -2
- package/dist/template/.opencode/command/create.md +65 -69
- package/dist/template/.opencode/command/explore.md +170 -0
- package/dist/template/.opencode/command/health.md +124 -2
- package/dist/template/.opencode/command/iterate.md +200 -0
- package/dist/template/.opencode/command/plan.md +74 -14
- package/dist/template/.opencode/command/pr.md +4 -16
- package/dist/template/.opencode/command/research.md +7 -16
- package/dist/template/.opencode/command/resume.md +2 -11
- package/dist/template/.opencode/command/review-codebase.md +9 -15
- package/dist/template/.opencode/command/ship.md +12 -53
- package/dist/template/.opencode/memory/_templates/prd.md +16 -5
- package/dist/template/.opencode/memory/project/user.md +7 -0
- package/dist/template/.opencode/memory.db +0 -0
- package/dist/template/.opencode/memory.db-shm +0 -0
- package/dist/template/.opencode/memory.db-wal +0 -0
- package/dist/template/.opencode/opencode.json +54 -67
- package/dist/template/.opencode/package.json +1 -1
- package/dist/template/.opencode/skill/memory-grounding/SKILL.md +68 -0
- package/dist/template/.opencode/skill/reconcile/SKILL.md +183 -0
- package/dist/template/.opencode/skill/verification-before-completion/SKILL.md +75 -0
- package/dist/template/.opencode/skill/verification-gates/SKILL.md +63 -0
- package/dist/template/.opencode/skill/workspace-setup/SKILL.md +76 -0
- package/package.json +1 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: workspace-setup
|
|
3
|
+
description: >
|
|
4
|
+
Use when a command needs to create a feature branch or set up a workspace for bead work. Shared by /create and /ship.
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
tags: [git, workspace, branch, setup]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Workspace Setup
|
|
10
|
+
|
|
11
|
+
Set up a git workspace (branch or worktree) for bead-based work.
|
|
12
|
+
|
|
13
|
+
## When to Use
|
|
14
|
+
|
|
15
|
+
- In `/create` after bead creation, before task conversion
|
|
16
|
+
- In `/ship` when auto-claiming an unclaimed bead
|
|
17
|
+
- Any command that needs to transition from "no workspace" to "active workspace"
|
|
18
|
+
|
|
19
|
+
## When NOT to Use
|
|
20
|
+
|
|
21
|
+
- If bead is already `in_progress` with an existing branch
|
|
22
|
+
- If user explicitly chose "Use current branch"
|
|
23
|
+
|
|
24
|
+
## Protocol
|
|
25
|
+
|
|
26
|
+
### Step 1: Ask the user
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
question({
|
|
30
|
+
questions: [
|
|
31
|
+
{
|
|
32
|
+
header: "Workspace",
|
|
33
|
+
question: "How do you want to set up the workspace?",
|
|
34
|
+
options: [
|
|
35
|
+
{
|
|
36
|
+
label: "Create feature branch (Recommended)",
|
|
37
|
+
description: "git checkout -b <prefix>/<bead-id>-<title>",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: "Use current branch",
|
|
41
|
+
description: "Work on current branch without creating a new one",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
});
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
> **Note:** `/create` may additionally offer a "Create worktree" option using `skill({ name: "using-git-worktrees" })`.
|
|
50
|
+
|
|
51
|
+
### Step 2: Create branch (if selected)
|
|
52
|
+
|
|
53
|
+
Map bead type to branch prefix:
|
|
54
|
+
|
|
55
|
+
| Bead Type | Branch Prefix |
|
|
56
|
+
| --------- | ------------- |
|
|
57
|
+
| feature | feat |
|
|
58
|
+
| bug | fix |
|
|
59
|
+
| task | task |
|
|
60
|
+
| epic | epic |
|
|
61
|
+
|
|
62
|
+
Create the branch:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
git checkout -b $PREFIX/$BEAD_ID-$TITLE_SLUG
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Where `$TITLE_SLUG` is the bead title lowercased with spaces replaced by hyphens, truncated to ~50 chars.
|
|
69
|
+
|
|
70
|
+
### Step 3: Confirm
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
git branch --show-current
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Verify you're on the new branch before proceeding.
|