@haposoft/cafekit 0.8.16 → 0.9.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.
Files changed (33) hide show
  1. package/README.md +63 -67
  2. package/bin/install.js +141 -194
  3. package/bin/lib/copy-utils.js +61 -0
  4. package/bin/lib/opencode-install.js +866 -0
  5. package/package.json +4 -1
  6. package/src/claude/CLAUDE.md +2 -2
  7. package/src/claude/migration-manifest.json +1 -0
  8. package/src/claude/rules/skill-domain-routing.md +2 -0
  9. package/src/claude/rules/skill-workflow-routing.md +3 -1
  10. package/src/claude/skills/qs/SKILL.md +177 -0
  11. package/src/claude/skills/qs/templates/qs.md +30 -0
  12. package/src/opencode/AGENTS.md +140 -0
  13. package/src/opencode/plugins/docs-sync.ts +181 -0
  14. package/src/opencode/plugins/inspect-block.ts +164 -0
  15. package/src/opencode/plugins/privacy-block.ts +182 -0
  16. package/src/opencode/plugins/rules.ts +163 -0
  17. package/src/opencode/plugins/session.ts +179 -0
  18. package/src/opencode/plugins/state.ts +253 -0
  19. package/src/opencode/plugins/usage.ts +178 -0
  20. package/src/antigravity/GEMINI.md +0 -162
  21. package/src/antigravity/workflows/code.md +0 -16
  22. package/src/antigravity/workflows/docs-init.md +0 -432
  23. package/src/antigravity/workflows/docs-update.md +0 -245
  24. package/src/antigravity/workflows/impact-analysis-output-example.md +0 -313
  25. package/src/antigravity/workflows/impact-analysis.md +0 -730
  26. package/src/antigravity/workflows/review.md +0 -15
  27. package/src/antigravity/workflows/spec-design.md +0 -220
  28. package/src/antigravity/workflows/spec-init.md +0 -78
  29. package/src/antigravity/workflows/spec-requirements.md +0 -122
  30. package/src/antigravity/workflows/spec-status.md +0 -95
  31. package/src/antigravity/workflows/spec-tasks.md +0 -156
  32. package/src/antigravity/workflows/spec-validate.md +0 -106
  33. package/src/antigravity/workflows/test.md +0 -13
package/README.md CHANGED
@@ -2,25 +2,31 @@
2
2
 
3
3
  > Claude Code-first spec-driven workflow and runtime bundle for AI coding assistants.
4
4
 
5
- [![Version](https://img.shields.io/badge/version-0.8.16-blue.svg)](https://github.com/haposoft/cafekit)
5
+ [![Version](https://img.shields.io/badge/version-0.9.0-blue.svg)](https://github.com/haposoft/cafekit)
6
6
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
7
7
  [![Claude%20Code](https://img.shields.io/badge/Claude%20Code-Primary-orange.svg)](https://claude.ai/code)
8
8
 
9
9
  ## Overview
10
10
 
11
- CafeKit installs a structured workflow into Claude Code so the assistant can move cleanly from:
11
+ CafeKit installs a structured workflow so an AI coding agent can move cleanly from:
12
12
 
13
13
  ```text
14
- Idea -> Brainstorm when unclear -> Spec -> Design -> Task Files -> Implementation -> Test -> Review
14
+ Idea -> QS when unclear -> Brainstorm -> Spec -> Design -> Task Files -> Implementation -> Test -> Review
15
15
  ```
16
16
 
17
- This package currently focuses on the Claude Code runtime:
17
+ Claude Code install support:
18
18
  - installs CafeKit skills under `.claude/skills/`
19
19
  - installs supporting agents under `.claude/agents/`
20
20
  - installs runtime hooks, statusline, and managed settings
21
21
  - merges Claude settings safely on re-run
22
22
 
23
- Antigravity remains in the repository as a legacy path, but Claude Code is the primary supported runtime for this release.
23
+ OpenCode install support:
24
+ - installs command wrappers under `.opencode/commands/`
25
+ - installs converted OpenCode agents under `.opencode/agents/`
26
+ - installs CafeKit skills under `.opencode/skills/`
27
+ - installs OpenCode plugin runtime files under `.opencode/plugins/`
28
+ - merges `opencode.json` and root `AGENTS.md`
29
+ - omits the Claude `hapo:` command prefix
24
30
 
25
31
  ## Install
26
32
 
@@ -38,11 +44,11 @@ npx @haposoft/cafekit --upgrade
38
44
 
39
45
  Requirements:
40
46
  - Node.js 18+
41
- - Claude Code project with a `.claude/` directory, or choose Claude when prompted
47
+ - Claude Code project with `.claude/`, OpenCode project with `.opencode/` or `opencode.json`, or choose a runtime when prompted
42
48
 
43
49
  ## What Gets Installed
44
50
 
45
- Claude Code install targets:
51
+ Claude Code targets:
46
52
 
47
53
  ```text
48
54
  .claude/
@@ -50,6 +56,9 @@ Claude Code install targets:
50
56
  ├── skills/
51
57
  ├── agents/
52
58
  ├── hooks/
59
+ ├── rules/
60
+ ├── scripts/
61
+ ├── references/
53
62
  ├── cafekit.json
54
63
  ├── status.cjs
55
64
  ├── runtime.json
@@ -57,24 +66,43 @@ Claude Code install targets:
57
66
  └── CLAUDE.md
58
67
  ```
59
68
 
60
- Managed runtime features include:
61
- - Claude Code statusline
62
- - session and subagent hooks
63
- - rule/context injection
64
- - spec state awareness
65
- - safe settings merge on reinstall
66
- - installed CafeKit version tracking in `.claude/cafekit.json`
69
+ OpenCode targets:
70
+
71
+ ```text
72
+ .opencode/
73
+ ├── .gitignore
74
+ ├── commands/
75
+ ├── agents/
76
+ ├── skills/
77
+ ├── rules/
78
+ ├── scripts/
79
+ ├── references/
80
+ ├── plugins/
81
+ ├── cafekit.json
82
+ ├── runtime.json
83
+ └── package.json
84
+
85
+ AGENTS.md
86
+ opencode.json
87
+ ```
88
+
89
+ OpenCode setup also:
90
+ - binds generated commands to matching CafeKit subagents with `agent` + `subtask`
91
+ - configures `permission.skill` and `permission.task`
92
+ - optionally writes `model` to `opencode.json` from `OPENCODE_MODEL`, `OPENCODE_DEFAULT_MODEL`, or installer input
67
93
 
68
94
  To check the installed CafeKit package version:
69
95
 
70
96
  ```bash
71
97
  cat .claude/cafekit.json
98
+ cat .opencode/cafekit.json
72
99
  ```
73
100
 
74
101
  ## Core Skills
75
102
 
76
103
  CafeKit ships many skills, but the main release surface is:
77
104
 
105
+ - `/hapo:qs <request-or-context> [--batch|--spec-ready|--stakeholder]`: clarify missing decisions, acceptance criteria, scope, constraints, and next workflow readiness
78
106
  - `/hapo:brainstorm <idea-or-problem>`: scout the repo, clarify exact requirements, compare approaches, and hand off to specs
79
107
  - `/hapo:specs <feature-description>`: create or resume a structured spec workflow
80
108
  - `/hapo:develop <feature-name>`: implement from approved spec artifacts
@@ -95,44 +123,29 @@ node .claude/scripts/generate-skill-catalog.cjs --skills
95
123
 
96
124
  ## Quick Start
97
125
 
98
- For unclear ideas, brainstorm first:
126
+ Claude Code:
99
127
 
100
128
  ```bash
129
+ /hapo:qs "What is still unclear before the Google Meet transcript extension spec?" --spec-ready
101
130
  /hapo:brainstorm Explore approaches for a Google Meet transcript extension
102
- ```
103
-
104
- Create a new spec:
105
-
106
- ```bash
107
131
  /hapo:specs Build a Google Meet transcript extension with AI summaries
108
- ```
109
-
110
- Implement the whole feature:
111
-
112
- ```bash
113
132
  /hapo:develop meet-transcript-mvp
133
+ /hapo:test meet-transcript-mvp --full
134
+ /hapo:code-review meet-transcript-mvp --pending
114
135
  ```
115
136
 
116
- Implement one specific task file:
117
-
118
- ```bash
119
- /hapo:develop meet-transcript-mvp task-R0-02-extension-scaffold-dashboard-skeleton.md
120
- ```
121
-
122
- Run tests and review:
137
+ OpenCode uses the generated command names without the Claude `hapo:` prefix:
123
138
 
124
139
  ```bash
125
- /hapo:test --full
126
- /hapo:code-review --pending
140
+ /qs "What is still unclear before the Google Meet transcript extension spec?" --spec-ready
141
+ /brainstorm Explore approaches for a Google Meet transcript extension
142
+ /specs Build a Google Meet transcript extension with AI summaries
143
+ /develop meet-transcript-mvp
144
+ /test --full
145
+ /code-review --pending
127
146
  ```
128
147
 
129
- Generate a diagram:
130
-
131
- ```bash
132
- /hapo:generate-graph Draw a sequence diagram for auth flow between browser, API, and database
133
- ```
134
-
135
- Reconstruct current-state docs for an existing or legacy system:
148
+ Reconstruct as-is docs from a legacy codebase:
136
149
 
137
150
  ```bash
138
151
  /hapo:docs --reconstruct apps/legacy-admin
@@ -140,9 +153,9 @@ Reconstruct current-state docs for an existing or legacy system:
140
153
 
141
154
  The reconstruct bundle includes as-is markdown/JSON evidence and a self-contained `overview.html` review dashboard before the approved docs are handed to `/hapo:specs`.
142
155
 
143
- ## Spec Artifacts
156
+ ## Spec Output
144
157
 
145
- CafeKit's current spec workflow writes artifacts under:
158
+ Specs are stored under:
146
159
 
147
160
  ```text
148
161
  specs/<feature-name>/
@@ -150,34 +163,17 @@ specs/<feature-name>/
150
163
  ├── requirements.md
151
164
  ├── research.md
152
165
  ├── design.md
153
- └── tasks/
154
- ├── task-R0-01-*.md
155
- ├── task-R1-01-*.md
156
- └── ...
166
+ └── tasks/task-R*.md
157
167
  ```
158
168
 
159
- The active workflow expects:
160
- - `spec.json` to hold state, approvals, validation, and `task_files`
161
- - design to define canonical contracts
162
- - each task file to carry completion criteria and `Task Test Plan & Verification Evidence`
163
-
164
- ## Release Notes For 0.8.0
169
+ ## Development
165
170
 
166
- This release strengthens CafeKit's Claude Code workflow:
167
- - added `hapo:brainstorm` as a scout-first pre-spec design workflow for unclear ideas
168
- - tightened `hapo:specs` routing so unresolved architecture choices move through brainstorm first
169
- - added task-level `Task Test Plan & Verification Evidence` guidance across specs, develop, test, review, and sync
170
- - added skill self-tests for bundled Chrome DevTools and PDF scripts
171
- - added `hapo:git finish` guidance for verified branch closeout
172
- - simplified Claude runtime rules and added hook protocol guidance
173
- - fixed web lint/build issues in the docs app
171
+ Run package self-tests:
174
172
 
175
- ## Documentation
176
-
177
- - Installation: https://cafekit.haposoft.com/docs/getting-started/installation
178
- - Quickstart: https://cafekit.haposoft.com/docs/getting-started/quickstart
179
- - Spec workflow: https://cafekit.haposoft.com/docs/guides/spec-workflow
173
+ ```bash
174
+ npm test
175
+ ```
180
176
 
181
177
  ## License
182
178
 
183
- MIT © Haposoft
179
+ MIT