@gobing-ai/superskill 0.1.4 → 0.1.6

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 (3) hide show
  1. package/README.md +73 -12
  2. package/dist/index.js +701 -420
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -15,6 +15,9 @@ Coding agents (Claude Code, Codex, Pi, OpenCode, Antigravity, Hermes, omp) each
15
15
 
16
16
  ```bash
17
17
  npm i -g @gobing-ai/superskill
18
+
19
+ # or go with bun
20
+ bun add -g @gobing-ai/superskill
18
21
  ```
19
22
 
20
23
  From source (contributors):
@@ -128,21 +131,79 @@ The CLI never scores or generates inline. Quality operations drive four personas
128
131
 
129
132
  Version-aware trends partition by `rubric_version`, preventing false regression signals when rubrics are updated.
130
133
 
131
- ## Supported targets
134
+ ## Proper Location for Coding Agents
135
+
136
+ Each coding agent stores skills, slash commands, subagents, and hooks in different directories. This table is the single source of truth for where `superskill install` writes each entity type per target — verified against each agent's source code (`vendors/`).
137
+
138
+ ### Entity locations — global (user-level, `~`)
139
+
140
+ | Agent | Skills | Slash Commands | Subagents | Hooks |
141
+ |-------|--------|---------------|-----------|-------|
142
+ | **Claude Code** | `~/.claude/plugins/<name>/skills/` | `~/.claude/plugins/<name>/commands/` | `~/.claude/plugins/<name>/agents/` | `~/.claude/plugins/<name>/hooks/hooks.json` |
143
+ | **Codex** | `~/.agents/skills/` | `~/.codex/prompts/` | `~/.codex/agents/` | — |
144
+ | **Pi** | `~/.pi/agent/skills/` ¹ | `~/.pi/agent/prompts/` | `~/.pi/agent/agents/` ² | extensions ³ |
145
+ | **omp** | `~/.omp/agent/skills/` | `~/.omp/agent/commands/` | `~/.omp/agent/agents/` ² | extensions ³ |
146
+ | **OpenCode** | `~/.opencode/skills/` | `~/.config/opencode/commands/` | `~/.config/opencode/agents/` | — |
147
+ | **Antigravity IDE** | `~/.gemini/config/skills/` | `~/.gemini/antigravity/global_workflows/` | — | — |
148
+ | **Antigravity CLI** | `~/.gemini/antigravity-cli/skills/` | — | — | — |
149
+ | **Hermes** | `~/.hermes/skills/` | config.yaml ⁴ | — ⁵ | `~/.hermes/hooks/<name>/HOOK.yaml` |
150
+ | **OpenClaw** | `~/.openclaw/plugin-skills/` | — ⁶ | — ⁷ | webhooks ⁸ |
151
+
152
+ ### Entity locations — project-level (relative to workspace root)
153
+
154
+ | Agent | Skills | Slash Commands | Subagents | Hooks |
155
+ |-------|--------|---------------|-----------|-------|
156
+ | **Claude Code** | `.claude/skills/` | `.claude/commands/` | `.claude/agents/` | `.claude/hooks/hooks.json` |
157
+ | **Codex** | `.agents/skills/` | `.codex/prompts/` | `.codex/agents/` | — |
158
+ | **Pi** | `.pi/skills/` | `.pi/prompts/` | `.pi/agents/` ² | `.pi/extensions/` |
159
+ | **omp** | `.omp/skills/` | `.omp/commands/` | `.omp/agents/` ² | `.omp/hooks/` / `.omp/extensions/` |
160
+ | **OpenCode** | `.opencode/skills/` | `.opencode/commands/` | `.opencode/agents/` | — |
161
+ | **Antigravity IDE** | `.agents/skills/` | `.agents/workflows/` | — | — |
162
+ | **Antigravity CLI** | `.agents/skills/` | — | — | — |
163
+ | **Hermes** | `.hermes/skills/` | config.yaml ⁴ | — ⁵ | `.hermes/hooks/<name>/` |
164
+ | **OpenClaw** | `skills/` | — ⁶ | — ⁷ | webhooks ⁸ |
165
+
166
+ ¹ Pi also reads `~/.agents/skills/` (Codex interop). omp reads from multiple agent directories (Claude Code, Codex, Gemini, OpenCode, etc.).
167
+
168
+ ² Subagents require an extension to be loaded (not built-in). Pi: `subagent` example extension. omp: `omp agents unpack` command.
169
+
170
+ ³ Pi and omp replaced legacy hooks with an **Extensions** system (TypeScript event handlers at `~/.pi/agent/extensions/` / `~/.omp/agent/extensions/`). Legacy hook dirs: `.omp/hooks/pre|post/*.ts`.
132
171
 
133
- | Target | Engine | Output location |
134
- |--------|--------|-----------------|
135
- | `claude` | Direct `claude plugin install` | Claude Code marketplace |
136
- | `codex` | rulesync | `~/.agents/skills/` |
137
- | `pi` | rulesync + superskill hook shim | Pi native format |
138
- | `omp` | superskill copy (via `pi` surrogate) | `~/.omp/agent/skills/` |
139
- | `opencode` | rulesync | `~/.agents/skills/` |
140
- | `antigravity-cli` | rulesync | `~/.gemini/antigravity-cli/skills/` |
141
- | `antigravity-ide` | rulesync | `~/.gemini/config/skills/` |
142
- | `hermes` | superskill copy (via `opencode` surrogate) | `~/.hermes/skills/` |
172
+ Hermes slash commands: built-in `CommandDef` entries OR user-defined `quick_commands:` in `~/.hermes/config.yaml`. Skills auto-register as `/<skill-name>` — best path.
173
+
174
+ Hermes spawns subagents dynamically via `delegate_task` tool; no persistent subagent directory.
175
+
176
+ OpenClaw auto-discovers slash commands from skill directories as `/<skill-name>`. No separate commands directory.
177
+
178
+ OpenClaw agents are configured in YAML (`agents.list`), not as files in a directory.
179
+
180
+ OpenClaw hooks are inbound HTTP webhooks (`hooks.path`, `hooks.transformsDir`) not coding-agent event hooks. No hook file installation needed.
143
181
 
144
182
  Since ts-ai-runner 0.3.21, `omp`, `hermes`, and `antigravity-cli` are canonical `AgentName` values — slash-command dialect translation maps 1:1. Only `antigravity-ide` still bridges through `opencode`.
145
183
 
184
+ ### How superskill installs
185
+
186
+ | Agent | Engine | Notes |
187
+ |-------|--------|-------|
188
+ | **Claude Code** | `claude plugin marketplace add` + `claude plugin install` | Native plugin system — handles all entity types automatically |
189
+ | **Codex** | rulesync | `codex` → `codexcli` |
190
+ | **Pi** | rulesync + superskill shim | Subagents adapted as Skills 2.0 skill directories; Pi native agents written directly to `~/.pi/agent/agents/` |
191
+ | **omp** | rulesync + superskill shim | `omp` → `pi` surrogate for rulesync, then copy to `~/.omp/`; omp also reads from other agent dirs |
192
+ | **OpenCode** | rulesync | `opencode` → `opencode` |
193
+ | **Antigravity IDE** | rulesync | `antigravity-ide` → `antigravity-ide` |
194
+ | **Antigravity CLI** | rulesync | `antigravity-cli` → `antigravity-cli`; commands/subagents not supported by rulesync for this target |
195
+ | **Hermes** | rulesync + superskill shim | `hermes` → `opencode` surrogate for rulesync, then copy to `~/.hermes/`; hooks format is HOOK.yaml not hooks.json |
196
+ | **OpenClaw** | implicit (via `~/.agents/skills/`) | Reads skills from `~/.agents/skills/` (shared root with codex/opencode in global mode). No dedicated dispatch needed. |
197
+
198
+ ### Known gaps
199
+
200
+ | Gap | Status |
201
+ |-----|--------|
202
+ | **antigravity-cli** commands/subagents | Rulesync doesn't support `antigravity-cli` for commands/subagents (only `antigravity` project-level). |
203
+ | **Hermes hooks format** | Superskill writes `hooks.json`; Hermes expects `~/.hermes/hooks/<name>/HOOK.yaml` + `handler.py`. |
204
+ | **Hermes commands** | No `commands/` directory. Install commands as skills for slash-command auto-discovery. |
205
+ | **Pi/omp hooks → extensions** | Legacy pi-hooks shim should migrate to the Extensions format. |
206
+ | **OpenClaw agents/hooks** | OpenClaw reads skills from `~/.agents/skills/` (implicitly covered). Dedicated agent YAML config and webhook-based hooks are not managed by superskill. |
146
207
  ## Bundled `cc` plugin
147
208
 
148
209
  superskill ships with a Claude Code plugin at [`plugins/cc/`](plugins/cc/) (marketplace name: `cc`, version `0.1.1`) that demonstrates the full authoring lifecycle and provides the meta-agent skills the expert personas reference:
@@ -155,7 +216,7 @@ superskill ships with a Claude Code plugin at [`plugins/cc/`](plugins/cc/) (mark
155
216
  | **hooks** | 1 | `Stop` hook running the anti-hallucination guard |
156
217
  | **scripts** | 3 | `ah_guard.ts`, `validate_response.ts`, `logger.ts` — deterministic enforcement for the anti-hallucination protocol |
157
218
 
158
- The plugin follows a three-tier delegation pattern: **Commands/Agents → Skills → `superskill` CLI**. See [`plugins/cc/README.md`](plugins/cc/README.md) for the full entity design and relationship diagram.
219
+ The plugin follows a three-tier delegation pattern: **Commands/Agents → Skills → `superskill` CLI**. For non-Claude targets, `superskill install` adapts commands and subagents as Skills 2.0 skill directories (`pipeline/adapt-command.ts`, `pipeline/adapt-subagent.ts`) so every target receives a uniform skill-based distribution. See [`plugins/cc/README.md`](plugins/cc/README.md) for the full entity design and relationship diagram.
159
220
 
160
221
  ## Development
161
222