@haposoft/cafekit 0.8.15 → 0.8.17
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 +43 -4
- package/bin/install.js +698 -114
- package/package.json +1 -1
- package/src/claude/CLAUDE.md +4 -0
- package/src/claude/hooks/lib/config.cjs +0 -1
- package/src/claude/hooks/lib/context.cjs +2 -2
- package/src/claude/hooks/rules.cjs +7 -0
- package/src/claude/migration-manifest.json +11 -3
- package/src/claude/rules/skill-domain-routing.md +87 -0
- package/src/claude/rules/skill-workflow-routing.md +84 -0
- package/src/claude/scripts/generate-skill-catalog.cjs +180 -0
- package/src/claude/settings/settings.json +0 -4
- package/src/opencode/AGENTS.md +140 -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/src/claude/hooks/lib/skill-router-routes.cjs +0 -196
- package/src/claude/hooks/skill-router.cjs +0 -68
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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
|
|
|
@@ -20,7 +20,7 @@ This package currently focuses on the Claude Code runtime:
|
|
|
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 installs command wrappers under `.opencode/commands/`, converted OpenCode agents under `.opencode/agents/`, root `AGENTS.md`, merged `opencode.json`, and CafeKit skills under `.claude/skills/` so OpenCode can read the Claude-compatible skill bundle. OpenCode command names intentionally omit the `hapo:` prefix.
|
|
24
24
|
|
|
25
25
|
## Install
|
|
26
26
|
|
|
@@ -38,7 +38,7 @@ npx @haposoft/cafekit --upgrade
|
|
|
38
38
|
|
|
39
39
|
Requirements:
|
|
40
40
|
- Node.js 18+
|
|
41
|
-
- Claude Code project with a `.claude/` directory, or choose
|
|
41
|
+
- Claude Code project with a `.claude/` directory, OpenCode project with `.opencode/` or `opencode.json`, or choose a runtime when prompted
|
|
42
42
|
|
|
43
43
|
## What Gets Installed
|
|
44
44
|
|
|
@@ -57,18 +57,43 @@ Claude Code install targets:
|
|
|
57
57
|
└── CLAUDE.md
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
+
OpenCode install targets:
|
|
61
|
+
|
|
62
|
+
```text
|
|
63
|
+
.opencode/
|
|
64
|
+
├── commands/
|
|
65
|
+
├── agents/
|
|
66
|
+
└── cafekit.json
|
|
67
|
+
|
|
68
|
+
.claude/
|
|
69
|
+
├── .gitignore
|
|
70
|
+
├── skills/
|
|
71
|
+
├── rules/
|
|
72
|
+
├── scripts/
|
|
73
|
+
└── runtime.json
|
|
74
|
+
|
|
75
|
+
AGENTS.md
|
|
76
|
+
opencode.json
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
OpenCode setup also:
|
|
80
|
+
- binds generated commands to the matching CafeKit subagent with `agent` + `subtask`
|
|
81
|
+
- configures `permission.skill` and `permission.task` for CafeKit skills/subtasks
|
|
82
|
+
- optionally writes `model` to `opencode.json` from `OPENCODE_MODEL`, `OPENCODE_DEFAULT_MODEL`, or installer input
|
|
83
|
+
|
|
60
84
|
Managed runtime features include:
|
|
61
85
|
- Claude Code statusline
|
|
62
86
|
- session and subagent hooks
|
|
63
87
|
- rule/context injection
|
|
64
88
|
- spec state awareness
|
|
65
89
|
- safe settings merge on reinstall
|
|
66
|
-
- installed CafeKit version tracking in `.claude/cafekit.json`
|
|
90
|
+
- installed CafeKit version tracking in `.claude/cafekit.json` or `.opencode/cafekit.json`
|
|
67
91
|
|
|
68
92
|
To check the installed CafeKit package version:
|
|
69
93
|
|
|
70
94
|
```bash
|
|
71
95
|
cat .claude/cafekit.json
|
|
96
|
+
cat .opencode/cafekit.json
|
|
72
97
|
```
|
|
73
98
|
|
|
74
99
|
## Core Skills
|
|
@@ -87,8 +112,22 @@ CafeKit ships many skills, but the main release surface is:
|
|
|
87
112
|
|
|
88
113
|
Common companion skills bundled in this package include `inspect`, `impact-analysis`, `research`, `ai-multimodal`, `frontend-development`, `backend-development`, and `react-best-practices`.
|
|
89
114
|
|
|
115
|
+
CafeKit uses rule-based skill routing guidance instead of an automatic prompt-scoring hook. See `.claude/rules/skill-workflow-routing.md`, `.claude/rules/skill-domain-routing.md`, or run:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
node .claude/scripts/generate-skill-catalog.cjs --skills
|
|
119
|
+
```
|
|
120
|
+
|
|
90
121
|
## Quick Start
|
|
91
122
|
|
|
123
|
+
OpenCode uses the generated command names without the Claude `hapo:` prefix:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
/specs Build a Google Meet transcript extension with AI summaries
|
|
127
|
+
/develop meet-transcript-mvp
|
|
128
|
+
/test --full
|
|
129
|
+
```
|
|
130
|
+
|
|
92
131
|
For unclear ideas, brainstorm first:
|
|
93
132
|
|
|
94
133
|
```bash
|