opencodekit 0.2.3 → 0.2.5
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/README.md +2 -1
- package/dist/index.js +1 -1
- package/dist/template/.opencode/AGENTS.md +43 -3
- package/dist/template/.opencode/command/create.md +21 -2
- package/dist/template/.opencode/command/issue.md +1 -1
- package/dist/template/.opencode/command/plan.md +85 -4
- package/dist/template/.opencode/memory/_templates/observation.md +39 -0
- package/dist/template/.opencode/package.json +1 -1
- package/dist/template/.opencode/plugin/superpowers.ts +227 -288
- package/dist/template/.opencode/tool/memory-search.ts +140 -0
- package/dist/template/.opencode/tool/observation.ts +155 -0
- package/package.json +1 -1
- package/dist/template/.opencode/memory/README.md +0 -128
- package/dist/template/.opencode/memory/_templates/handoff.md +0 -33
- package/dist/template/.opencode/memory/_templates/research.md +0 -29
- package/dist/template/.opencode/memory/_templates/task-design.md +0 -59
- package/dist/template/.opencode/memory/_templates/task-review.md +0 -73
- package/dist/template/.opencode/memory/_templates/task-spec.md +0 -71
- package/dist/template/.opencode/memory/design-guidelines.md +0 -281
- /package/dist/template/.opencode/memory/_templates/{task-prd.md → prd.md} +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/brainstorming/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/condition-based-waiting/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/condition-based-waiting/example.ts +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/defense-in-depth/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/dispatching-parallel-agents/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/executing-plans/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/finishing-a-development-branch/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/frontend-aesthetics/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/gemini-large-context/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/receiving-code-review/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/requesting-code-review/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/requesting-code-review/code-reviewer.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/root-cause-tracing/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/root-cause-tracing/find-polluter.sh +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/sharing-skills/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/subagent-driven-development/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/systematic-debugging/CREATION-LOG.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/systematic-debugging/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/systematic-debugging/test-academic.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/systematic-debugging/test-pressure-1.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/systematic-debugging/test-pressure-2.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/systematic-debugging/test-pressure-3.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/test-driven-development/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/testing-anti-patterns/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/testing-skills-with-subagents/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/testing-skills-with-subagents/examples/CLAUDE_MD_TESTING.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/ui-ux-research/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/using-git-worktrees/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/using-superpowers/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/verification-before-completion/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/writing-plans/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/writing-skills/SKILL.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/writing-skills/anthropic-best-practices.md +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/writing-skills/graphviz-conventions.dot +0 -0
- /package/dist/template/.opencode/{superpowers/skills → skills}/writing-skills/persuasion-principles.md +0 -0
package/README.md
CHANGED
|
@@ -247,7 +247,8 @@ You've successfully set up OpenCodeKit when:
|
|
|
247
247
|
- **Custom Commands**: `.opencode/command/` - All 45+ workflow commands
|
|
248
248
|
- **Skills System**: `.opencode/skills/` - 24 skills (8 core, 7 stack, 9 specialized)
|
|
249
249
|
- **Memory System**: `.opencode/memory/` - Persistent cross-session knowledge
|
|
250
|
-
- **Templates**: `.opencode/memory/_templates/` - PRD and
|
|
250
|
+
- **Templates**: `.opencode/memory/_templates/` - PRD, observation, and session-summary templates
|
|
251
|
+
- **Memory Tools**: `.opencode/tool/` - memory-read, memory-update, memory-search, observation
|
|
251
252
|
|
|
252
253
|
---
|
|
253
254
|
|
package/dist/index.js
CHANGED
|
@@ -750,7 +750,7 @@ var cac = (name = "") => new CAC(name);
|
|
|
750
750
|
// package.json
|
|
751
751
|
var package_default = {
|
|
752
752
|
name: "opencodekit",
|
|
753
|
-
version: "0.2.
|
|
753
|
+
version: "0.2.5",
|
|
754
754
|
description: "CLI tool for bootstrapping and managing OpenCodeKit projects",
|
|
755
755
|
type: "module",
|
|
756
756
|
repository: {
|
|
@@ -100,13 +100,53 @@
|
|
|
100
100
|
|
|
101
101
|
```
|
|
102
102
|
.opencode/memory/
|
|
103
|
-
_templates/ # Task templates
|
|
103
|
+
_templates/ # Task templates (prd, observation, session-summary)
|
|
104
104
|
handoffs/ # Phase transitions
|
|
105
105
|
research/ # Research findings
|
|
106
|
+
observations/ # Structured observations
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Memory Tools
|
|
110
|
+
|
|
111
|
+
| Tool | Use For |
|
|
112
|
+
| --------------- | -------------------------------- |
|
|
113
|
+
| `memory-read` | Load previous context, templates |
|
|
114
|
+
| `memory-update` | Save learnings, handoffs |
|
|
115
|
+
| `memory-search` | Search across all memory files |
|
|
116
|
+
| `observation` | Create structured observations |
|
|
117
|
+
|
|
118
|
+
### Observations
|
|
119
|
+
|
|
120
|
+
Record important findings with structured metadata:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
observation(
|
|
124
|
+
type: "decision", # decision, bugfix, feature, pattern, discovery, learning, warning
|
|
125
|
+
title: "Use JWT auth",
|
|
126
|
+
content: "Decided to use JWT because...",
|
|
127
|
+
concepts: "auth, security",
|
|
128
|
+
files: "src/auth.ts",
|
|
129
|
+
bead_id: "bd-abc123"
|
|
130
|
+
)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**When to create observations:**
|
|
134
|
+
|
|
135
|
+
- Major architectural decisions
|
|
136
|
+
- Bug root causes discovered
|
|
137
|
+
- Patterns worth reusing
|
|
138
|
+
- Gotchas and warnings for future
|
|
139
|
+
|
|
140
|
+
### Memory Search
|
|
141
|
+
|
|
142
|
+
Find past decisions, research, or handoffs:
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
memory-search(query: "authentication")
|
|
146
|
+
memory-search(query: "bugfix", type: "observations")
|
|
147
|
+
memory-search(query: "session", type: "handoffs")
|
|
106
148
|
```
|
|
107
149
|
|
|
108
|
-
- `memory-read` - Load previous context
|
|
109
|
-
- `memory-update` - Save learnings
|
|
110
150
|
- Task tracking uses Beads (`bd` CLI)
|
|
111
151
|
|
|
112
152
|
## Session Management
|
|
@@ -56,7 +56,7 @@ bd create "[title]" -t [type] -p [priority] -d "[description]" --json
|
|
|
56
56
|
mkdir -p .beads/artifacts/<bead-id>
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
Use the PRD template from `.opencode/memory/_templates/
|
|
59
|
+
Use the PRD template from `.opencode/memory/_templates/prd.md` as the base structure.
|
|
60
60
|
|
|
61
61
|
Write `.beads/artifacts/<bead-id>/spec.md`:
|
|
62
62
|
|
|
@@ -116,7 +116,26 @@ For **Deep** mode, add:
|
|
|
116
116
|
[To be filled during /research phase]
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
-
## Phase 5:
|
|
119
|
+
## Phase 5: Review Spec
|
|
120
|
+
|
|
121
|
+
Present the spec for approval:
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
Spec Preview:
|
|
125
|
+
━━━━━━━━━━━━━
|
|
126
|
+
|
|
127
|
+
[Show full spec.md content]
|
|
128
|
+
|
|
129
|
+
━━━━━━━━━━━━━
|
|
130
|
+
Approve spec? (yes/modify)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**STOP and wait for human response.**
|
|
134
|
+
|
|
135
|
+
If "modify": Iterate on spec based on feedback until approved.
|
|
136
|
+
If "yes": Proceed to report.
|
|
137
|
+
|
|
138
|
+
## Phase 6: Report
|
|
120
139
|
|
|
121
140
|
```
|
|
122
141
|
Created: <bead-id>
|
|
@@ -35,7 +35,7 @@ bd edit <bead-id> --note "GitHub issue: #$ARGUMENTS"
|
|
|
35
35
|
|
|
36
36
|
## Create Spec from PRD Template
|
|
37
37
|
|
|
38
|
-
Use `.opencode/memory/_templates/
|
|
38
|
+
Use `.opencode/memory/_templates/prd.md` as the base structure.
|
|
39
39
|
|
|
40
40
|
Save to `.beads/artifacts/<bead-id>/spec.md`:
|
|
41
41
|
|
|
@@ -17,9 +17,12 @@ Read artifacts:
|
|
|
17
17
|
```bash
|
|
18
18
|
cat .beads/artifacts/<bead-id>/spec.md
|
|
19
19
|
cat .beads/artifacts/<bead-id>/research.md
|
|
20
|
+
cat .beads/artifacts/<bead-id>/design.md 2>/dev/null
|
|
20
21
|
```
|
|
21
22
|
|
|
22
|
-
If missing: "Run `/
|
|
23
|
+
If spec.md missing: "Run `/create <bead-id>` first."
|
|
24
|
+
If research.md missing: "Run `/research <bead-id>` first."
|
|
25
|
+
If design.md exists: Resume from saved design options.
|
|
23
26
|
|
|
24
27
|
## Phase 2: Generate Design Options
|
|
25
28
|
|
|
@@ -68,7 +71,77 @@ Present 2-3 approaches:
|
|
|
68
71
|
**Recommendation:** Option [A/B] because [reason].
|
|
69
72
|
```
|
|
70
73
|
|
|
71
|
-
## Phase 3:
|
|
74
|
+
## Phase 3: Save Design Document
|
|
75
|
+
|
|
76
|
+
Save design options to `.beads/artifacts/<bead-id>/design.md`:
|
|
77
|
+
|
|
78
|
+
```markdown
|
|
79
|
+
# Design Options: [Title]
|
|
80
|
+
|
|
81
|
+
**Bead:** <bead-id>
|
|
82
|
+
**Date:** <date>
|
|
83
|
+
**Status:** Pending Approval
|
|
84
|
+
|
|
85
|
+
## Problem Statement
|
|
86
|
+
|
|
87
|
+
[What we're solving - from spec.md]
|
|
88
|
+
|
|
89
|
+
## Options Considered
|
|
90
|
+
|
|
91
|
+
### Option A: [Name]
|
|
92
|
+
|
|
93
|
+
**Approach:** [1-2 sentence description]
|
|
94
|
+
|
|
95
|
+
**Changes:**
|
|
96
|
+
|
|
97
|
+
- `src/foo.ts` - [what changes]
|
|
98
|
+
- `src/bar.ts` - [what changes]
|
|
99
|
+
|
|
100
|
+
**Pros:**
|
|
101
|
+
|
|
102
|
+
- [pro 1]
|
|
103
|
+
- [pro 2]
|
|
104
|
+
|
|
105
|
+
**Cons:**
|
|
106
|
+
|
|
107
|
+
- [con 1]
|
|
108
|
+
|
|
109
|
+
**Effort:** [S/M/L]
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
### Option B: [Name]
|
|
114
|
+
|
|
115
|
+
**Approach:** [1-2 sentence description]
|
|
116
|
+
|
|
117
|
+
**Changes:**
|
|
118
|
+
|
|
119
|
+
- `src/baz.ts` - [what changes]
|
|
120
|
+
|
|
121
|
+
**Pros:**
|
|
122
|
+
|
|
123
|
+
- [pro 1]
|
|
124
|
+
|
|
125
|
+
**Cons:**
|
|
126
|
+
|
|
127
|
+
- [con 1]
|
|
128
|
+
- [con 2]
|
|
129
|
+
|
|
130
|
+
**Effort:** [S/M/L]
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Recommendation
|
|
135
|
+
|
|
136
|
+
Option [A/B] because [reason].
|
|
137
|
+
|
|
138
|
+
## Decision
|
|
139
|
+
|
|
140
|
+
**Chosen:** [To be filled after approval]
|
|
141
|
+
**Rationale:** [To be filled after approval]
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Phase 4: Get Approval
|
|
72
145
|
|
|
73
146
|
**STOP and wait for human response.**
|
|
74
147
|
|
|
@@ -78,7 +151,15 @@ Pick an option (A/B/C), modify, or "none" to propose alternatives.
|
|
|
78
151
|
|
|
79
152
|
Do not proceed until user confirms.
|
|
80
153
|
|
|
81
|
-
## Phase
|
|
154
|
+
## Phase 5: Update Design Decision
|
|
155
|
+
|
|
156
|
+
After approval, update `.beads/artifacts/<bead-id>/design.md`:
|
|
157
|
+
|
|
158
|
+
- Change **Status:** to `Approved`
|
|
159
|
+
- Fill in **Chosen:** with selected option
|
|
160
|
+
- Fill in **Rationale:** with user's reasoning
|
|
161
|
+
|
|
162
|
+
## Phase 6: Create Plan
|
|
82
163
|
|
|
83
164
|
After approval, write `.beads/artifacts/<bead-id>/plan.md`:
|
|
84
165
|
|
|
@@ -136,7 +217,7 @@ After approval, write `.beads/artifacts/<bead-id>/plan.md`:
|
|
|
136
217
|
- [Risk 1] - [mitigation]
|
|
137
218
|
```
|
|
138
219
|
|
|
139
|
-
## Phase
|
|
220
|
+
## Phase 7: Update Bead
|
|
140
221
|
|
|
141
222
|
```bash
|
|
142
223
|
bd edit <bead-id> --note "Plan approved: [option name]. [step count] steps."
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Observation Template
|
|
2
|
+
|
|
3
|
+
**Type:** [decision | bugfix | feature | pattern | discovery | learning | warning]
|
|
4
|
+
**Created:** [timestamp]
|
|
5
|
+
**Bead:** [optional bead-id]
|
|
6
|
+
**Concepts:** `tag1`, `tag2`, `tag3`
|
|
7
|
+
**Files:** `path/to/file1.ts`, `path/to/file2.ts`
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Context
|
|
12
|
+
|
|
13
|
+
[What situation prompted this observation? What were you working on?]
|
|
14
|
+
|
|
15
|
+
## Observation
|
|
16
|
+
|
|
17
|
+
[The core insight, decision, or learning. Be specific and actionable.]
|
|
18
|
+
|
|
19
|
+
## Rationale
|
|
20
|
+
|
|
21
|
+
[Why is this important? What alternatives were considered?]
|
|
22
|
+
|
|
23
|
+
## Future Reference
|
|
24
|
+
|
|
25
|
+
[How should this inform future decisions? Any follow-up actions?]
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Type Definitions
|
|
30
|
+
|
|
31
|
+
| Type | Icon | Use For |
|
|
32
|
+
| --------- | ---- | ------------------------------------ |
|
|
33
|
+
| decision | 🎯 | Architectural or design choices made |
|
|
34
|
+
| bugfix | 🐛 | Bug root causes and solutions |
|
|
35
|
+
| feature | ✨ | Feature implementation notes |
|
|
36
|
+
| pattern | 🔄 | Recurring patterns or conventions |
|
|
37
|
+
| discovery | 💡 | Unexpected findings or insights |
|
|
38
|
+
| learning | 📚 | Lessons learned from experience |
|
|
39
|
+
| warning | ⚠️ | Pitfalls to avoid, gotchas |
|