opencode-sa-assistant 0.2.4 → 0.2.5

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 CHANGED
@@ -28,10 +28,14 @@ This plugin activates when you use the `wadd` keyword in your messages, transfor
28
28
 
29
29
  ## Installation
30
30
 
31
- ```bash
32
- # From the repository root
33
- cd packages/opencode-sa-assistant
34
- bun install
31
+ Add the plugin to your `opencode.json`:
32
+
33
+ ```json
34
+ {
35
+ "plugin": [
36
+ "opencode-sa-assistant"
37
+ ]
38
+ }
35
39
  ```
36
40
 
37
41
  ## Usage
@@ -73,14 +77,14 @@ wadd bezos에게 고객 경험 관점에서 이 기능을 평가해달라고 해
73
77
 
74
78
  ## Skills
75
79
 
76
- The plugin includes 4 skill modules:
80
+ The plugin includes 4 skill modules that are automatically installed to `~/.config/opencode/skills/`:
77
81
 
78
82
  - **guru**: Guru consultation patterns and philosophies
79
83
  - **mcp**: AWS MCP tools reference (search_documentation, read_documentation)
80
84
  - **docx**: AWS Blog-style document generation guidelines
81
85
  - **pptx**: SA presentation templates
82
86
 
83
- Skills are automatically loaded when needed.
87
+ Skills are installed globally to ensure they are available before any plugin caching occurs. Use `/skill guru` or `/skill mcp` to load them.
84
88
 
85
89
  ## Testing
86
90
 
@@ -92,7 +96,7 @@ bun test
92
96
  bun test src/__tests__/integration.test.ts
93
97
  ```
94
98
 
95
- **Test Coverage**: 65 tests, 212 assertions, 100% pass rate
99
+ **Test Coverage**: 80 tests, 234 assertions, 100% pass rate
96
100
 
97
101
  ## Development
98
102
 
@@ -163,6 +167,23 @@ Contributions are welcome! Please ensure:
163
167
 
164
168
  ## Changelog
165
169
 
170
+ ### v0.2.5 (2026-02-05)
171
+
172
+ - Fix: Skills now installed to global location (`~/.config/opencode/skills/`)
173
+ - Resolves oh-my-opencode cache timing issue
174
+ - Skills are now available via `/skill` command immediately
175
+ - Test coverage: 80 tests, 234 assertions
176
+
177
+ ### v0.2.4 (2026-02-05)
178
+
179
+ - Added skill installation to `.opencode/skills/`
180
+ - Skills: guru, mcp, docx, pptx
181
+
182
+ ### v0.2.3 (2026-02-05)
183
+
184
+ - Aligned wadd hook with oh-my-opencode pattern
185
+ - Added `removeCodeBlocks()` for keyword detection
186
+
166
187
  ### v0.1.0 (2026-02-05)
167
188
 
168
189
  - Initial release
@@ -171,4 +192,3 @@ Contributions are welcome! Please ensure:
171
192
  - Guru_Mandate consultation system
172
193
  - Well-Architected Framework integration
173
194
  - AWS MCP tools support
174
- - 65 tests, 100% pass rate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-sa-assistant",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "description": "OpenCode plugin for AWS Solutions Architect assistant with multi-agent Guru system",
@@ -172,11 +172,12 @@ export function uninstallSAAgents(): string[] {
172
172
  export const SA_SKILL_NAMES = ["docx", "pptx", "mcp", "guru"] as const;
173
173
 
174
174
  /**
175
- * Get the skills directory path for project-level installation
176
- * Uses process.cwd() to find the project root
175
+ * Get the skills directory path for global installation
176
+ * Uses ~/.config/opencode/skills/ to ensure skills are available
177
+ * before any plugin loads (solving the oh-my-opencode cache timing issue)
177
178
  */
178
179
  function getSkillsDir(): string {
179
- return join(process.cwd(), ".opencode", "skills");
180
+ return join(homedir(), ".config", "opencode", "skills");
180
181
  }
181
182
 
182
183
  /**
@@ -195,9 +196,7 @@ function getSourceSkillsDir(): string {
195
196
  }
196
197
 
197
198
  /**
198
- * Install SA skills to .opencode/skills/
199
- * Creates the directory structure if it doesn't exist.
200
- * Only writes files if they don't exist (preserves user modifications).
199
+ * Install SA skills to ~/.config/opencode/skills/ (global location)
201
200
  */
202
201
  export function installSASkills(): { installed: string[]; skipped: string[]; errors: string[] } {
203
202
  const skillsDir = getSkillsDir();
@@ -243,7 +242,7 @@ export function installSASkills(): { installed: string[]; skipped: string[]; err
243
242
  }
244
243
 
245
244
  /**
246
- * Uninstall SA skills (remove SKILL.md files and directories)
245
+ * Uninstall SA skills from ~/.config/opencode/skills/
247
246
  */
248
247
  export function uninstallSASkills(): string[] {
249
248
  const skillsDir = getSkillsDir();