shortcuts-playground 1.2.2 → 1.2.4

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 (2) hide show
  1. package/README.md +28 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -16,16 +16,40 @@ OpenCode now supports plugin-bundled hooks via `tool.execute.after`. This packag
16
16
 
17
17
  For published npm distribution:
18
18
 
19
+ ```json
20
+ // opencode.json (project or ~/.config/opencode/opencode.jsonc) — validator
21
+ {
22
+ "$schema": "https://opencode.ai/config.json",
23
+ "plugin": ["shortcuts-playground"]
24
+ }
25
+ ```
26
+ Bun installs the validator on next startup. Pin with `shortcuts-playground@1.2.4`.
27
+
28
+ Skills use the standard open-skills CLI (no `postinstall` — like `claude`/`codex` via marketplace, OpenCode skills are file-discovered at `.opencode/skills` / `~/.config/opencode/skills` / `.agents/skills` per `https://opencode.ai/docs/skills#place-files`):
29
+
19
30
  ```bash
20
- opencode plugin shortcuts-playground # installs via npm and updates opencode.json
21
- # or globally
22
- opencode plugin shortcuts-playground --global
31
+ # from GitHub (recommended)
32
+ npx skills add viticci/shortcuts-playground-plugin -a opencode --skill shortcuts-playground
33
+ # or local checkout
34
+ npx skills add ./opencode -a opencode --skill shortcuts-playground
35
+ # global
36
+ npx skills add viticci/shortcuts-playground-plugin -a opencode -g --skill shortcuts-playground
37
+ ```
38
+
39
+ This symlinks to `.agents/skills/shortcuts-playground/` (discovered by OpenCode) — verified `npx skills add -a opencode --list` finds 1 skill.
40
+
41
+ Commands (`/build-shortcut` + `/remix-shortcut`) and subagents have no `npx skills` installer — copy if you want slash commands (otherwise natural language triggers the skill):
42
+
43
+ ```bash
44
+ mkdir -p .opencode/commands .opencode/agents
45
+ cp opencode/commands/*.md .opencode/commands/
46
+ cp opencode/agents/*.md .opencode/agents/
23
47
  ```
24
48
 
25
49
  For local development from a checkout:
26
50
 
27
51
  ```bash
28
- # option A: via opencode.json (recommended)
52
+ # via opencode.json (recommended)
29
53
  # add to opencode.json: { "plugin": ["./opencode/plugin/validator.ts"] }
30
54
  # then copy skills/commands/agents:
31
55
  mkdir -p .opencode/plugins .opencode/skills .opencode/commands .opencode/agents
@@ -33,9 +57,6 @@ cp opencode/plugin/validator.ts .opencode/plugins/shortcuts-playground.ts
33
57
  cp -R opencode/skills/shortcuts-playground .opencode/skills/
34
58
  cp opencode/commands/*.md .opencode/commands/
35
59
  cp opencode/agents/*.md .opencode/agents/
36
-
37
- # option B: npm link / file path (no clone needed after publish)
38
- opencode plugin ./opencode
39
60
  ```
40
61
 
41
62
  The bundled skill uses direct script paths:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shortcuts-playground",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Build, validate, sign, and archive macOS/iOS Shortcuts from OpenCode — thin skill wrapper over ToolKit v78 catalog, /build-shortcut and /remix-shortcut commands, and tool.execute.after validator",
5
5
  "type": "module",
6
6
  "license": "MIT",