@gobing-ai/superskill 0.1.2 → 0.1.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.
package/README.md
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# superskill
|
|
2
|
+
|
|
3
|
+
Multi-agent skill, command, subagent, hook, and MCP config distribution and authoring CLI — install a Claude Code plugin to any coding agent, and create/validate/evaluate/refine/evolve agent-facing content from the command line.
|
|
4
|
+
|
|
5
|
+
## Why
|
|
6
|
+
|
|
7
|
+
Coding agents (Claude Code, Codex, Pi, OpenCode, Antigravity, Hermes, …) each use different config formats for skills, slash commands, subagents, hooks, and MCP servers. Maintaining hand-synced copies across agents is error-prone and doesn't scale.
|
|
8
|
+
|
|
9
|
+
**superskill** solves this with two layers:
|
|
10
|
+
|
|
11
|
+
1. **Distribution** — `superskill install` takes a Claude Code plugin as the single source of truth and distributes it to any target agent, using [rulesync](https://www.npmjs.com/package/rulesync) as the format-conversion engine.
|
|
12
|
+
2. **Authoring + quality** — Five type commands (`agent`, `skill`, `command`, `hook`, `magent`) provide scaffold → validate → evaluate → refine → evolve workflows with persistent quality data.
|
|
13
|
+
|
|
14
|
+
## Supported targets
|
|
15
|
+
|
|
16
|
+
| Target | Engine | Notes |
|
|
17
|
+
|--------|--------|-------|
|
|
18
|
+
| `claude` | Direct marketplace install | Source of truth |
|
|
19
|
+
| `codex` | rulesync | `~/.agents/skills/` |
|
|
20
|
+
| `pi` | rulesync | Subagents → Pi native agent format |
|
|
21
|
+
| `omp` | superskill (copy) | Pi variant with custom root and binary (uses `pi` rulesync surrogate) |
|
|
22
|
+
| `opencode` | rulesync | `~/.agents/skills/` |
|
|
23
|
+
| `antigravity-cli` | rulesync | `~/.gemini/antigravity-cli/skills/` |
|
|
24
|
+
| `antigravity-ide` | rulesync | `~/.gemini/config/skills/` |
|
|
25
|
+
| `hermes` | superskill (copy) | `~/.hermes/skills/` (uses `opencode` rulesync surrogate) |
|
|
26
|
+
|
|
27
|
+
**Deprecated:** Gemini CLI, old unified Antigravity.
|
|
28
|
+
|
|
29
|
+
## Quick start
|
|
30
|
+
|
|
31
|
+
### Prerequisites
|
|
32
|
+
|
|
33
|
+
- [Bun](https://bun.sh/) ≥ 1.3.14
|
|
34
|
+
- [proto](https://moonrepo.dev/proto) (optional — pinned versions in `.prototools`)
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Install pinned tool versions (optional)
|
|
38
|
+
proto use
|
|
39
|
+
|
|
40
|
+
# Install dependencies
|
|
41
|
+
bun install
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Run the CLI (development)
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Via workspace filter
|
|
48
|
+
bun run dev
|
|
49
|
+
|
|
50
|
+
# Or directly
|
|
51
|
+
bun run apps/cli/src/index.ts --help
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Build a standalone binary
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
bun run build
|
|
58
|
+
# Output: dist/cli/superskill
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Commands
|
|
62
|
+
|
|
63
|
+
### `superskill install` — distribute a plugin to target agents
|
|
64
|
+
|
|
65
|
+
Install a Claude Code plugin's skills, commands, subagents, hooks, and MCP config to target coding agents.
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
superskill install [options] <plugin>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
| Argument / Option | Description | Default |
|
|
72
|
+
|-------------------|-------------|---------|
|
|
73
|
+
| `<plugin>` | Plugin name to install (required) | — |
|
|
74
|
+
| `--marketplace <path>` | Path to `.claude-plugin/marketplace.json` or its containing directory | CWD's `.claude-plugin/` |
|
|
75
|
+
| `--targets <list>` | Comma-separated target agents, or `all` | all configured |
|
|
76
|
+
| `--no-global` | Install to project-level instead of user-level global directories | `false` |
|
|
77
|
+
| `--dry-run` | Preview without writing files | `false` |
|
|
78
|
+
| `--verbose` | Print each step and file copy | `false` |
|
|
79
|
+
|
|
80
|
+
**Examples:**
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
# Install a plugin to all supported targets
|
|
84
|
+
superskill install rd3 --targets all
|
|
85
|
+
|
|
86
|
+
# Install to specific targets only
|
|
87
|
+
superskill install rd3 --targets codex,pi,antigravity-cli
|
|
88
|
+
|
|
89
|
+
# Preview what would be written without touching the filesystem
|
|
90
|
+
superskill install rd3 --targets all --dry-run
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
### Type Commands — `agent`, `skill`, `command`, `hook`, `magent`
|
|
96
|
+
|
|
97
|
+
Five type commands manage agent-facing resources:
|
|
98
|
+
|
|
99
|
+
| Command | Description |
|
|
100
|
+
|---------|-------------|
|
|
101
|
+
| `superskill agent` | Manage subagent definitions |
|
|
102
|
+
| `superskill skill` | Manage skill definitions |
|
|
103
|
+
| `superskill command` | Manage slash command definitions |
|
|
104
|
+
| `superskill hook` | Manage hook definitions |
|
|
105
|
+
| `superskill magent` | Manage main-agent configurations |
|
|
106
|
+
|
|
107
|
+
Each type command supports the following five operations:
|
|
108
|
+
|
|
109
|
+
#### 1. `scaffold` — Create a new file from templates
|
|
110
|
+
```bash
|
|
111
|
+
superskill <type> scaffold <name> [options]
|
|
112
|
+
```
|
|
113
|
+
* **Options:**
|
|
114
|
+
* `--description <text>`: Set description frontmatter.
|
|
115
|
+
* `--target <agent>`: Target agent format.
|
|
116
|
+
* `--output <dir>`: Target directory for the output file.
|
|
117
|
+
* `--force`: Overwrite existing files.
|
|
118
|
+
|
|
119
|
+
#### 2. `validate` — Run schema and compliance check
|
|
120
|
+
```bash
|
|
121
|
+
superskill <type> validate <nameOrPath> [options]
|
|
122
|
+
```
|
|
123
|
+
* **Options:**
|
|
124
|
+
* `--target <agent>`: Target agent to validate format compliance.
|
|
125
|
+
* `--strict`: Enable optional/warning-level checks.
|
|
126
|
+
* `--json`: Output findings in JSON format.
|
|
127
|
+
|
|
128
|
+
#### 3. `evaluate` — Score content against 5 quality dimensions
|
|
129
|
+
```bash
|
|
130
|
+
superskill <type> evaluate <nameOrPath> [options]
|
|
131
|
+
```
|
|
132
|
+
* **Options:**
|
|
133
|
+
* `--target <agent>`: Target agent formatting rules.
|
|
134
|
+
* `--save`: Save report to SQLite database.
|
|
135
|
+
* `--json`: Output report in JSON format.
|
|
136
|
+
|
|
137
|
+
#### 4. `refine` — Run automated fixes and suggestions
|
|
138
|
+
```bash
|
|
139
|
+
superskill <type> refine <nameOrPath> [options]
|
|
140
|
+
```
|
|
141
|
+
* **Options:**
|
|
142
|
+
* `--target <agent>`: Target agent formatting rules.
|
|
143
|
+
* `--auto`: Apply automatic fixes without confirmation.
|
|
144
|
+
* `--save`: Save post-remediation report to SQLite database.
|
|
145
|
+
|
|
146
|
+
#### 5. `evolve` — Apply longitudinal improvements from evaluation history
|
|
147
|
+
```bash
|
|
148
|
+
superskill <type> evolve <name> [options]
|
|
149
|
+
```
|
|
150
|
+
* **Options:**
|
|
151
|
+
* `--target <agent>`: Target agent formatting rules.
|
|
152
|
+
* `--from <timestamp>`: Baseline evaluation window.
|
|
153
|
+
* `--proposeOnly`: Propose modifications and save as draft without applying.
|
|
154
|
+
* `--accept <proposal_id>`: Accept and apply a specific draft proposal.
|
|
155
|
+
* `--reject <proposal_id>`: Reject a specific draft proposal.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Project structure
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
apps/
|
|
163
|
+
cli/ # Commander-based CLI (the binary)
|
|
164
|
+
src/
|
|
165
|
+
commands/ # CLI command registration (install, type commands)
|
|
166
|
+
pipeline/ # Conversion stages (pure functions)
|
|
167
|
+
content/ # Frontmatter parse/edit, name resolution
|
|
168
|
+
operations/ # scaffold, validate, evaluate, refine, evolve logic
|
|
169
|
+
quality/ # Dimension definitions + per-type evaluators
|
|
170
|
+
store/ # SQLite via @gobing-ai/ts-db
|
|
171
|
+
templates/ # Default templates shipped with npm
|
|
172
|
+
targets.ts # Target enum + mapping tables
|
|
173
|
+
config.ts # superskill.jsonc schema + loader
|
|
174
|
+
marketplace.ts # Marketplace manifest parser + resolver
|
|
175
|
+
mapper.ts # Plugin → .rulesync/ canonical layout
|
|
176
|
+
rulesync.ts # Thin wrapper around rulesync.generate()
|
|
177
|
+
cli.ts # Commander program setup
|
|
178
|
+
index.ts # Entry point
|
|
179
|
+
tests/ # bun:test suites
|
|
180
|
+
packages/ # Shared workspace packages (Bun workspaces)
|
|
181
|
+
tooling/
|
|
182
|
+
typescript/ # Shared tsconfig presets
|
|
183
|
+
docs/ # Authoritative project documentation (00–05, 99)
|
|
184
|
+
vendors/ # Reference-only vendored source (do not modify)
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## Development
|
|
188
|
+
|
|
189
|
+
### Stack
|
|
190
|
+
|
|
191
|
+
| Concern | Tool |
|
|
192
|
+
|---------|------|
|
|
193
|
+
| Runtime / package manager | Bun 1.3.14 |
|
|
194
|
+
| Language | TypeScript 5.x |
|
|
195
|
+
| CLI framework | Commander.js |
|
|
196
|
+
| Lint + format | Biome 2.4.16 |
|
|
197
|
+
| Test runner | `bun:test` |
|
|
198
|
+
| Format conversion | rulesync (npm) |
|
|
199
|
+
| Git hooks | Lefthook |
|
|
200
|
+
| Conventional commits | cocogitto (`cog`) |
|
|
201
|
+
| Tool versions | proto (`.prototools`) |
|
|
202
|
+
|
|
203
|
+
### Commands
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
bun run lint # biome check + typecheck
|
|
207
|
+
bun run format # biome check --write (autofix)
|
|
208
|
+
bun run autofix # format then typecheck
|
|
209
|
+
bun run test # bun test with coverage
|
|
210
|
+
bun run build # compile to standalone binary
|
|
211
|
+
bun run dev # watch mode
|
|
212
|
+
bun run check # lint + test (CI gate)
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Verification gate
|
|
216
|
+
|
|
217
|
+
All must pass before a change is considered done:
|
|
218
|
+
|
|
219
|
+
1. `bun run lint` — Biome and typecheck clean.
|
|
220
|
+
2. `bun run test` — all tests pass, no `.skip` or commented-out tests. Coverage ≥ 90% lines + functions.
|
|
221
|
+
3. `bun run build` — standalone binary compiles.
|
|
222
|
+
4. `git status` — only intentional changes.
|
|
223
|
+
|
|
224
|
+
### Code style
|
|
225
|
+
|
|
226
|
+
Enforced by [biome.json](biome.json):
|
|
227
|
+
|
|
228
|
+
- 4-space indent, 120-char line width
|
|
229
|
+
- Single quotes, semicolons always, trailing commas everywhere
|
|
230
|
+
- `interface` for object shapes, `type` for unions/intersections
|
|
231
|
+
- `any` is an error — narrow the type or justify with `// biome-ignore`
|
|
232
|
+
- Workspace imports use `@<scope>/*` aliases, never deep relative paths
|
|
233
|
+
|
|
234
|
+
### Commits
|
|
235
|
+
|
|
236
|
+
[Conventional Commits](https://www.conventionalcommits.org/) enforced by cocogitto: `feat:`, `fix:`, `docs:`, `chore:`, etc.
|
|
237
|
+
|
|
238
|
+
## Documentation
|
|
239
|
+
|
|
240
|
+
| Doc | Covers |
|
|
241
|
+
|-----|--------|
|
|
242
|
+
| [00_ADR](docs/00_ADR.md) | Architecture decisions (authoritative) |
|
|
243
|
+
| [01_PRD](docs/01_PRD.md) | Product scope (authoritative) |
|
|
244
|
+
| [02_ROADMAP](docs/02_ROADMAP.md) | Phase sequencing |
|
|
245
|
+
| [03_ARCHITECTURE](docs/03_ARCHITECTURE.md) | Module boundaries, data flow, invariants |
|
|
246
|
+
| [04_DESIGN](docs/04_DESIGN.md) | CLI surface — commands, flags, schemas |
|
|
247
|
+
| [05_FEATURES](docs/05_FEATURES.md) | Feature status tracker |
|
|
248
|
+
| [99_PROJECT_CONSTITUTION](docs/99_PROJECT_CONSTITUTION.md) | Process rules for maintaining docs |
|
|
249
|
+
|
|
250
|
+
## License
|
|
251
|
+
|
|
252
|
+
[Apache 2.0](LICENSE)
|
|
253
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobing-ai/superskill",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "A manager for multi-agent skill, slash command, subagent, hook, MCP and etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"start": "bun run src/index.ts",
|
|
33
|
-
"build": "bun build src/index.ts --outfile ../../dist/cli/index.js --target bun && bun run ../../scripts/
|
|
34
|
-
"prepublishOnly": "bun run build && mkdir -p dist && cp ../../dist/cli/index.js dist/index.js",
|
|
33
|
+
"build": "bun build src/index.ts --outfile ../../dist/cli/index.js --target bun && bun run ../../scripts/builder.ts postbuild ../../dist/cli/index.js",
|
|
34
|
+
"prepublishOnly": "bun run build && mkdir -p dist && cp ../../dist/cli/index.js dist/index.js && cp ../../README.md README.md && rm -rf templates && cp -r src/templates templates",
|
|
35
35
|
"test": "NODE_ENV=test bun test --reporter=dots",
|
|
36
36
|
"typecheck": "tsc --noEmit"
|
|
37
37
|
},
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: <!-- NAME -->
|
|
3
|
+
description: <!-- DESCRIPTION -->
|
|
4
|
+
platforms:
|
|
5
|
+
- claude
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## IDENTITY
|
|
9
|
+
|
|
10
|
+
<!-- TODO: who the agent is at a glance -->
|
|
11
|
+
|
|
12
|
+
## SOUL
|
|
13
|
+
|
|
14
|
+
<!-- TODO: tone contract, communication examples, decision-making style -->
|
|
15
|
+
|
|
16
|
+
## AGENTS
|
|
17
|
+
|
|
18
|
+
<!-- TODO: operations: routing, tools, workflow, safety, verification -->
|
|
19
|
+
|
|
20
|
+
## USER
|
|
21
|
+
|
|
22
|
+
<!-- TODO: operator profile and preferences -->
|