@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.
- package/README.md +63 -67
- package/bin/install.js +141 -194
- package/bin/lib/copy-utils.js +61 -0
- package/bin/lib/opencode-install.js +866 -0
- package/package.json +4 -1
- package/src/claude/CLAUDE.md +2 -2
- package/src/claude/migration-manifest.json +1 -0
- package/src/claude/rules/skill-domain-routing.md +2 -0
- package/src/claude/rules/skill-workflow-routing.md +3 -1
- package/src/claude/skills/qs/SKILL.md +177 -0
- package/src/claude/skills/qs/templates/qs.md +30 -0
- package/src/opencode/AGENTS.md +140 -0
- package/src/opencode/plugins/docs-sync.ts +181 -0
- package/src/opencode/plugins/inspect-block.ts +164 -0
- package/src/opencode/plugins/privacy-block.ts +182 -0
- package/src/opencode/plugins/rules.ts +163 -0
- package/src/opencode/plugins/session.ts +179 -0
- package/src/opencode/plugins/state.ts +253 -0
- package/src/opencode/plugins/usage.ts +178 -0
- package/src/antigravity/GEMINI.md +0 -162
- package/src/antigravity/workflows/code.md +0 -16
- package/src/antigravity/workflows/docs-init.md +0 -432
- package/src/antigravity/workflows/docs-update.md +0 -245
- package/src/antigravity/workflows/impact-analysis-output-example.md +0 -313
- package/src/antigravity/workflows/impact-analysis.md +0 -730
- package/src/antigravity/workflows/review.md +0 -15
- package/src/antigravity/workflows/spec-design.md +0 -220
- package/src/antigravity/workflows/spec-init.md +0 -78
- package/src/antigravity/workflows/spec-requirements.md +0 -122
- package/src/antigravity/workflows/spec-status.md +0 -95
- package/src/antigravity/workflows/spec-tasks.md +0 -156
- package/src/antigravity/workflows/spec-validate.md +0 -106
- 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
|
-
[](https://github.com/haposoft/cafekit)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
[](https://claude.ai/code)
|
|
8
8
|
|
|
9
9
|
## Overview
|
|
10
10
|
|
|
11
|
-
CafeKit installs a structured workflow
|
|
11
|
+
CafeKit installs a structured workflow so an AI coding agent can move cleanly from:
|
|
12
12
|
|
|
13
13
|
```text
|
|
14
|
-
Idea ->
|
|
14
|
+
Idea -> QS when unclear -> Brainstorm -> Spec -> Design -> Task Files -> Implementation -> Test -> Review
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
/
|
|
126
|
-
/
|
|
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
|
-
|
|
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
|
|
156
|
+
## Spec Output
|
|
144
157
|
|
|
145
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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
|
|
179
|
+
MIT
|