@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.
Files changed (40) hide show
  1. package/README.md +2 -0
  2. package/package.json +5 -2
  3. package/src/claude/CLAUDE.md +1 -0
  4. package/src/claude/agents/debugger.md +58 -4
  5. package/src/claude/agents/docs-keeper.md +1 -1
  6. package/src/claude/agents/god-developer.md +2 -2
  7. package/src/claude/agents/project-manager.md +1 -1
  8. package/src/claude/agents/spec-maker.md +22 -19
  9. package/src/claude/agents/test-runner.md +1 -0
  10. package/src/claude/agents/ui-ux-designer.md +3 -3
  11. package/src/claude/migration-manifest.json +1 -0
  12. package/src/claude/references/debugger/condition-based-waiting.md +56 -0
  13. package/src/claude/references/debugger/frontend-verification.md +59 -0
  14. package/src/claude/references/debugger/performance-diagnostics.md +76 -0
  15. package/src/claude/references/debugger/side-effect-gate.md +48 -0
  16. package/src/claude/rules/manage-docs.md +2 -2
  17. package/src/claude/settings/settings.json +1 -1
  18. package/src/claude/skills/ai-multimodal/SKILL.md +1 -1
  19. package/src/claude/skills/brainstorm/SKILL.md +2 -2
  20. package/src/claude/skills/chrome-devtools/SKILL.md +1 -1
  21. package/src/claude/skills/code-review/SKILL.md +1 -1
  22. package/src/claude/skills/debug/SKILL.md +216 -0
  23. package/src/claude/skills/develop/SKILL.md +1 -1
  24. package/src/claude/skills/develop/references/quality-gate.md +3 -3
  25. package/src/claude/skills/develop/references/subagent-patterns.md +10 -10
  26. package/src/claude/skills/frontend-design/SKILL.md +1 -1
  27. package/src/claude/skills/hotfix/SKILL.md +30 -10
  28. package/src/claude/skills/hotfix/references/diagnosis-protocol.md +28 -4
  29. package/src/claude/skills/hotfix/references/parallel-patterns.md +13 -13
  30. package/src/claude/skills/hotfix/references/prevention-gate.md +8 -1
  31. package/src/claude/skills/hotfix/references/workflow-specialized.md +3 -1
  32. package/src/claude/skills/inspect/SKILL.md +2 -2
  33. package/src/claude/skills/inspect/references/external-gemini-inspection.md +11 -11
  34. package/src/claude/skills/research/SKILL.md +1 -1
  35. package/src/claude/skills/specs/SKILL.md +6 -6
  36. package/src/claude/skills/specs/references/codebase-analysis.md +1 -1
  37. package/src/claude/skills/test/SKILL.md +1 -1
  38. package/src/claude/skills/ai-multimodal/scripts/.coverage +0 -0
  39. package/src/claude/skills/ai-multimodal/scripts/tests/.coverage +0 -0
  40. 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 `packages/spec/src/claude/runtime.json`:
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
- ## Spawning Parallel Bash Agents
65
+ ## Running Parallel Gemini Commands
66
66
 
67
- Use `Agent` tool with `subagent_type: "Bash"` to spawn parallel agents:
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
- Agent 1: subagent_type="Bash", prompt="Run: gemini -y -m gemini-3-flash-preview '[prompt1]'"
71
- Agent 2: subagent_type="Bash", prompt="Run: gemini -y -m gemini-3-flash-preview '[prompt2]'"
72
- Agent 3: subagent_type="Bash", prompt="Run: gemini -y -m gemini-3-flash-preview '[prompt3]'"
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
- Spawn all in single message for parallel execution.
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
- Spawn 3 parallel Bash agents via Agent tool:
110
+ Run 3 scoped Gemini CLI commands:
111
111
  ```
112
- Agent 1 (Bash): "Run: gemini -y -m gemini-3-flash-preview 'Search db/, migrations/ for migration files'"
113
- Agent 2 (Bash): "Run: gemini -y -m gemini-3-flash-preview 'Search lib/, src/ for database schema files'"
114
- Agent 3 (Bash): "Run: gemini -y -m gemini-3-flash-preview 'Search config/ for database configuration'"
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 `TaskCreate` tool to spin up the `researcher` subagent.
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, you MUST spawn the matching subagent to extract content BEFORE proceeding:
163
- - `.mp3`, `.wav`, `.mp4`, `.mov`, `.jpg`, `.png`, `.webp` → `Task(subagent_type="hapo:ai-multimodal", prompt="Transcribe/Analyze [path]")`
164
- - `.pdf` → `Task(subagent_type="hapo:pdf", prompt="Extract text and tables from [path]")`
165
- - `.docx` → `Task(subagent_type="hapo:docx", prompt="Extract content from [path]")`
166
- - `.pptx` → `Task(subagent_type="hapo:pptx", prompt="Extract slide content from [path]")`
167
- - `.xlsx`, `.csv` → `Task(subagent_type="hapo:xlsx", prompt="Extract data from [path]")`
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 trigger `docs-keeper` or `/hapo:docs` to generate a baseline `codebase-summary.md` first?"*
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
- Task(subagent_type="test-runner",
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
  ```