@haposoft/cafekit 0.8.1 → 0.8.3
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 -0
- package/package.json +5 -2
- package/src/claude/CLAUDE.md +1 -0
- package/src/claude/agents/debugger.md +58 -4
- package/src/claude/agents/docs-keeper.md +1 -1
- package/src/claude/agents/god-developer.md +2 -2
- package/src/claude/agents/project-manager.md +1 -1
- package/src/claude/agents/spec-maker.md +22 -19
- package/src/claude/agents/test-runner.md +1 -0
- package/src/claude/agents/ui-ux-designer.md +3 -3
- package/src/claude/migration-manifest.json +1 -0
- package/src/claude/references/debugger/condition-based-waiting.md +56 -0
- package/src/claude/references/debugger/frontend-verification.md +59 -0
- package/src/claude/references/debugger/performance-diagnostics.md +76 -0
- package/src/claude/references/debugger/side-effect-gate.md +48 -0
- package/src/claude/rules/manage-docs.md +2 -2
- package/src/claude/settings/settings.json +1 -1
- package/src/claude/skills/ai-multimodal/SKILL.md +1 -1
- package/src/claude/skills/brainstorm/SKILL.md +2 -2
- package/src/claude/skills/chrome-devtools/SKILL.md +1 -1
- package/src/claude/skills/code-review/SKILL.md +1 -1
- package/src/claude/skills/debug/SKILL.md +216 -0
- package/src/claude/skills/develop/SKILL.md +1 -1
- package/src/claude/skills/develop/references/quality-gate.md +3 -3
- package/src/claude/skills/develop/references/subagent-patterns.md +10 -10
- package/src/claude/skills/frontend-design/SKILL.md +1 -1
- package/src/claude/skills/hotfix/SKILL.md +30 -10
- package/src/claude/skills/hotfix/references/diagnosis-protocol.md +28 -4
- package/src/claude/skills/hotfix/references/parallel-patterns.md +13 -13
- package/src/claude/skills/hotfix/references/prevention-gate.md +8 -1
- package/src/claude/skills/hotfix/references/workflow-specialized.md +3 -1
- package/src/claude/skills/inspect/SKILL.md +2 -2
- package/src/claude/skills/inspect/references/external-gemini-inspection.md +11 -11
- package/src/claude/skills/research/SKILL.md +1 -1
- package/src/claude/skills/specs/SKILL.md +6 -6
- package/src/claude/skills/specs/references/codebase-analysis.md +1 -1
- package/src/claude/skills/test/SKILL.md +1 -1
- package/src/claude/skills/ai-multimodal/scripts/.coverage +0 -0
- package/src/claude/skills/ai-multimodal/scripts/tests/.coverage +0 -0
- package/src/claude/skills/pdf/scripts/__pycache__/check_bounding_boxes.cpython-314.pyc +0 -0
|
@@ -11,7 +11,7 @@ SCALE ≥ 6 → Use internal discovery instead
|
|
|
11
11
|
|
|
12
12
|
## Configuration
|
|
13
13
|
|
|
14
|
-
Read from
|
|
14
|
+
Read from `.claude/runtime.json`:
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
17
|
"gemini": {
|
|
@@ -62,17 +62,17 @@ If not installed, ask user:
|
|
|
62
62
|
1. **Yes** - Provide installation instructions (may need manual auth steps)
|
|
63
63
|
2. **No** - Fall back to internal discovery (`internal-inspection.md`)
|
|
64
64
|
|
|
65
|
-
##
|
|
65
|
+
## Running Parallel Gemini Commands
|
|
66
66
|
|
|
67
|
-
Use `
|
|
67
|
+
Use the `Bash` tool for each scoped Gemini command. Run them in the same tool turn when the runtime supports parallel tool calls; otherwise run them sequentially. Do not use `Agent` with `subagent_type: "Bash"` — `Bash` is a tool, not a subagent.
|
|
68
68
|
|
|
69
69
|
```
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
Bash: gemini -y -m gemini-3-flash-preview '[prompt1]'
|
|
71
|
+
Bash: gemini -y -m gemini-3-flash-preview '[prompt2]'
|
|
72
|
+
Bash: gemini -y -m gemini-3-flash-preview '[prompt3]'
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
Group by independent scopes so each command can return a focused report.
|
|
76
76
|
|
|
77
77
|
## Prompt Guidelines
|
|
78
78
|
|
|
@@ -107,11 +107,11 @@ Do not expand beyond the provided scope.
|
|
|
107
107
|
|
|
108
108
|
User: "Find database migration files" with `ext`
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
Run 3 scoped Gemini CLI commands:
|
|
111
111
|
```
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
Bash: gemini -y -m gemini-3-flash-preview 'Search db/, migrations/ for migration files'
|
|
113
|
+
Bash: gemini -y -m gemini-3-flash-preview 'Search lib/, src/ for database schema files'
|
|
114
|
+
Bash: gemini -y -m gemini-3-flash-preview 'Search config/ for database configuration'
|
|
115
115
|
```
|
|
116
116
|
|
|
117
117
|
## Reading File Content
|
|
@@ -19,7 +19,7 @@ Before delegating, briefly assess the `[topic]`.
|
|
|
19
19
|
- If solid, proceed.
|
|
20
20
|
|
|
21
21
|
### Phase 2: Agent Delegation
|
|
22
|
-
Call the `
|
|
22
|
+
Call the `Agent` tool to invoke the `researcher` subagent. Use `TaskCreate` only for task-list tracking when the workflow needs persistent task state.
|
|
23
23
|
**Instructions to pass to Researcher:**
|
|
24
24
|
```text
|
|
25
25
|
Conduct comprehensive research on: [topic]
|
|
@@ -159,12 +159,12 @@ flowchart TD
|
|
|
159
159
|
- the request has 2-3 viable architectures and no user-approved direction
|
|
160
160
|
- the feature spans 3+ independent subsystems and needs decomposition
|
|
161
161
|
- the user is explicitly asking to explore, compare, debate, or decide
|
|
162
|
-
- **Multimodal & Document Auto-Ingestion (MANDATORY)**: If the input includes file paths or URLs pointing to images, audio, video, or Office documents,
|
|
163
|
-
- `.mp3`, `.wav`, `.mp4`, `.mov`, `.jpg`, `.png`, `.webp` → `
|
|
164
|
-
- `.pdf` → `
|
|
165
|
-
- `.docx` → `
|
|
166
|
-
- `.pptx` → `
|
|
167
|
-
- `.xlsx`, `.csv` → `
|
|
162
|
+
- **Multimodal & Document Auto-Ingestion (MANDATORY)**: If the input includes file paths or URLs pointing to images, audio, video, or Office documents, activate the matching skill workflow to extract content BEFORE proceeding:
|
|
163
|
+
- `.mp3`, `.wav`, `.mp4`, `.mov`, `.jpg`, `.png`, `.webp` → use `hapo:ai-multimodal` to transcribe/analyze the file
|
|
164
|
+
- `.pdf` → use `hapo:pdf` to extract text and tables
|
|
165
|
+
- `.docx` → use `hapo:docx` to extract document content
|
|
166
|
+
- `.pptx` → use `hapo:pptx` to extract slide content
|
|
167
|
+
- `.xlsx`, `.csv` → use `hapo:xlsx` to extract data
|
|
168
168
|
- *Append the extracted findings into your working memory as the enriched "description".*
|
|
169
169
|
- If description < 20 words or lacks concrete nouns → ask 1-2 clarifying questions
|
|
170
170
|
- If task is too simple → warn user that a spec may not be needed
|
|
@@ -37,7 +37,7 @@ The scout must be narrow and question-driven. Do not scan the whole repo just be
|
|
|
37
37
|
2. **The "Blind Flight" Halt:** If ALL 4 mandatory docs are missing in a non-empty repository:
|
|
38
38
|
- **DO NOT** blindly use `inspector` to scan the whole repo.
|
|
39
39
|
- **HALT** the spec process immediately.
|
|
40
|
-
- Ask the User: *"No codebase documentation found. Exploring blind will drain tokens and produce inaccurate specs. Shall I
|
|
40
|
+
- Ask the User: *"No codebase documentation found. Exploring blind will drain tokens and produce inaccurate specs. Shall I call the `docs-keeper` agent to generate a baseline `codebase-summary.md` first?"*
|
|
41
41
|
|
|
42
42
|
## Scout Output Contract
|
|
43
43
|
|
|
@@ -75,7 +75,7 @@ See `references/execution-strategy.md` Phase C for full phase breakdown.
|
|
|
75
75
|
|
|
76
76
|
Delegate execution to `test-runner` agent:
|
|
77
77
|
```
|
|
78
|
-
|
|
78
|
+
Agent(subagent_type="test-runner",
|
|
79
79
|
prompt="Run tests. Scope: [blast-radius|full|ui]. Target: [path|url]. Return structured verdict.",
|
|
80
80
|
description="Test [feature]")
|
|
81
81
|
```
|
|
Binary file
|
|
Binary file
|