@gobing-ai/superskill 0.1.7 → 0.2.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.
- package/README.md +2 -3
- package/dist/index.js +1080 -321
- package/package.json +1 -1
- package/rubrics/command.yaml +12 -12
- package/rubrics/hook.yaml +28 -24
- package/rubrics/magent.yaml +7 -6
- package/templates/agent/default.md +27 -2
- package/templates/agent/minimal.md +10 -0
- package/templates/agent/specialist.md +47 -0
- package/templates/agent/standard.md +35 -0
- package/templates/command/default.md +27 -5
- package/templates/command/plugin.md +53 -0
- package/templates/command/simple.md +47 -0
- package/templates/command/workflow.md +51 -0
- package/templates/magent/default.md +53 -10
- package/templates/skill/default.md +63 -1
- package/templates/skill/pattern.md +95 -0
- package/templates/skill/reference.md +102 -0
- package/templates/skill/technique.md +107 -0
- package/templates/hook/default.md +0 -8
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: <!-- NAME -->
|
|
3
|
+
description: <!-- DESCRIPTION -->
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
metadata:
|
|
6
|
+
author: "[author]"
|
|
7
|
+
version: "1.0"
|
|
8
|
+
platforms: "claude-code,codex,openclaw,opencode,antigravity"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# <!-- NAME -->
|
|
12
|
+
|
|
13
|
+
<!-- DESCRIPTION -->
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
This skill teaches a design pattern for solving a recurring class of problems. It provides decision criteria, core principles, and trade-off analysis — not a step-by-step procedure.
|
|
18
|
+
|
|
19
|
+
## When to use this pattern
|
|
20
|
+
|
|
21
|
+
Use this pattern when you need to:
|
|
22
|
+
|
|
23
|
+
- Make an architectural or design decision between competing approaches
|
|
24
|
+
- Evaluate trade-offs along multiple dimensions (complexity, scalability, blast radius)
|
|
25
|
+
- Apply a proven mental model to a new problem that fits the pattern shape
|
|
26
|
+
- Cross-check a proposed solution against known anti-patterns
|
|
27
|
+
- Document the reasoning behind a design choice for future reference
|
|
28
|
+
|
|
29
|
+
## When NOT to use this pattern
|
|
30
|
+
|
|
31
|
+
Avoid this pattern when:
|
|
32
|
+
|
|
33
|
+
- A single obvious solution exists — applying a decision framework adds overhead
|
|
34
|
+
- The problem is unique enough that no proven pattern applies
|
|
35
|
+
|
|
36
|
+
## Core principles
|
|
37
|
+
|
|
38
|
+
### Principle 1: Favor simplicity
|
|
39
|
+
|
|
40
|
+
Prefer the simplest solution that meets the requirements. Never add abstraction for a single use case — three similar lines beat a premature abstraction.
|
|
41
|
+
|
|
42
|
+
### Principle 2: Verify before asserting
|
|
43
|
+
|
|
44
|
+
Every claim about behavior, performance, or compatibility must be grounded in evidence. Cite the source — docs, tests, or command output.
|
|
45
|
+
|
|
46
|
+
### Principle 3: Match conventions
|
|
47
|
+
|
|
48
|
+
Conformance beats personal taste inside an existing codebase. If a convention seems actively harmful, surface it as a question — do not silently diverge.
|
|
49
|
+
|
|
50
|
+
## Implementation guide
|
|
51
|
+
|
|
52
|
+
### Step 1: Identify the problem shape
|
|
53
|
+
|
|
54
|
+
Confirm the problem matches this pattern's trigger conditions. If it doesn't, consider an alternative pattern.
|
|
55
|
+
|
|
56
|
+
### Step 2: Evaluate trade-offs
|
|
57
|
+
|
|
58
|
+
Assess the approach against the dimensions below. Document the reasoning.
|
|
59
|
+
|
|
60
|
+
### Step 3: Validate the decision
|
|
61
|
+
|
|
62
|
+
Cross-check the decision against project conventions, existing patterns, and acceptance criteria. Cite evidence.
|
|
63
|
+
|
|
64
|
+
## Trade-offs
|
|
65
|
+
|
|
66
|
+
| Aspect | Pros | Cons |
|
|
67
|
+
|--------|------|------|
|
|
68
|
+
| Simplicity | Easy to understand and maintain | May not cover edge cases |
|
|
69
|
+
| Flexibility | Adapts to varying requirements | Adds complexity when over-applied |
|
|
70
|
+
| Consistency | Aligns with proven practice | May not fit novel problems |
|
|
71
|
+
|
|
72
|
+
## Behavior
|
|
73
|
+
|
|
74
|
+
This skill acts as a **pattern**: a decision framework and mental model. When invoked, it guides the agent through evaluating trade-offs and selecting an approach — it does not execute code directly.
|
|
75
|
+
|
|
76
|
+
## Gotchas
|
|
77
|
+
|
|
78
|
+
1. **Don't apply blindly**: Always verify the problem matches the pattern's trigger conditions before applying it. Forcing a pattern onto a mismatched problem creates unnecessary complexity.
|
|
79
|
+
2. **Don't skip trade-off analysis**: The value of a pattern is in the explicit trade-off evaluation. Skipping straight to a solution loses the reasoning that makes the pattern reusable.
|
|
80
|
+
3. **Don't ignore conventions**: A pattern that contradicts project conventions must be surfaced, not silently applied. Conformance beats theoretical purity.
|
|
81
|
+
|
|
82
|
+
## Platform Notes
|
|
83
|
+
|
|
84
|
+
### Claude Code
|
|
85
|
+
|
|
86
|
+
Use `$ARGUMENTS` for parameter references. Use `Skill()` for skill delegation.
|
|
87
|
+
|
|
88
|
+
### Codex / OpenClaw / OpenCode / Antigravity
|
|
89
|
+
|
|
90
|
+
Run commands via Bash tool. Arguments provided in chat.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
**Template type**: pattern
|
|
95
|
+
**Purpose**: Decision frameworks and mental models for design decisions
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: <!-- NAME -->
|
|
3
|
+
description: <!-- DESCRIPTION -->
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
metadata:
|
|
6
|
+
author: "[author]"
|
|
7
|
+
version: "1.0"
|
|
8
|
+
platforms: "claude-code,codex,openclaw,opencode,antigravity"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# <!-- NAME -->
|
|
12
|
+
|
|
13
|
+
<!-- DESCRIPTION -->
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
This skill provides a reference lookup for API details, configuration keys, command flags, and technical specifications. Use it to verify facts before generating code or making claims.
|
|
18
|
+
|
|
19
|
+
## When to use
|
|
20
|
+
|
|
21
|
+
Use this skill when you need to:
|
|
22
|
+
|
|
23
|
+
- Look up an API signature, flag, or configuration key before using it
|
|
24
|
+
- Verify version-specific behavior of a library or tool
|
|
25
|
+
- Cross-check a claim against authoritative documentation
|
|
26
|
+
- Find the correct syntax for a command or configuration
|
|
27
|
+
- Validate that a field, option, or path exists before referencing it
|
|
28
|
+
|
|
29
|
+
## Quick reference
|
|
30
|
+
|
|
31
|
+
| Category | Item | Description |
|
|
32
|
+
|----------|------|-------------|
|
|
33
|
+
| Commands | `scaffold <name>` | Create new content from a template |
|
|
34
|
+
| Commands | `evaluate <name>` | Score content quality (0.0–1.0) |
|
|
35
|
+
| Commands | `validate <name>` | Structural + schema validation |
|
|
36
|
+
| Flags | `--template <tier>` | Select a template tier |
|
|
37
|
+
| Flags | `--target <agent>` | Target agent platform |
|
|
38
|
+
| Flags | `--force` | Overwrite existing files |
|
|
39
|
+
| Flags | `--json` | Machine-readable output |
|
|
40
|
+
|
|
41
|
+
## Detailed reference
|
|
42
|
+
|
|
43
|
+
### Commands
|
|
44
|
+
|
|
45
|
+
#### scaffold
|
|
46
|
+
|
|
47
|
+
Creates a new content file from a resolved template. For the skill type, writes `<name>/SKILL.md` inside a directory; all other types write flat `<name>.md`.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
superskill skill scaffold my-skill --description "A test skill"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
#### evaluate
|
|
54
|
+
|
|
55
|
+
Scores content quality across 5 dimensions: completeness, clarity, trigger-accuracy, anti-hallucination, and conciseness. Returns an aggregate score (0.0–1.0) with per-dimension findings.
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
superskill skill evaluate my-skill
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
#### validate
|
|
62
|
+
|
|
63
|
+
Structural and schema validation. Checks frontmatter fields, body structure, link integrity, and format compliance. Use `--strict` for all optional checks.
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
superskill skill validate my-skill --strict
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Template tiers
|
|
70
|
+
|
|
71
|
+
| Tier | Purpose | Body shape |
|
|
72
|
+
|------|---------|------------|
|
|
73
|
+
| `technique` | Step-by-step workflows | Workflow + steps + verification |
|
|
74
|
+
| `pattern` | Decision frameworks | Trade-offs + principles + when-to-use |
|
|
75
|
+
| `reference` | Lookup tables | Quick-reference + detailed docs |
|
|
76
|
+
|
|
77
|
+
A freshly scaffolded skill PASSes the project's own evaluator out of the box.
|
|
78
|
+
|
|
79
|
+
## Behavior
|
|
80
|
+
|
|
81
|
+
This skill acts as a **reference**: a lookup table and documentation source. When invoked, it provides authoritative information — it does not execute workflows or make decisions. Always cite this reference when answering factual questions about the system.
|
|
82
|
+
|
|
83
|
+
## Gotchas
|
|
84
|
+
|
|
85
|
+
1. **Don't guess API behavior**: Always verify against this reference before claiming how a command or flag behaves. Version-specific behavior must be cited with the version.
|
|
86
|
+
2. **Don't confuse template tiers**: Each tier produces a different body structure. Choose the tier that matches the skill's purpose — technique for workflows, pattern for decisions, reference for lookups.
|
|
87
|
+
3. **Don't skip the quick-reference table**: The table is the fastest path to an answer. If the item isn't in the table, check the detailed reference section before concluding it doesn't exist.
|
|
88
|
+
|
|
89
|
+
## Platform Notes
|
|
90
|
+
|
|
91
|
+
### Claude Code
|
|
92
|
+
|
|
93
|
+
Use `$ARGUMENTS` for parameter references. Use `Skill()` for skill delegation.
|
|
94
|
+
|
|
95
|
+
### Codex / OpenClaw / OpenCode / Antigravity
|
|
96
|
+
|
|
97
|
+
Run commands via Bash tool. Arguments provided in chat.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
**Template type**: reference
|
|
102
|
+
**Purpose**: Lookup tables and documentation for quick factual reference
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: <!-- NAME -->
|
|
3
|
+
description: <!-- DESCRIPTION -->
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
metadata:
|
|
6
|
+
author: "[author]"
|
|
7
|
+
version: "1.0"
|
|
8
|
+
platforms: "claude-code,codex,openclaw,opencode,antigravity"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# <!-- NAME -->
|
|
12
|
+
|
|
13
|
+
<!-- DESCRIPTION -->
|
|
14
|
+
|
|
15
|
+
## When to use
|
|
16
|
+
|
|
17
|
+
Use this skill when you need to:
|
|
18
|
+
|
|
19
|
+
- Execute a multi-step workflow that must produce a verified, reproducible output
|
|
20
|
+
- Apply a project-specific procedure that should never be re-derived from scratch
|
|
21
|
+
- Validate work against acceptance criteria before reporting completion
|
|
22
|
+
- Cross-check intermediate results against authoritative documentation
|
|
23
|
+
- Ensure deterministic steps across sessions, agents, and CI runs
|
|
24
|
+
|
|
25
|
+
## Workflow
|
|
26
|
+
|
|
27
|
+
Follow these steps to complete the workflow. Each step must be verified before proceeding to the next.
|
|
28
|
+
|
|
29
|
+
### Step 1: Gather context
|
|
30
|
+
|
|
31
|
+
Read the relevant files, configuration, and reference material. Never assume structure — verify paths exist before acting.
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# Example: inspect the target before modifying
|
|
35
|
+
ls -la <target>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Step 2: Plan the change
|
|
39
|
+
|
|
40
|
+
Identify the files to read and modify, dependencies, and edge cases. State assumptions explicitly.
|
|
41
|
+
|
|
42
|
+
### Step 3: Execute the change
|
|
43
|
+
|
|
44
|
+
Apply the change with surgical precision. Touch only what the task requires — no drive-by refactors.
|
|
45
|
+
|
|
46
|
+
### Step 4: Verify the result
|
|
47
|
+
|
|
48
|
+
Validate the output against the acceptance criteria. Cite the evidence (test output, command result, or document reference) before reporting done.
|
|
49
|
+
|
|
50
|
+
## Behavior
|
|
51
|
+
|
|
52
|
+
This skill acts as a **technique**: a step-by-step workflow with concrete instructions. When invoked, it executes the workflow end-to-end, verifying each step before proceeding.
|
|
53
|
+
|
|
54
|
+
**Key invariants:**
|
|
55
|
+
|
|
56
|
+
- Always verify before claiming completion — never report done without evidence
|
|
57
|
+
- Cite sources for any external claim or API behavior
|
|
58
|
+
- Validate inputs at system boundaries; trust internal code
|
|
59
|
+
|
|
60
|
+
## Code Examples
|
|
61
|
+
|
|
62
|
+
### Basic Usage
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Example command showing basic usage
|
|
66
|
+
superskill <!-- NAME --> <target>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Advanced Usage
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# Example command with options
|
|
73
|
+
superskill <!-- NAME --> <target> --strict --json
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Gotchas
|
|
77
|
+
|
|
78
|
+
1. **Don't skip verification**: Reporting done without running the verification step is the most common failure mode. Always cite the test or command output.
|
|
79
|
+
2. **Don't assume file structure**: Verify paths exist before reading or writing. A missing file is a blocking error, not a silent skip.
|
|
80
|
+
3. **Don't drift from conventions**: Match existing project patterns. If a convention seems wrong, surface it — do not silently fork the style.
|
|
81
|
+
|
|
82
|
+
## Resources (optional)
|
|
83
|
+
|
|
84
|
+
Create only the resource directories this skill actually needs.
|
|
85
|
+
|
|
86
|
+
### scripts/
|
|
87
|
+
|
|
88
|
+
Executable code (TypeScript/Bash) for tasks that require deterministic reliability.
|
|
89
|
+
|
|
90
|
+
### references/
|
|
91
|
+
|
|
92
|
+
Documentation intended to be loaded into context as needed.
|
|
93
|
+
|
|
94
|
+
## Platform Notes
|
|
95
|
+
|
|
96
|
+
### Claude Code
|
|
97
|
+
|
|
98
|
+
Use `$ARGUMENTS` for parameter references. Use `Skill()` for skill delegation.
|
|
99
|
+
|
|
100
|
+
### Codex / OpenClaw / OpenCode / Antigravity
|
|
101
|
+
|
|
102
|
+
Run commands via Bash tool. Arguments provided in chat.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
**Template type**: technique
|
|
107
|
+
**Purpose**: Step-by-step workflows with concrete instructions and verification gates
|