@haposoft/cafekit 0.13.3 → 0.14.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 (114) hide show
  1. package/README.md +1 -2
  2. package/bin/lib/i18n.js +2 -2
  3. package/bin/lib/manifest.js +15 -0
  4. package/bin/lib/opencode-install.js +0 -14
  5. package/bin/phases/claude-runtime.js +4 -1
  6. package/bin/phases/claude-settings.js +38 -7
  7. package/package.json +1 -1
  8. package/src/claude/agents/ui-ux-designer.md +4 -4
  9. package/src/claude/hooks/__tests__/privacy-block.test.js +79 -0
  10. package/src/claude/hooks/__tests__/session-writeenv.test.js +68 -0
  11. package/src/claude/hooks/__tests__/spec-gate.test.js +270 -0
  12. package/src/claude/hooks/privacy-block.cjs +22 -2
  13. package/src/claude/hooks/session.cjs +5 -1
  14. package/src/claude/hooks/spec-gate.cjs +173 -0
  15. package/src/claude/hooks/spec-state.cjs +10 -17
  16. package/src/claude/hooks/task-scaffold-guard.cjs +4 -2
  17. package/src/claude/migration-manifest.json +5 -4
  18. package/src/claude/rules/skill-domain-routing.md +2 -3
  19. package/src/claude/rules/skill-workflow-routing.md +2 -3
  20. package/src/claude/rules/state-sync.md +4 -0
  21. package/src/claude/runtime.json +4 -0
  22. package/src/claude/scripts/validate-docs.cjs +4 -7
  23. package/src/claude/scripts/validate-spec-output.cjs +29 -9
  24. package/src/claude/settings/settings.json +4 -0
  25. package/src/claude/skills/ai-multimodal/.env.example +11 -13
  26. package/src/claude/skills/ai-multimodal/SKILL.md +1 -1
  27. package/src/claude/skills/ai-multimodal/references/audio-processing.md +25 -27
  28. package/src/claude/skills/ai-multimodal/references/video-analysis.md +23 -27
  29. package/src/claude/skills/ai-multimodal/references/vision-understanding.md +26 -26
  30. package/src/claude/skills/ai-multimodal/scripts/check_setup.py +1 -1
  31. package/src/claude/skills/ai-multimodal/scripts/gemini_batch_process.py +7 -9
  32. package/src/claude/skills/brainstorm/SKILL.md +1 -2
  33. package/src/claude/skills/docx/SKILL.md +1 -1
  34. package/src/claude/skills/frontend-design/SKILL.md +1 -1
  35. package/src/claude/skills/frontend-design/references/ai-multimodal-overview.md +4 -4
  36. package/src/claude/skills/frontend-design/references/analysis-techniques.md +3 -3
  37. package/src/claude/skills/frontend-design/references/asset-generation.md +2 -2
  38. package/src/claude/skills/frontend-design/references/design-extraction-overview.md +4 -4
  39. package/src/claude/skills/frontend-design/references/extraction-best-practices.md +3 -3
  40. package/src/claude/skills/frontend-design/references/technical-accessibility.md +1 -1
  41. package/src/claude/skills/frontend-design/references/technical-optimization.md +1 -1
  42. package/src/claude/skills/frontend-design/references/technical-overview.md +2 -2
  43. package/src/claude/skills/frontend-design/references/technical-workflows.md +6 -6
  44. package/src/claude/skills/frontend-design/references/visual-analysis-overview.md +3 -3
  45. package/src/claude/skills/inspect/SKILL.md +3 -3
  46. package/src/claude/skills/inspect/references/external-gemini-inspection.md +9 -9
  47. package/src/claude/skills/pdf/SKILL.md +1 -1
  48. package/src/claude/skills/pptx/SKILL.md +1 -1
  49. package/src/claude/skills/specs/SKILL.md +1 -1
  50. package/src/claude/skills/xlsx/SKILL.md +1 -1
  51. package/src/opencode/AGENTS.md +1 -2
  52. package/src/opencode/plugins/session.ts +2 -2
  53. package/src/opencode/plugins/spec-state.ts +244 -0
  54. package/src/opencode/plugins/task-scaffold-guard.ts +161 -0
  55. package/src/claude/scripts/browser-tool.cjs +0 -138
  56. package/src/claude/skills/generate-graph/LICENSE +0 -21
  57. package/src/claude/skills/generate-graph/README.md +0 -523
  58. package/src/claude/skills/generate-graph/SKILL.md +0 -429
  59. package/src/claude/skills/generate-graph/agentloop-core.svg +0 -101
  60. package/src/claude/skills/generate-graph/agents/openai.yaml +0 -4
  61. package/src/claude/skills/generate-graph/assets/samples/sample-style1-flat.png +0 -0
  62. package/src/claude/skills/generate-graph/assets/samples/sample-style2-dark.png +0 -0
  63. package/src/claude/skills/generate-graph/assets/samples/sample-style3-blueprint.png +0 -0
  64. package/src/claude/skills/generate-graph/assets/samples/sample-style4-notion.png +0 -0
  65. package/src/claude/skills/generate-graph/assets/samples/sample-style5-glass.png +0 -0
  66. package/src/claude/skills/generate-graph/assets/samples/sample-style6-claude.png +0 -0
  67. package/src/claude/skills/generate-graph/assets/samples/sample-style7-openai.png +0 -0
  68. package/src/claude/skills/generate-graph/fixtures/agent-memory-types-style4.json +0 -181
  69. package/src/claude/skills/generate-graph/fixtures/api-flow-style7.json +0 -40
  70. package/src/claude/skills/generate-graph/fixtures/mem0-style1.json +0 -297
  71. package/src/claude/skills/generate-graph/fixtures/microservices-style3.json +0 -64
  72. package/src/claude/skills/generate-graph/fixtures/multi-agent-style5.json +0 -45
  73. package/src/claude/skills/generate-graph/fixtures/system-architecture-style6.json +0 -48
  74. package/src/claude/skills/generate-graph/fixtures/tool-call-style2.json +0 -182
  75. package/src/claude/skills/generate-graph/package.json +0 -42
  76. package/src/claude/skills/generate-graph/references/icons.md +0 -281
  77. package/src/claude/skills/generate-graph/references/style-1-flat-icon.md +0 -108
  78. package/src/claude/skills/generate-graph/references/style-2-dark-terminal.md +0 -107
  79. package/src/claude/skills/generate-graph/references/style-3-blueprint.md +0 -113
  80. package/src/claude/skills/generate-graph/references/style-4-notion-clean.md +0 -94
  81. package/src/claude/skills/generate-graph/references/style-5-glassmorphism.md +0 -125
  82. package/src/claude/skills/generate-graph/references/style-6-claude-official.md +0 -209
  83. package/src/claude/skills/generate-graph/references/style-7-openai.md +0 -215
  84. package/src/claude/skills/generate-graph/references/style-diagram-matrix.md +0 -135
  85. package/src/claude/skills/generate-graph/references/svg-layout-best-practices.md +0 -100
  86. package/src/claude/skills/generate-graph/scripts/generate-diagram.sh +0 -157
  87. package/src/claude/skills/generate-graph/scripts/generate-from-template.py +0 -1556
  88. package/src/claude/skills/generate-graph/scripts/test-all-styles.sh +0 -135
  89. package/src/claude/skills/generate-graph/scripts/validate-svg.sh +0 -292
  90. package/src/claude/skills/generate-graph/templates/agent-architecture.svg +0 -28
  91. package/src/claude/skills/generate-graph/templates/architecture.svg +0 -23
  92. package/src/claude/skills/generate-graph/templates/comparison-matrix.svg +0 -14
  93. package/src/claude/skills/generate-graph/templates/data-flow.svg +0 -28
  94. package/src/claude/skills/generate-graph/templates/er-diagram.svg +0 -21
  95. package/src/claude/skills/generate-graph/templates/flowchart.svg +0 -21
  96. package/src/claude/skills/generate-graph/templates/sequence.svg +0 -20
  97. package/src/claude/skills/generate-graph/templates/state-machine.svg +0 -20
  98. package/src/claude/skills/generate-graph/templates/timeline.svg +0 -19
  99. package/src/claude/skills/generate-graph/templates/use-case.svg +0 -21
  100. package/src/claude/skills/impact-analysis/SKILL.md +0 -276
  101. package/src/claude/skills/impact-analysis/references/change-detection.md +0 -270
  102. package/src/claude/skills/impact-analysis/references/dependency-scouting.md +0 -338
  103. package/src/claude/skills/impact-analysis/references/edge-case-identification.md +0 -439
  104. package/src/claude/skills/impact-analysis/references/industry-techniques.md +0 -695
  105. package/src/claude/skills/impact-analysis/references/practical-techniques-guide.md +0 -753
  106. package/src/claude/skills/impact-analysis/references/project-detection.md +0 -704
  107. package/src/claude/skills/impact-analysis/references/react-native-customization.md +0 -508
  108. package/src/claude/skills/impact-analysis/references/report-template.md +0 -604
  109. package/src/claude/skills/impact-analysis/references/test-scenario-generation.md +0 -459
  110. package/src/claude/skills/impact-analysis/scripts/README.md +0 -476
  111. package/src/claude/skills/impact-analysis/scripts/ast-analyze.js +0 -403
  112. package/src/claude/skills/impact-analysis/scripts/calculate-risk.js +0 -475
  113. package/src/claude/skills/impact-analysis/scripts/find-dependencies.sh +0 -202
  114. package/src/claude/skills/impact-analysis/scripts/run-analysis.sh +0 -312
@@ -68,7 +68,6 @@ Leverage these specific tools or sub-agents to execute the workflow effectively:
68
68
  - `AskUserQuestion`: Use this to enforce the "One Question at a Time" rule and to present multiple choices.
69
69
  - `hapo:inspect`: Mandatory first pass for repo-aware brainstorming.
70
70
  - `hapo:ai-multimodal`: Use this when analyzing visual materials and mockups.
71
- - `hapo:generate-graph`: Use when a diagram would make architecture, flows, or trade-offs easier to validate.
72
71
  - `repomix --remote`: Use this bash command to summarize external Github repositories if a URL is provided.
73
72
  - `psql`: Query database schemas to understand existing data structures.
74
73
  - `brainstormer`: Call only for medium/high-complexity architecture trade-offs.
@@ -155,7 +154,7 @@ Always name the simplest viable option and explain the trade-off that makes it p
155
154
 
156
155
  If the topic involves UI layouts, interactive elements, visual styling, architecture diagrams, or spatial flows:
157
156
  - Use `hapo:ai-multimodal` for supplied images, videos, PDFs, or mockups.
158
- - Use `hapo:generate-graph` when a diagram would make trade-offs clearer.
157
+ - Use a Mermaid diagram in the design doc when it would make trade-offs clearer.
159
158
  - Do not force text-only guesswork for visual choices.
160
159
  - Visual aids support the brainstorm; they do not bypass user approval.
161
160
 
@@ -7,7 +7,7 @@ when_to_use: "Invoke to read, create, or edit Word .docx documents."
7
7
  category: document-skills
8
8
  keywords: [docx, word, document, office]
9
9
  metadata:
10
- author: haposoft
10
+ author: "Anthropic, PBC — adapted by Haposoft"
11
11
  version: "1.0.0"
12
12
  ---
13
13
  # DOCX creation, editing, and analysis
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: hapo:frontend-design
3
3
  description: Create polished frontend interfaces from designs/screenshots/videos. Use for web components, 3D experiences, replicating UI designs, quick prototypes, immersive interfaces, avoiding AI slop.
4
- license: Complete terms in LICENSE.txt
4
+ license: MIT
5
5
  user-invocable: true
6
6
  when_to_use: "Invoke to translate mockups or screenshots into UI implementation."
7
7
  category: frontend
@@ -79,7 +79,7 @@ Extract design systems systematically from high-quality references:
79
79
  4. Extract color palettes with hex codes
80
80
  5. Test integration with UI elements
81
81
 
82
- **Model**: gemini-2.5-flash (vision understanding)
82
+ **Model**: gemma-4-31b-it (vision understanding)
83
83
 
84
84
  ### For Design Extraction
85
85
  **See**: `design-extraction.md`
@@ -90,7 +90,7 @@ Extract design systems systematically from high-quality references:
90
90
  4. Extract motion guidelines from videos (if applicable)
91
91
  5. Document actionably with CSS-ready specifications
92
92
 
93
- **Model**: gemini-2.5-flash (vision understanding)
93
+ **Model**: gemma-4-31b-it (vision understanding)
94
94
 
95
95
  ## Integration with Other Skills
96
96
 
@@ -139,7 +139,7 @@ python scripts/gemini_batch_process.py \
139
139
  --task analyze \
140
140
  --prompt "[evaluation criteria]" \
141
141
  --output docs/assets/analysis.md \
142
- --model gemini-2.5-flash
142
+ --model gemma-4-31b-it
143
143
  ```
144
144
 
145
145
  **Extract design guidelines**:
@@ -149,7 +149,7 @@ python scripts/gemini_batch_process.py \
149
149
  --task analyze \
150
150
  --prompt "[extraction criteria from design-extraction.md]" \
151
151
  --output docs/design-guidelines/extracted.md \
152
- --model gemini-2.5-flash
152
+ --model gemma-4-31b-it
153
153
  ```
154
154
 
155
155
  ## Remember
@@ -23,7 +23,7 @@ python scripts/gemini_batch_process.py \
23
23
  --task analyze \
24
24
  --prompt "Rank these variations 1-3 with scores. Identify winner." \
25
25
  --output docs/assets/batch-analysis.md \
26
- --model gemini-2.5-flash
26
+ --model gemma-4-31b-it
27
27
  ```
28
28
 
29
29
  ## Contextual Testing
@@ -46,7 +46,7 @@ python scripts/gemini_batch_process.py \
46
46
  4. Overall visual hierarchy effectiveness
47
47
  Provide WCAG contrast ratio estimates." \
48
48
  --output docs/assets/ui-integration-test.md \
49
- --model gemini-2.5-flash
49
+ --model gemma-4-31b-it
50
50
  ```
51
51
 
52
52
  ## A/B Testing Analysis
@@ -71,7 +71,7 @@ Compare for:
71
71
 
72
72
  Recommend which to A/B test in production and why." \
73
73
  --output docs/assets/ab-test-analysis.md \
74
- --model gemini-2.5-flash
74
+ --model gemma-4-31b-it
75
75
  ```
76
76
 
77
77
  ## Iteration Strategy
@@ -95,7 +95,7 @@ python scripts/gemini_batch_process.py \
95
95
  5. Professional quality (rate 1-10)
96
96
  6. Specific weaknesses or improvements needed" \
97
97
  --output docs/assets/hero-evaluation.md \
98
- --model gemini-2.5-flash
98
+ --model gemma-4-31b-it
99
99
  ```
100
100
 
101
101
  ### Step 5: Iterate or Integrate
@@ -311,7 +311,7 @@ python scripts/gemini_batch_process.py \
311
311
  --task analyze \
312
312
  --prompt "Rate 1-10 for aesthetic quality, color harmony, text overlay suitability" \
313
313
  --output docs/assets/analysis-1.md \
314
- --model gemini-2.5-flash
314
+ --model gemma-4-31b-it
315
315
 
316
316
  # 3. If score ≥ 7/10, generate production version
317
317
  python scripts/gemini_batch_process.py \
@@ -27,7 +27,7 @@ python scripts/gemini_batch_process.py \
27
27
  --task analyze \
28
28
  --prompt "[see extraction-prompts.md for detailed prompt]" \
29
29
  --output docs/design-guidelines/extracted-design-system.md \
30
- --model gemini-2.5-flash
30
+ --model gemma-4-31b-it
31
31
  ```
32
32
 
33
33
  ### Multi-Screen System Extraction
@@ -37,7 +37,7 @@ python scripts/gemini_batch_process.py \
37
37
  --task analyze \
38
38
  --prompt "[see extraction-prompts.md for multi-screen prompt]" \
39
39
  --output docs/design-guidelines/complete-design-system.md \
40
- --model gemini-2.5-flash
40
+ --model gemma-4-31b-it
41
41
  ```
42
42
 
43
43
  ### Video Motion Analysis
@@ -47,7 +47,7 @@ python scripts/gemini_batch_process.py \
47
47
  --task analyze \
48
48
  --prompt "[see extraction-prompts.md for motion prompt]" \
49
49
  --output docs/design-guidelines/motion-system.md \
50
- --model gemini-2.5-flash
50
+ --model gemma-4-31b-it
51
51
  ```
52
52
 
53
53
  ### Competitive Analysis
@@ -57,7 +57,7 @@ python scripts/gemini_batch_process.py \
57
57
  --task analyze \
58
58
  --prompt "[see extraction-prompts.md for competitive prompt]" \
59
59
  --output docs/design-guidelines/competitive-analysis.md \
60
- --model gemini-2.5-flash
60
+ --model gemma-4-31b-it
61
61
  ```
62
62
 
63
63
  ## Detailed References
@@ -85,7 +85,7 @@ python scripts/gemini_batch_process.py \
85
85
  - All animation timings
86
86
  Output as CSS variables ready for implementation." \
87
87
  --output docs/design-guidelines/brand-design-system.md \
88
- --model gemini-2.5-flash
88
+ --model gemma-4-31b-it
89
89
  ```
90
90
 
91
91
  ### Trend Analysis
@@ -103,7 +103,7 @@ python scripts/gemini_batch_process.py \
103
103
  5. Animation patterns
104
104
  Identify what's trending in 2024 web design." \
105
105
  --output docs/design-guidelines/trend-analysis.md \
106
- --model gemini-2.5-flash
106
+ --model gemma-4-31b-it
107
107
  ```
108
108
 
109
109
  ### Historical Evolution
@@ -119,7 +119,7 @@ python scripts/gemini_batch_process.py \
119
119
  3. How trends influenced changes
120
120
  4. Lessons for our design evolution" \
121
121
  --output docs/design-guidelines/evolution-analysis.md \
122
- --model gemini-2.5-flash
122
+ --model gemma-4-31b-it
123
123
  ```
124
124
 
125
125
  ## Common Pitfalls
@@ -71,7 +71,7 @@ python scripts/gemini_batch_process.py \
71
71
 
72
72
  Provide specific recommendations for adjustments." \
73
73
  --output docs/assets/integration-analysis.md \
74
- --model gemini-2.5-flash
74
+ --model gemma-4-31b-it
75
75
  ```
76
76
 
77
77
  ## Next.js Integration Example
@@ -24,7 +24,7 @@ Use ultra model (1 generation):
24
24
 
25
25
  ## Analysis Model Strategy
26
26
 
27
- - Use gemini-2.5-flash for all analysis (vision understanding)
27
+ - Use gemma-4-31b-it for all analysis (vision understanding)
28
28
  - **Cost**: ~$0.001 per analysis
29
29
  - **Speed**: ~2-5 seconds per analysis
30
30
  - **Token-efficient**: Images count as ~258-1548 tokens
@@ -52,7 +52,7 @@ python scripts/gemini_batch_process.py --files docs/assets/[image].png \
52
52
  --task analyze \
53
53
  --prompt "[evaluation criteria]" \
54
54
  --output docs/assets/analysis.md \
55
- --model gemini-2.5-flash
55
+ --model gemma-4-31b-it
56
56
 
57
57
  # Optimize
58
58
  python scripts/media_optimizer.py \
@@ -65,7 +65,7 @@ python scripts/gemini_batch_process.py --files docs/assets/[image].png \
65
65
  --task analyze \
66
66
  --prompt "Extract 5-8 dominant colors with hex codes. Classify as primary/accent/neutral." \
67
67
  --output docs/assets/color-palette.md \
68
- --model gemini-2.5-flash
68
+ --model gemma-4-31b-it
69
69
  ```
70
70
 
71
71
  ## Responsive Image Strategies
@@ -24,7 +24,7 @@ python scripts/gemini_batch_process.py \
24
24
  suitability for overlaying white text, professional quality.
25
25
  List any improvements needed." \
26
26
  --output docs/assets/hero-evaluation.md \
27
- --model gemini-2.5-flash
27
+ --model gemma-4-31b-it
28
28
 
29
29
  # 3. If score ≥ 7/10, optimize for web
30
30
  python scripts/media_optimizer.py \
@@ -59,7 +59,7 @@ python scripts/gemini_batch_process.py \
59
59
  --task analyze \
60
60
  --prompt "[use extraction prompt from extraction-prompts.md]" \
61
61
  --output docs/design-guidelines/competitor-analysis.md \
62
- --model gemini-2.5-flash
62
+ --model gemma-4-31b-it
63
63
 
64
64
  # 2. Generate asset based on extracted guidelines
65
65
  # (Review competitor-analysis.md for color palette, aesthetic)
@@ -77,7 +77,7 @@ python scripts/gemini_batch_process.py \
77
77
  --prompt "Compare to competitor design. Rate differentiation (1-10).
78
78
  Are we too similar or successfully distinct?" \
79
79
  --output docs/assets/differentiation-analysis.md \
80
- --model gemini-2.5-flash
80
+ --model gemma-4-31b-it
81
81
 
82
82
  # 4. Extract colors from our final asset for CSS
83
83
  python scripts/gemini_batch_process.py \
@@ -85,7 +85,7 @@ python scripts/gemini_batch_process.py \
85
85
  --task analyze \
86
86
  --prompt "[use color extraction prompt from visual-analysis-overview.md]" \
87
87
  --output docs/assets/color-palette.md \
88
- --model gemini-2.5-flash
88
+ --model gemma-4-31b-it
89
89
  ```
90
90
 
91
91
  ## Example 3: A/B Test Assets
@@ -116,7 +116,7 @@ python scripts/gemini_batch_process.py \
116
116
  3. Conversion potential
117
117
  Recommend which to test." \
118
118
  --output docs/assets/ab-comparison.md \
119
- --model gemini-2.5-flash
119
+ --model gemma-4-31b-it
120
120
 
121
121
  # Generate production version of winner
122
122
  python scripts/gemini_batch_process.py \
@@ -146,5 +146,5 @@ python scripts/gemini_batch_process.py \
146
146
  --task analyze \
147
147
  --prompt "Rank these variations 1-3 with scores. Identify winner." \
148
148
  --output docs/assets/batch-analysis.md \
149
- --model gemini-2.5-flash
149
+ --model gemma-4-31b-it
150
150
  ```
@@ -19,7 +19,7 @@ python scripts/gemini_batch_process.py \
19
19
  --task analyze \
20
20
  --prompt "[see analysis-prompts.md for detailed prompt]" \
21
21
  --output docs/assets/analysis-report.md \
22
- --model gemini-2.5-flash
22
+ --model gemma-4-31b-it
23
23
  ```
24
24
 
25
25
  ### Compare Multiple Variations
@@ -29,7 +29,7 @@ python scripts/gemini_batch_process.py \
29
29
  --task analyze \
30
30
  --prompt "[see analysis-prompts.md for comparison prompt]" \
31
31
  --output docs/assets/comparison-analysis.md \
32
- --model gemini-2.5-flash
32
+ --model gemma-4-31b-it
33
33
  ```
34
34
 
35
35
  ### Extract Color Palette
@@ -39,7 +39,7 @@ python scripts/gemini_batch_process.py \
39
39
  --task analyze \
40
40
  --prompt "Extract 5-8 dominant colors with hex codes. Classify as primary/accent/neutral. Suggest CSS variable names." \
41
41
  --output docs/assets/color-palette.md \
42
- --model gemini-2.5-flash
42
+ --model gemma-4-31b-it
43
43
  ```
44
44
 
45
45
  ## Decision Framework
@@ -25,7 +25,7 @@ Fast, token-efficient codebase discovery using parallel agents to find files nee
25
25
  - Starting debugging session requiring file relationships understanding
26
26
  - User asks about project structure or where functionality lives
27
27
  - Before changes that might affect multiple codebase parts
28
- - Before review/debug/impact-analysis when affected files are unclear
28
+ - Before review/debug/impact analysis when affected files are unclear
29
29
 
30
30
  ## Preflight Scope Gate (MANDATORY - All Modes)
31
31
 
@@ -122,12 +122,12 @@ Read from `.claude/runtime.json`:
122
122
  ```json
123
123
  {
124
124
  "gemini": {
125
- "model": "gemini-3-flash-preview"
125
+ "model": "gemma-4-31b-it"
126
126
  }
127
127
  }
128
128
  ```
129
129
 
130
- Default model: `gemini-3-flash-preview`
130
+ Default model: `gemma-4-31b-it`
131
131
 
132
132
  **Note:** This file is automatically installed when you run `npx @haposoft/cafekit`.
133
133
 
@@ -15,12 +15,12 @@ Read from `.claude/runtime.json`:
15
15
  ```json
16
16
  {
17
17
  "gemini": {
18
- "model": "gemini-3-flash-preview"
18
+ "model": "gemma-4-31b-it"
19
19
  }
20
20
  }
21
21
  ```
22
22
 
23
- Default model: `gemini-3-flash-preview`
23
+ Default model: `gemma-4-31b-it`
24
24
 
25
25
  **Note:** This file is automatically installed when you run `npx @haposoft/cafekit`.
26
26
 
@@ -48,7 +48,7 @@ gemini -y -m <model> "[prompt]"
48
48
 
49
49
  ### Example
50
50
  ```bash
51
- gemini -y -m gemini-3-flash-preview "Search src/ for authentication files. List paths with brief descriptions."
51
+ gemini -y -m gemma-4-31b-it "Search src/ for authentication files. List paths with brief descriptions."
52
52
  ```
53
53
 
54
54
  ## Installation Check
@@ -67,9 +67,9 @@ If not installed, ask user:
67
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
- 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]'
70
+ Bash: gemini -y -m gemma-4-31b-it '[prompt1]'
71
+ Bash: gemini -y -m gemma-4-31b-it '[prompt2]'
72
+ Bash: gemini -y -m gemma-4-31b-it '[prompt3]'
73
73
  ```
74
74
 
75
75
  Group by independent scopes so each command can return a focused report.
@@ -109,9 +109,9 @@ User: "Find database migration files" with `ext`
109
109
 
110
110
  Run 3 scoped Gemini CLI commands:
111
111
  ```
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'
112
+ Bash: gemini -y -m gemma-4-31b-it 'Search db/, migrations/ for migration files'
113
+ Bash: gemini -y -m gemma-4-31b-it 'Search lib/, src/ for database schema files'
114
+ Bash: gemini -y -m gemma-4-31b-it 'Search config/ for database configuration'
115
115
  ```
116
116
 
117
117
  ## Reading File Content
@@ -7,7 +7,7 @@ when_to_use: "Invoke to read, extract, or generate PDF documents."
7
7
  category: document-skills
8
8
  keywords: [pdf, extract, document, generate]
9
9
  metadata:
10
- author: haposoft
10
+ author: "Anthropic, PBC — adapted by Haposoft"
11
11
  version: "1.0.0"
12
12
  ---
13
13
  # PDF Processing Guide
@@ -7,7 +7,7 @@ when_to_use: "Invoke to read, create, or edit PowerPoint .pptx slides."
7
7
  category: document-skills
8
8
  keywords: [pptx, powerpoint, slides, office]
9
9
  metadata:
10
- author: haposoft
10
+ author: "Anthropic, PBC — adapted by Haposoft"
11
11
  version: "1.0.0"
12
12
  ---
13
13
  # PPTX creation, editing, and analysis
@@ -161,7 +161,7 @@ Load `references/translation-mirror.md`. This is the only language feature in th
161
161
  ### When called WITH `--validate` argument
162
162
 
163
163
  System IMMEDIATELY jumps to **Step 8: Validation Review**.
164
- The system MUST NOT execute Steps 1-8. Instead, load `references/review.md` and follow it **step-by-step**.
164
+ The system MUST NOT execute Steps 1-7. Instead, load `references/review.md` and follow it **step-by-step**.
165
165
 
166
166
  #### `--validate` Guardrails (NON-NEGOTIABLE)
167
167
 
@@ -7,7 +7,7 @@ when_to_use: "Invoke to read, create, or edit Excel .xlsx spreadsheets."
7
7
  category: document-skills
8
8
  keywords: [xlsx, excel, spreadsheet, office]
9
9
  metadata:
10
- author: haposoft
10
+ author: "Anthropic, PBC — adapted by Haposoft"
11
11
  version: "1.0.0"
12
12
  ---
13
13
  # Requirements for Outputs
@@ -25,7 +25,6 @@ Use these OpenCode commands:
25
25
  - `/hotfix <issue>`: apply a narrow, scout-first production fix.
26
26
  - `/docs [--init|--update|--summarize|--reconstruct]`: maintain or reconstruct project docs.
27
27
  - `/inspect <target>`: inspect source, artifacts, or external context.
28
- - `/generate-graph <request>`: generate technical diagrams.
29
28
 
30
29
  The underlying CafeKit skills are still named `hapo:*` in their documentation. In OpenCode, use the commands above; each command reads the matching skill from `.opencode/skills/<skill>/SKILL.md`.
31
30
 
@@ -82,7 +81,7 @@ Use this loop for non-trivial work:
82
81
 
83
82
  - Claude Code hooks/statusline/settings do not run in OpenCode.
84
83
  - Treat `.claude/rules/*` as explicit reference material, not injected hook context.
85
- - When a skill says to use unavailable Claude-specific tools such as `Task`, `TodoWrite`, or `AskUserQuestion`, use OpenCode's agent/subtask flow, a concise markdown checklist, or ask the user directly.
84
+ - Map Claude-specific tools to OpenCode built-ins: `TodoWrite` → the `todowrite` tool; `AskUserQuestion` → the `question` tool; `Task` → OpenCode's agent/subtask flow.
86
85
  - Privacy and inspect gates are instruction-level gates in OpenCode unless a project-specific OpenCode plugin adds hard enforcement.
87
86
 
88
87
  ## Operating Discipline
@@ -153,9 +153,9 @@ function handleSessionCreated(cwd: string): void {
153
153
  function handleSessionCompacted(cwd: string): void {
154
154
  const lines = [
155
155
  "🚨 SESSION COMPRESSED — VERIFY PENDING AUTHORIZATIONS:",
156
- "Any pending confirmations requested via AskUserQuestion might have been lost.",
156
+ "Any pending confirmations requested via the question tool might have been lost.",
157
157
  "Do not proceed without explicitly asking the user again to ensure safety.",
158
- 'Use AskUserQuestion: "The chat context was compressed. Do I still have permission to proceed?"',
158
+ 'Use the question tool: "The chat context was compressed. Do I still have permission to proceed?"',
159
159
  ];
160
160
  writeBannerSection(cwd, lines.join("\n"));
161
161
  console.error(lines.join("\n"));