opencodekit 0.15.0 → 0.15.2
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 +367 -31
- package/dist/template/.opencode/README.md +1 -1
- package/dist/template/.opencode/agent/vision.md +4 -4
- package/dist/template/.opencode/command/agent-browser.md +21 -0
- package/dist/template/.opencode/command/complete-next-task.md +77 -0
- package/dist/template/.opencode/command/create.md +38 -3
- package/dist/template/.opencode/command/design-audit.md +1 -1
- package/dist/template/.opencode/command/design.md +1 -1
- package/dist/template/.opencode/command/finish.md +8 -0
- package/dist/template/.opencode/command/frontend-design.md +21 -0
- package/dist/template/.opencode/command/index-knowledge.md +25 -0
- package/dist/template/.opencode/command/init.md +6 -0
- package/dist/template/.opencode/command/opensrc.md +58 -0
- package/dist/template/.opencode/command/skill-create.md +3 -3
- package/dist/template/.opencode/command/skill-optimize.md +2 -2
- package/dist/template/.opencode/command/start.md +15 -6
- package/dist/template/.opencode/command/ui-review.md +1 -1
- package/dist/template/.opencode/memory/_templates/prd.md +50 -14
- package/dist/template/.opencode/opencode.json +143 -159
- package/dist/template/.opencode/package.json +1 -1
- package/dist/template/.opencode/skill/accessibility-audit/SKILL.md +1 -1
- package/dist/template/.opencode/skill/agent-browser/SKILL.md +376 -0
- package/dist/template/.opencode/skill/design-system-audit/SKILL.md +1 -1
- package/dist/template/.opencode/skill/frontend-design/SKILL.md +155 -0
- package/dist/template/.opencode/skill/frontend-design/references/animation/motion-advanced.md +224 -0
- package/dist/template/.opencode/skill/frontend-design/references/animation/motion-core.md +171 -0
- package/dist/template/.opencode/skill/frontend-design/references/canvas/execution.md +90 -0
- package/dist/template/.opencode/skill/frontend-design/references/canvas/philosophy.md +94 -0
- package/dist/template/.opencode/skill/frontend-design/references/shadcn/accessibility.md +132 -0
- package/dist/template/.opencode/skill/frontend-design/references/shadcn/core-components.md +153 -0
- package/dist/template/.opencode/skill/frontend-design/references/shadcn/form-components.md +158 -0
- package/dist/template/.opencode/skill/frontend-design/references/shadcn/setup.md +69 -0
- package/dist/template/.opencode/skill/frontend-design/references/shadcn/theming.md +152 -0
- package/dist/template/.opencode/skill/frontend-design/references/tailwind/responsive.md +112 -0
- package/dist/template/.opencode/skill/frontend-design/references/tailwind/utilities-layout.md +134 -0
- package/dist/template/.opencode/skill/frontend-design/references/tailwind/utilities-styling.md +165 -0
- package/dist/template/.opencode/skill/frontend-design/references/tailwind/v4-config.md +147 -0
- package/dist/template/.opencode/skill/frontend-design/references/tailwind/v4-features.md +128 -0
- package/dist/template/.opencode/skill/index-knowledge/SKILL.md +358 -0
- package/dist/template/.opencode/skill/mockup-to-code/SKILL.md +1 -1
- package/dist/template/.opencode/skill/opensrc/SKILL.md +115 -0
- package/dist/template/.opencode/skill/opensrc/references/architecture.md +176 -0
- package/dist/template/.opencode/skill/opensrc/references/cli-usage.md +176 -0
- package/dist/template/.opencode/skill/opensrc/references/registry-support.md +137 -0
- package/dist/template/.opencode/skill/prd/SKILL.md +212 -0
- package/dist/template/.opencode/skill/prd-task/SKILL.md +128 -0
- package/dist/template/.opencode/skill/prd-task/references/prd-schema.json +28 -0
- package/dist/template/.opencode/skill/skill-creator/SKILL.md +155 -0
- package/dist/template/.opencode/skill/ui-ux-research/SKILL.md +1 -1
- package/dist/template/.opencode/skill/visual-analysis/SKILL.md +1 -1
- package/package.json +1 -1
- package/dist/template/.opencode/skill/frontend-aesthetics/SKILL.md +0 -117
|
@@ -60,7 +60,9 @@ bd create "[title]" -t epic -p 1
|
|
|
60
60
|
|
|
61
61
|
## Create Spec
|
|
62
62
|
|
|
63
|
-
Write `.beads/artifacts/<bead-id>/spec.md
|
|
63
|
+
Write `.beads/artifacts/<bead-id>/spec.md`.
|
|
64
|
+
|
|
65
|
+
Treat `spec.md` as a **short task card** (one screen): goal + success criteria + constraints. Put the detailed plan and task breakdown in `prd.md`.
|
|
64
66
|
|
|
65
67
|
```markdown
|
|
66
68
|
# [Title]
|
|
@@ -84,9 +86,16 @@ Write `.beads/artifacts/<bead-id>/spec.md`:
|
|
|
84
86
|
**Must:** [required]
|
|
85
87
|
**Never:** [forbidden]
|
|
86
88
|
|
|
89
|
+
## PRD (Optional)
|
|
90
|
+
|
|
91
|
+
If this task has a PRD, keep details there:
|
|
92
|
+
|
|
93
|
+
- `.beads/artifacts/<bead-id>/prd.md`
|
|
94
|
+
- `.beads/artifacts/<bead-id>/prd.json` (generated)
|
|
95
|
+
|
|
87
96
|
## Notes
|
|
88
97
|
|
|
89
|
-
[context
|
|
98
|
+
[only brief context here; details belong in prd.md]
|
|
90
99
|
```
|
|
91
100
|
|
|
92
101
|
## If Epic: Create Subtasks
|
|
@@ -104,6 +113,30 @@ Visualize:
|
|
|
104
113
|
|
|
105
114
|
!`bd dep tree bd-[epic]`
|
|
106
115
|
|
|
116
|
+
## Optional: Create a PRD (Recommended for features)
|
|
117
|
+
|
|
118
|
+
If the work is more than a small one-off change, create a PRD alongside the spec.
|
|
119
|
+
|
|
120
|
+
- Template: `.opencode/memory/_templates/prd.md`
|
|
121
|
+
- Output: `.beads/artifacts/<bead-id>/prd.md`
|
|
122
|
+
|
|
123
|
+
```typescript
|
|
124
|
+
skill({ name: "prd" });
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Write the PRD so it includes a `## Tasks` section (each `### ... [category]` with `**Verification:**` bullets).
|
|
128
|
+
|
|
129
|
+
After PRD is written, convert it to executable tasks:
|
|
130
|
+
|
|
131
|
+
```typescript
|
|
132
|
+
skill({ name: "prd-task" });
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
This generates:
|
|
136
|
+
|
|
137
|
+
- `.beads/artifacts/<bead-id>/prd.json`
|
|
138
|
+
- `.beads/artifacts/<bead-id>/progress.txt`
|
|
139
|
+
|
|
107
140
|
## Sync
|
|
108
141
|
|
|
109
142
|
```bash
|
|
@@ -119,7 +152,9 @@ Type: [task/bug/feature/epic]
|
|
|
119
152
|
Priority: [0-4]
|
|
120
153
|
Spec: .beads/artifacts/bd-[id]/spec.md
|
|
121
154
|
|
|
122
|
-
Next:
|
|
155
|
+
Next:
|
|
156
|
+
- `/start bd-[id]` (recommended)
|
|
157
|
+
- or `/implement bd-[id]` (direct implementation)
|
|
123
158
|
```
|
|
124
159
|
|
|
125
160
|
If epic with subtasks:
|
|
@@ -474,7 +474,7 @@ Save outputs to:
|
|
|
474
474
|
|
|
475
475
|
| Need | Skill |
|
|
476
476
|
| ---------------------- | --------------------- |
|
|
477
|
-
| Aesthetic improvements | `frontend-
|
|
477
|
+
| Aesthetic improvements | `frontend-design` |
|
|
478
478
|
| Implement from mockup | `mockup-to-code` |
|
|
479
479
|
| Accessibility audit | `accessibility-audit` |
|
|
480
480
|
| Visual analysis | `visual-analysis` |
|
|
@@ -76,6 +76,14 @@ Read the spec and check each criterion:
|
|
|
76
76
|
|
|
77
77
|
For each success criterion listed, run its verification. All must pass. If something's missing, go back and implement it.
|
|
78
78
|
|
|
79
|
+
## If PRD Tasks Exist
|
|
80
|
+
|
|
81
|
+
If `.beads/artifacts/$ARGUMENTS/prd.json` exists:
|
|
82
|
+
|
|
83
|
+
- Ensure every task has `passes: true`
|
|
84
|
+
- If tasks remain incomplete, do NOT close the bead yet
|
|
85
|
+
- Continue with: `/complete-next-task $ARGUMENTS`
|
|
86
|
+
|
|
79
87
|
## Review Changes (Ask Before Commit)
|
|
80
88
|
|
|
81
89
|
Show what would be committed:
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create distinctive, production-grade frontend interfaces
|
|
3
|
+
argument-hint: "[component/page description]"
|
|
4
|
+
agent: build
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Frontend Design: $ARGUMENTS
|
|
8
|
+
|
|
9
|
+
Create UI components, pages, or applications with React, Tailwind CSS v4, shadcn/ui, and Motion.
|
|
10
|
+
|
|
11
|
+
## Load Skill
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
skill({ name: "frontend-design" });
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Then follow the skill instructions to create the interface.
|
|
18
|
+
|
|
19
|
+
<user-request>
|
|
20
|
+
$ARGUMENTS
|
|
21
|
+
</user-request>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate hierarchical AGENTS.md knowledge base
|
|
3
|
+
argument-hint: "[optional focus or notes]"
|
|
4
|
+
agent: plan
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Index Knowledge: $ARGUMENTS
|
|
8
|
+
|
|
9
|
+
Generate or refresh hierarchical `AGENTS.md` files for this codebase.
|
|
10
|
+
|
|
11
|
+
## Load Skill
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
skill({ name: "index-knowledge" });
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Then follow the skill workflow to:
|
|
18
|
+
|
|
19
|
+
- Analyze the repo structure
|
|
20
|
+
- Identify subsystem boundaries
|
|
21
|
+
- Generate/refresh `AGENTS.md` files (root + nested where appropriate)
|
|
22
|
+
|
|
23
|
+
<user-request>
|
|
24
|
+
$ARGUMENTS
|
|
25
|
+
</user-request>
|
|
@@ -140,6 +140,12 @@ Detected subsystems that may benefit from nested AGENTS.md:
|
|
|
140
140
|
Create nested AGENTS.md files? (y/n)
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
+
### Optional Follow-Up: Index Knowledge
|
|
144
|
+
|
|
145
|
+
If the repo is large or keeps changing (monorepos especially), generate/refresh hierarchical `AGENTS.md` using:
|
|
146
|
+
|
|
147
|
+
- `/index-knowledge`
|
|
148
|
+
|
|
143
149
|
## Phase 5: Populate Memory Files
|
|
144
150
|
|
|
145
151
|
### .opencode/memory/user.md
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Clone a repo and enhance with AGENTS.md knowledge base
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Clone a repository using opensrc and generate hierarchical AGENTS.md documentation.
|
|
6
|
+
|
|
7
|
+
## Workflow
|
|
8
|
+
|
|
9
|
+
### Step 1: Load opensrc skill
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
skill({ name: 'opensrc' })
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Step 2: Clone the repository
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx opensrc <repo>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Where `<repo>` is extracted from the user request (supports `owner/repo`, `github:owner/repo`, full URL, etc.)
|
|
22
|
+
|
|
23
|
+
### Step 3: Navigate to cloned repo
|
|
24
|
+
|
|
25
|
+
After clone completes, cd into the repo:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
cd opensrc/repos/github.com/<owner>/<repo>/
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Parse owner/repo from the input or from `opensrc/sources.json` after clone.
|
|
32
|
+
|
|
33
|
+
### Step 4: Load index-knowledge skill
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
skill({ name: 'index-knowledge' })
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Execute in **update mode** (default) - modify existing AGENTS.md + create new where warranted.
|
|
40
|
+
|
|
41
|
+
### Step 5: Report completion
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
=== opensrc Complete ===
|
|
45
|
+
|
|
46
|
+
Repository: <owner>/<repo>
|
|
47
|
+
Location: opensrc/repos/github.com/<owner>/<repo>/
|
|
48
|
+
|
|
49
|
+
AGENTS.md files generated:
|
|
50
|
+
✓ ./AGENTS.md (root)
|
|
51
|
+
✓ ./src/... (if applicable)
|
|
52
|
+
|
|
53
|
+
The repository is now enhanced with agent context.
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
<user-request>
|
|
57
|
+
$ARGUMENTS
|
|
58
|
+
</user-request>
|
|
@@ -19,13 +19,13 @@ Skills are process instructions that:
|
|
|
19
19
|
|
|
20
20
|
## Prerequisites
|
|
21
21
|
|
|
22
|
-
Load the skill-
|
|
22
|
+
Load the skill-creator skill first:
|
|
23
23
|
|
|
24
24
|
```typescript
|
|
25
|
-
skill({ name: "
|
|
25
|
+
skill({ name: "skill-creator" });
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
This provides the
|
|
28
|
+
This provides the framework for skill creation.
|
|
29
29
|
|
|
30
30
|
## Phase 1: Define the Problem
|
|
31
31
|
|
|
@@ -10,10 +10,10 @@ Improve an existing skill to be more effective, concise, and resistant to agent
|
|
|
10
10
|
|
|
11
11
|
## Prerequisites
|
|
12
12
|
|
|
13
|
-
Load the skill-
|
|
13
|
+
Load the skill-creator skill:
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
skill({ name: "
|
|
16
|
+
skill({ name: "skill-creator" });
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Phase 1: Locate and Load Current Skill
|
|
@@ -206,6 +206,9 @@ Task({
|
|
|
206
206
|
Look for:
|
|
207
207
|
|
|
208
208
|
- `spec.md` - Requirements and constraints
|
|
209
|
+
- `prd.md` - PRD (optional, recommended for features)
|
|
210
|
+
- `prd.json` - PRD tasks (generated from prd.md)
|
|
211
|
+
- `progress.txt` - PRD execution progress (append-only)
|
|
209
212
|
- `research.md` - Previous research
|
|
210
213
|
- `plan.md` - Implementation plan
|
|
211
214
|
- `handoffs/` - Previous session handoffs
|
|
@@ -250,6 +253,11 @@ memory -
|
|
|
250
253
|
|
|
251
254
|
If memory search fails (Ollama not running), continue without it.
|
|
252
255
|
|
|
256
|
+
## PRD Tasks (If Present)
|
|
257
|
+
|
|
258
|
+
- If `.beads/artifacts/$ARGUMENTS/prd.json` exists: next is `/complete-next-task $ARGUMENTS`.
|
|
259
|
+
- If `.beads/artifacts/$ARGUMENTS/prd.md` exists but `prd.json` does not: generate tasks with `prd-task` (see `/create` for the full PRD workflow).
|
|
260
|
+
|
|
253
261
|
## Determine Next Step
|
|
254
262
|
|
|
255
263
|
Based on task type and what exists:
|
|
@@ -264,12 +272,13 @@ Based on task type and what exists:
|
|
|
264
272
|
|
|
265
273
|
### For Tasks/Subtasks (leaf work)
|
|
266
274
|
|
|
267
|
-
| Artifacts Found | Next Command
|
|
268
|
-
| --------------------- |
|
|
269
|
-
| Nothing | `/research $ARGUMENTS`
|
|
270
|
-
| Only spec.md | `/plan $ARGUMENTS`
|
|
271
|
-
| spec.md + research.md | `/plan $ARGUMENTS`
|
|
272
|
-
| plan.md exists | `/implement $ARGUMENTS`
|
|
275
|
+
| Artifacts Found | Next Command |
|
|
276
|
+
| --------------------- | -------------------------------- |
|
|
277
|
+
| Nothing | `/research $ARGUMENTS` |
|
|
278
|
+
| Only spec.md | `/plan $ARGUMENTS` |
|
|
279
|
+
| spec.md + research.md | `/plan $ARGUMENTS` |
|
|
280
|
+
| plan.md exists | `/implement $ARGUMENTS` |
|
|
281
|
+
| prd.json exists | `/complete-next-task $ARGUMENTS` |
|
|
273
282
|
|
|
274
283
|
## Output
|
|
275
284
|
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Beads PRD Template
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**Bead:** bd-[id]
|
|
4
4
|
**Created:** [date]
|
|
5
|
-
**Status:**
|
|
5
|
+
**Status:** Draft
|
|
6
6
|
|
|
7
7
|
## Goal
|
|
8
8
|
|
|
9
|
-
What exactly are we building and why does it exist
|
|
9
|
+
What exactly are we building and why does it exist?
|
|
10
10
|
|
|
11
11
|
## Scope
|
|
12
12
|
|
|
13
|
-
### In-Scope
|
|
13
|
+
### In-Scope
|
|
14
14
|
|
|
15
15
|
- [List what's allowed]
|
|
16
16
|
|
|
17
|
-
### Out-of-Scope
|
|
17
|
+
### Out-of-Scope
|
|
18
18
|
|
|
19
19
|
- [List what's explicitly off-limits]
|
|
20
20
|
|
|
21
|
-
## User Flow
|
|
22
|
-
|
|
23
|
-
The literal step-by-step of what the user sees/does:
|
|
21
|
+
## User Flow (if user-facing)
|
|
24
22
|
|
|
25
23
|
1. [Step 1]
|
|
26
24
|
2. [Step 2]
|
|
@@ -28,16 +26,54 @@ The literal step-by-step of what the user sees/does:
|
|
|
28
26
|
|
|
29
27
|
## Success Criteria
|
|
30
28
|
|
|
31
|
-
The exact conditions under which I consider this done:
|
|
32
|
-
|
|
33
29
|
- [ ] [Specific, measurable criteria 1]
|
|
30
|
+
- Verify: `[command or manual check]`
|
|
34
31
|
- [ ] [Specific, measurable criteria 2]
|
|
35
|
-
-
|
|
32
|
+
- Verify: `[command or manual check]`
|
|
33
|
+
|
|
34
|
+
## Technical Context
|
|
35
|
+
|
|
36
|
+
### Existing Patterns
|
|
37
|
+
|
|
38
|
+
- Pattern 1: `src/path/to/example.ts` - Why relevant
|
|
36
39
|
|
|
37
|
-
|
|
40
|
+
### Key Files
|
|
38
41
|
|
|
39
|
-
-
|
|
42
|
+
- `src/relevant/file.ts` - Why relevant
|
|
43
|
+
|
|
44
|
+
## Risks
|
|
45
|
+
|
|
46
|
+
- [Risk 1 + mitigation]
|
|
40
47
|
|
|
41
48
|
## Notes
|
|
42
49
|
|
|
43
50
|
[Additional context or constraints]
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Tasks
|
|
55
|
+
|
|
56
|
+
Write tasks in a machine-convertible format for `prd-task`.
|
|
57
|
+
|
|
58
|
+
Rules:
|
|
59
|
+
|
|
60
|
+
- Each task is a `### <Title> [category]` heading.
|
|
61
|
+
- Provide one sentence describing the end state.
|
|
62
|
+
- Include `**Verification:**` with bullet steps proving it works.
|
|
63
|
+
|
|
64
|
+
### <Task Title> [category]
|
|
65
|
+
|
|
66
|
+
<One sentence describing the end state>
|
|
67
|
+
|
|
68
|
+
**Verification:**
|
|
69
|
+
|
|
70
|
+
- [Command or check]
|
|
71
|
+
- [Command or check]
|
|
72
|
+
|
|
73
|
+
### <Task Title> [category]
|
|
74
|
+
|
|
75
|
+
<One sentence describing the end state>
|
|
76
|
+
|
|
77
|
+
**Verification:**
|
|
78
|
+
|
|
79
|
+
- [Command or check]
|