opencodekit 0.19.5 → 0.20.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/dist/index.js +1 -1
- package/dist/template/.opencode/command/compound.md +4 -3
- package/dist/template/.opencode/command/create.md +6 -11
- package/dist/template/.opencode/command/design.md +3 -3
- package/dist/template/.opencode/command/handoff.md +4 -2
- package/dist/template/.opencode/command/init-context.md +79 -55
- package/dist/template/.opencode/command/init-user.md +11 -6
- package/dist/template/.opencode/command/init.md +1 -3
- package/dist/template/.opencode/command/lfg.md +4 -2
- package/dist/template/.opencode/command/plan.md +9 -9
- package/dist/template/.opencode/command/pr.md +5 -1
- package/dist/template/.opencode/command/resume.md +4 -4
- package/dist/template/.opencode/command/review-codebase.md +4 -4
- package/dist/template/.opencode/command/ship.md +5 -7
- package/dist/template/.opencode/command/start.md +8 -10
- package/dist/template/.opencode/command/status.md +1 -1
- package/dist/template/.opencode/command/ui-slop-check.md +6 -6
- package/dist/template/.opencode/command/verify.md +4 -4
- package/dist/template/.opencode/dcp-prompts/defaults/compress-message.md +1 -0
- package/dist/template/.opencode/dcp.jsonc +1 -1
- 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 +3 -5
- package/dist/template/.opencode/skill/chrome-devtools/SKILL.md +1 -1
- package/dist/template/.opencode/skill/cloudflare/SKILL.md +1 -1
- package/dist/template/.opencode/skill/context-initialization/SKILL.md +16 -17
- package/dist/template/.opencode/skill/context-management/SKILL.md +306 -79
- package/dist/template/.opencode/skill/core-data-expert/SKILL.md +1 -1
- package/dist/template/.opencode/skill/design-system-audit/SKILL.md +1 -1
- package/dist/template/.opencode/skill/design-taste-frontend/SKILL.md +1 -1
- package/dist/template/.opencode/skill/figma/SKILL.md +1 -1
- package/dist/template/.opencode/skill/figma-go/SKILL.md +1 -1
- package/dist/template/.opencode/skill/frontend-design/SKILL.md +1 -1
- package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +1 -1
- package/dist/template/.opencode/skill/high-end-visual-design/SKILL.md +1 -1
- package/dist/template/.opencode/skill/index-knowledge/SKILL.md +1 -1
- package/dist/template/.opencode/skill/industrial-brutalist-ui/SKILL.md +1 -1
- package/dist/template/.opencode/skill/jira/SKILL.md +1 -1
- package/dist/template/.opencode/skill/minimalist-ui/SKILL.md +1 -1
- package/dist/template/.opencode/skill/mqdh/SKILL.md +1 -1
- package/dist/template/.opencode/skill/opensrc/SKILL.md +184 -27
- package/dist/template/.opencode/skill/pdf-extract/SKILL.md +1 -1
- package/dist/template/.opencode/skill/pencil/SKILL.md +1 -1
- package/dist/template/.opencode/skill/playwright/SKILL.md +18 -6
- package/dist/template/.opencode/skill/{agent-browser/SKILL.md → playwright/references/agent-browser-cli.md} +0 -8
- package/dist/template/.opencode/skill/playwriter/SKILL.md +1 -1
- package/dist/template/.opencode/skill/polar/SKILL.md +1 -1
- package/dist/template/.opencode/skill/prd/SKILL.md +1 -1
- package/dist/template/.opencode/skill/react-best-practices/SKILL.md +1 -1
- package/dist/template/.opencode/skill/redesign-existing-projects/SKILL.md +1 -1
- package/dist/template/.opencode/skill/resend/SKILL.md +1 -1
- package/dist/template/.opencode/skill/stitch/SKILL.md +1 -1
- package/dist/template/.opencode/skill/stitch-design-taste/SKILL.md +1 -1
- package/dist/template/.opencode/skill/supabase/SKILL.md +1 -1
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/SKILL.md +1 -1
- package/dist/template/.opencode/skill/tilth-cli/SKILL.md +47 -20
- package/dist/template/.opencode/skill/v0/SKILL.md +1 -1
- package/dist/template/.opencode/skill/v1-run/SKILL.md +1 -1
- package/dist/template/.opencode/skill/webclaw/SKILL.md +1 -1
- package/dist/template/.opencode/skill/writing-skills/SKILL.md +43 -6
- package/dist/template/.opencode/skill/{testing-skills-with-subagents/SKILL.md → writing-skills/references/testing-methodology.md} +0 -8
- package/package.json +1 -1
- package/dist/template/.opencode/skill/compaction/SKILL.md +0 -384
- package/dist/template/.opencode/skill/session-management/SKILL.md +0 -9
- package/dist/template/.opencode/skill/source-code-research/SKILL.md +0 -293
- package/dist/template/.opencode/skill/ui-ux-research/SKILL.md +0 -9
- package/dist/template/.opencode/skill/using-skills/SKILL.md +0 -117
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/analysis-tips.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/anti-patterns.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/common-patterns.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/example-workflow.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/further-reading.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/source-structure.md +0 -0
|
@@ -56,9 +56,10 @@ br list --status=in_progress
|
|
|
56
56
|
|
|
57
57
|
```bash
|
|
58
58
|
br show $ARGUMENTS
|
|
59
|
-
ls .beads/artifacts/$ARGUMENTS/
|
|
60
59
|
```
|
|
61
60
|
|
|
61
|
+
Read `.beads/artifacts/$ARGUMENTS/` to check what artifacts exist.
|
|
62
|
+
|
|
62
63
|
Verify `prd.md` exists and has real content (not just placeholders). If missing or incomplete, tell user to run `/create` first.
|
|
63
64
|
|
|
64
65
|
## Phase 3: Claim
|
|
@@ -107,18 +108,15 @@ Map bead type to branch prefix:
|
|
|
107
108
|
| task | task |
|
|
108
109
|
| epic | epic |
|
|
109
110
|
|
|
111
|
+
Create the branch:
|
|
112
|
+
|
|
110
113
|
```bash
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
bug) echo "fix" ;;
|
|
114
|
-
task) echo "task" ;;
|
|
115
|
-
epic) echo "epic" ;;
|
|
116
|
-
*) echo "task" ;;
|
|
117
|
-
esac)
|
|
118
|
-
TITLE_SLUG=$(echo "$TITLE" | tr '[:upper:]' '[:lower:]' | tr ' ' '-')
|
|
119
|
-
git checkout -b $PREFIX/$ARGUMENTS-$TITLE_SLUG
|
|
114
|
+
# Example: feat/br-42-add-auth
|
|
115
|
+
git checkout -b $PREFIX/$BEAD_ID-$TITLE_SLUG
|
|
120
116
|
```
|
|
121
117
|
|
|
118
|
+
Slugify the title (lowercase, spaces to hyphens) and use the bead type to determine the prefix.
|
|
119
|
+
|
|
122
120
|
**If worktree selected:**
|
|
123
121
|
|
|
124
122
|
```typescript
|
|
@@ -19,12 +19,12 @@ skill({ name: "accessibility-audit" }); // Keyboard/focus/contrast checks
|
|
|
19
19
|
|
|
20
20
|
## Parse Arguments
|
|
21
21
|
|
|
22
|
-
| Argument | Default | Description
|
|
23
|
-
| --------------- | ------- |
|
|
24
|
-
| `[path
|
|
25
|
-
| `--staged` | false | Audit staged changes only (`git diff --cached`)
|
|
26
|
-
| `--since=<ref>` | `HEAD` | Compare against ref (`main`, `HEAD~1`, commit SHA)
|
|
27
|
-
| `--full-report` | false | Include all categories even when no issues found
|
|
22
|
+
| Argument | Default | Description |
|
|
23
|
+
| --------------- | ------- | ------------------------------------------------------------- |
|
|
24
|
+
| `[path\|auto]` | `auto` | Specific file/dir to audit, or auto-detect changed UI files |
|
|
25
|
+
| `--staged` | false | Audit staged changes only (`git diff --cached`) |
|
|
26
|
+
| `--since=<ref>` | `HEAD` | Compare against ref (`main`, `HEAD~1`, commit SHA) |
|
|
27
|
+
| `--full-report` | false | Include all categories even when no issues found |
|
|
28
28
|
|
|
29
29
|
## Phase 1: Resolve Target Files
|
|
30
30
|
|
|
@@ -45,11 +45,10 @@ skill({ name: "verification-before-completion" });
|
|
|
45
45
|
Before running any gates, check if a recent verification is still valid:
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
# Compute current state fingerprint (commit hash +
|
|
49
|
-
CURRENT_STAMP=$(printf '%s\n%s
|
|
48
|
+
# Compute current state fingerprint (commit hash + diff)
|
|
49
|
+
CURRENT_STAMP=$(printf '%s\n%s' \
|
|
50
50
|
"$(git rev-parse HEAD)" \
|
|
51
51
|
"$(git diff HEAD -- '*.ts' '*.tsx' '*.js' '*.jsx')" \
|
|
52
|
-
"$(git ls-files --others --exclude-standard -- '*.ts' '*.tsx' '*.js' '*.jsx' | xargs cat 2>/dev/null)" \
|
|
53
52
|
| shasum -a 256 | cut -d' ' -f1)
|
|
54
53
|
LAST_STAMP=$(tail -1 .beads/verify.log 2>/dev/null | awk '{print $1}')
|
|
55
54
|
```
|
|
@@ -70,9 +69,10 @@ Verification: cached PASS (no changes since <timestamp from verify.log>)
|
|
|
70
69
|
|
|
71
70
|
```bash
|
|
72
71
|
br show $ARGUMENTS
|
|
73
|
-
ls .beads/artifacts/$ARGUMENTS/
|
|
74
72
|
```
|
|
75
73
|
|
|
74
|
+
Read `.beads/artifacts/$ARGUMENTS/` to check what artifacts exist.
|
|
75
|
+
|
|
76
76
|
Read the PRD and any other artifacts (plan.md, research.md, design.md).
|
|
77
77
|
|
|
78
78
|
**Verify guards:**
|
|
@@ -39,3 +39,4 @@ During general cleanup, compress all medium and high-priority messages that are
|
|
|
39
39
|
Optimize for reducing context footprint, not for grouping messages by topic.
|
|
40
40
|
Do not compress away still-active instructions, unresolved questions, or constraints that are likely to matter soon.
|
|
41
41
|
Prioritize the earliest messages in the context as they will be the least relevant to the active task.
|
|
42
|
+
General cleanup should be done periodically between other normal compression tool passes, not as the primary form of compression.
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"compress": {
|
|
37
37
|
// "range" (stable) compresses spans into block summaries
|
|
38
38
|
// "message" (experimental) compresses individual raw messages
|
|
39
|
-
"mode": "
|
|
39
|
+
"mode": "range",
|
|
40
40
|
// "allow" (no prompt) | "ask" (prompt) | "deny" (tool not registered)
|
|
41
41
|
"permission": "allow",
|
|
42
42
|
"showCompression": false,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -82,17 +82,15 @@
|
|
|
82
82
|
".opencode/memory/project/user.md",
|
|
83
83
|
".opencode/memory/project/tech-stack.md",
|
|
84
84
|
".opencode/memory/project/project.md",
|
|
85
|
-
".opencode/memory/project/roadmap.md",
|
|
86
|
-
".opencode/memory/project/state.md",
|
|
87
85
|
".opencode/context/git-context.md"
|
|
88
86
|
],
|
|
89
87
|
"keybinds": {
|
|
90
|
-
"leader": "
|
|
91
|
-
"session_parent": "
|
|
88
|
+
"leader": "ctrl+x",
|
|
89
|
+
"session_parent": "up"
|
|
92
90
|
},
|
|
93
91
|
"mcp": {
|
|
94
92
|
"tilth": {
|
|
95
|
-
"command": ["tilth", "--mcp", "--edit"],
|
|
93
|
+
"command": ["npx", "-y", "tilth", "--mcp", "--edit"],
|
|
96
94
|
"enabled": true,
|
|
97
95
|
"environment": {
|
|
98
96
|
"TILTH_THREADS": "8"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: chrome-devtools
|
|
3
|
-
description:
|
|
3
|
+
description: Use when debugging web apps in Chrome — performance profiling, network inspection, DOM debugging, or console automation. MUST load before any Chrome DevTools-based debugging session.
|
|
4
4
|
version: 1.0.0
|
|
5
5
|
tags: [automation, debugging]
|
|
6
6
|
dependencies: []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cloudflare
|
|
3
|
-
description:
|
|
3
|
+
description: Use when deploying to or configuring ANY Cloudflare service — Workers, Pages, KV, D1, R2, AI, Tunnel, WAF. MUST load before writing Cloudflare Workers code, wrangler configs, or infrastructure-as-code for Cloudflare.
|
|
4
4
|
references:
|
|
5
5
|
- workers
|
|
6
6
|
- pages
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: context-initialization
|
|
3
|
-
description: Initialize
|
|
4
|
-
version:
|
|
3
|
+
description: Initialize project context files from templates. Creates on-demand planning files (roadmap.md, state.md) and updates auto-injected project.md.
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
tags: [context, workflow]
|
|
6
6
|
dependencies: []
|
|
7
7
|
---
|
|
@@ -11,20 +11,19 @@ dependencies: []
|
|
|
11
11
|
## When to Use
|
|
12
12
|
|
|
13
13
|
- When initializing project context files (project.md, roadmap.md, state.md) from templates.
|
|
14
|
+
- project.md is auto-injected into every prompt; roadmap.md and state.md are on-demand.
|
|
14
15
|
|
|
15
16
|
## When NOT to Use
|
|
16
17
|
|
|
17
18
|
- When context files already exist and only need minor manual edits.
|
|
18
19
|
|
|
19
|
-
|
|
20
20
|
## Process
|
|
21
21
|
|
|
22
22
|
### 1. Verify Templates
|
|
23
23
|
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
test -f .opencode/memory/_templates/state.md
|
|
24
|
+
```typescript
|
|
25
|
+
tilth_tilth_files({ pattern: "*.md", scope: ".opencode/memory/_templates" });
|
|
26
|
+
// Required templates: project.md, roadmap.md, state.md
|
|
28
27
|
```
|
|
29
28
|
|
|
30
29
|
Stop if missing.
|
|
@@ -43,28 +42,28 @@ Skip if `--skip-questions` flag set.
|
|
|
43
42
|
|
|
44
43
|
### 3. Create Files
|
|
45
44
|
|
|
46
|
-
**project.md**
|
|
45
|
+
**project.md** (auto-injected — keep concise)
|
|
47
46
|
|
|
48
|
-
- Read template
|
|
47
|
+
- Read template via `Read({ filePath: ".opencode/memory/_templates/project.md" })`
|
|
49
48
|
- Fill with answers
|
|
50
|
-
- Write
|
|
49
|
+
- Write via `memory-update({ file: "project/project", content: ..., mode: "replace" })`
|
|
51
50
|
|
|
52
|
-
**roadmap.md**
|
|
51
|
+
**roadmap.md** (on-demand — access via `memory-read({ file: "project/roadmap" })`)
|
|
53
52
|
|
|
54
53
|
- Read template
|
|
55
54
|
- Parse phases into table
|
|
56
|
-
- Write
|
|
55
|
+
- Write via `memory-update({ file: "project/roadmap", content: ..., mode: "replace" })`
|
|
57
56
|
|
|
58
|
-
**state.md**
|
|
57
|
+
**state.md** (on-demand — access via `memory-read({ file: "project/state" })`)
|
|
59
58
|
|
|
60
59
|
- Read template
|
|
61
60
|
- Set initial state
|
|
62
|
-
- Write
|
|
61
|
+
- Write via `memory-update({ file: "project/state", content: ..., mode: "replace" })`
|
|
63
62
|
|
|
64
63
|
### 4. Verify
|
|
65
64
|
|
|
66
|
-
```
|
|
67
|
-
|
|
65
|
+
```typescript
|
|
66
|
+
tilth_tilth_files({ pattern: "*.md", scope: ".opencode/memory/project" });
|
|
68
67
|
```
|
|
69
68
|
|
|
70
|
-
Report created files.
|
|
69
|
+
Report created files with their injection status (auto-injected vs on-demand).
|