@gobing-ai/superskill 0.1.2 → 0.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobing-ai/superskill",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "A manager for multi-agent skill, slash command, subagent, hook, MCP and etc.",
5
5
  "keywords": [
6
6
  "cli",
@@ -23,6 +23,7 @@
23
23
  "files": [
24
24
  "dist/",
25
25
  "templates/",
26
+ "rubrics/",
26
27
  "README.md"
27
28
  ],
28
29
  "engines": {
@@ -30,15 +31,16 @@
30
31
  },
31
32
  "scripts": {
32
33
  "start": "bun run src/index.ts",
33
- "build": "bun build src/index.ts --outfile ../../dist/cli/index.js --target bun && bun run ../../scripts/postbuild.ts ../../dist/cli/index.js",
34
- "prepublishOnly": "bun run build && mkdir -p dist && cp ../../dist/cli/index.js dist/index.js",
34
+ "build": "bun build src/index.ts --outfile dist/index.js --target bun && bun run ../../scripts/builder.ts postbuild dist/index.js && rm -rf templates rubrics && cp -r src/templates templates && cp -r ../../packages/core/src/rubrics rubrics",
35
+ "prepublishOnly": "bun run build && cp ../../README.md README.md",
35
36
  "test": "NODE_ENV=test bun test --reporter=dots",
36
37
  "typecheck": "tsc --noEmit"
37
38
  },
38
39
  "dependencies": {
39
- "@gobing-ai/ts-ai-runner": "^0.3.19",
40
- "@gobing-ai/ts-db": "^0.3.19",
41
- "@gobing-ai/ts-utils": "^0.3.19",
40
+ "@gobing-ai/superskill-core": "workspace:*",
41
+ "@gobing-ai/ts-ai-runner": "^0.3.21",
42
+ "@gobing-ai/ts-db": "^0.3.21",
43
+ "@gobing-ai/ts-utils": "^0.3.21",
42
44
  "commander": "^14.0.0",
43
45
  "drizzle-orm": "^0.44.0",
44
46
  "drizzle-zod": "^0.7.0",
@@ -0,0 +1,52 @@
1
+ version: 1
2
+ type: agent
3
+ dimensions:
4
+ - name: completeness
5
+ weight: 0.20
6
+ criterion: >
7
+ Does the agent cover its stated scope end-to-end? Penalize missing workflow
8
+ phases, undocumented edge cases, and gaps between the stated trigger and
9
+ the actual execution path.
10
+ anchors:
11
+ excellent: "Full workflow from intake to delivery; every phase has explicit steps and exit conditions."
12
+ poor: "Scope claims coverage but execution path skips phases or leaves edge cases unhandled."
13
+
14
+ - name: role-clarity
15
+ weight: 0.25
16
+ criterion: >
17
+ Does the body define a specific, non-generic persona with a clear scope?
18
+ Penalize "helpful assistant" framing and vague responsibilities. The role
19
+ name must convey expertise and boundary, not just willingness to help.
20
+ anchors:
21
+ excellent: "Named specialist with explicit expertise boundary, e.g. 'SECU security reviewer for auth flows'."
22
+ poor: "Generic 'helpful assistant that assists with tasks' — no specialization, no boundary."
23
+
24
+ - name: tool-selection
25
+ weight: 0.20
26
+ criterion: >
27
+ Are tool choices appropriate and justified? Each tool reference should
28
+ match the task's needs; penalize missing tools that the workflow requires
29
+ or tools listed but never invoked in the execution path.
30
+ anchors:
31
+ excellent: "Every tool is matched to a specific step; no missing or orphaned tool references."
32
+ poor: "Tools listed generically or mismatched to the workflow's actual needs."
33
+
34
+ - name: skill-linkage
35
+ weight: 0.20
36
+ criterion: >
37
+ Does the agent link to the right skills at the right time? Skill
38
+ references should appear where the workflow delegates, not as a bulk
39
+ list. Penalize skills referenced but never reached in execution.
40
+ anchors:
41
+ excellent: "Skills are linked at the exact delegation point in the workflow; each link is reachable."
42
+ poor: "Skills listed in a block with no workflow context on when to invoke each."
43
+
44
+ - name: model-fit
45
+ weight: 0.15
46
+ criterion: >
47
+ Is the recommended model tier appropriate for the agent's cognitive
48
+ load? A routing/lookup agent should not mandate a slow model; a deep
49
+ reasoning agent should not default to a fast model.
50
+ anchors:
51
+ excellent: "Model tier matches cognitive demand; routing uses fast, synthesis uses slow, with rationale."
52
+ poor: "Single model tier with no justification, or mismatched to the task's reasoning depth."
@@ -0,0 +1,52 @@
1
+ version: 1
2
+ type: command
3
+ dimensions:
4
+ - name: completeness
5
+ weight: 0.25
6
+ criterion: >
7
+ Does the command cover its stated function end-to-end? Penalize missing
8
+ argument validation, undocumented flags, and incomplete output. A
9
+ complete command handles the happy path and the documented error paths.
10
+ anchors:
11
+ excellent: "All arguments validated, all flags documented, output covers success and error paths."
12
+ poor: "Happy path only; argument validation and error paths undocumented."
13
+
14
+ - name: clarity
15
+ weight: 0.25
16
+ criterion: >
17
+ Is the command's purpose and usage unambiguous? The description should
18
+ tell the user what it does and when to use it. Penalize descriptions
19
+ that restate the command name without adding information.
20
+ anchors:
21
+ excellent: "Description states what the command does, when to use it, and what the output means."
22
+ poor: "Description restates the command name; user cannot tell when to use it."
23
+
24
+ - name: argument-hints
25
+ weight: 0.20
26
+ criterion: >
27
+ Are argument hints present and accurate? Each argument should have a
28
+ hint that helps the user supply the right value. Penalize missing hints,
29
+ hints that restate the argument name, and hints that mislead.
30
+ anchors:
31
+ excellent: "Every argument has a hint that guides the user to the correct value."
32
+ poor: "Hints missing, or restate the argument name without guidance."
33
+
34
+ - name: tool-references
35
+ weight: 0.15
36
+ criterion: >
37
+ Are tool references (if any) correct and reachable? Penalize commands
38
+ that reference tools the CLI does not expose, or tools that are exposed
39
+ but never documented in the command's usage.
40
+ anchors:
41
+ excellent: "Tool references match exposed CLI verbs; no orphaned or undocumented references."
42
+ poor: "Tool references are stale, orphaned, or undocumented."
43
+
44
+ - name: slash-syntax
45
+ weight: 0.15
46
+ criterion: >
47
+ Is the slash command syntax correct and consistent? Penalize syntax
48
+ that diverges from the platform convention, inconsistent argument
49
+ ordering, and missing required markers.
50
+ anchors:
51
+ excellent: "Syntax follows platform convention; argument ordering is consistent across sibling commands."
52
+ poor: "Syntax diverges from convention or is inconsistent with sibling commands."
@@ -0,0 +1,42 @@
1
+ version: 1
2
+ type: hook
3
+ dimensions:
4
+ - name: correctness
5
+ weight: 0.30
6
+ criterion: >
7
+ Does the hook's logic produce the intended effect? Penalize hooks that
8
+ fire on the wrong event, mutate state the spec says they shouldn't, or
9
+ exit with the wrong code on a documented path.
10
+ anchors:
11
+ excellent: "Logic matches the spec on every documented path; correct event, mutation, and exit code."
12
+ poor: "Logic diverges from spec on at least one documented path."
13
+
14
+ - name: event-coverage
15
+ weight: 0.30
16
+ criterion: >
17
+ Does the hook handle all events it claims to? Penalize hooks that
18
+ register for an event but silently no-op on it, or that miss an event
19
+ the spec requires. Coverage means the hook acts on every registered event.
20
+ anchors:
21
+ excellent: "Every registered event has a real handler; no silent no-ops; no missing required events."
22
+ poor: "Registered events include silent no-ops, or required events are missing."
23
+
24
+ - name: safety
25
+ weight: 0.25
26
+ criterion: >
27
+ Does the hook avoid destructive side effects? Penalize hooks that
28
+ force-push, delete without confirmation, bypass gates, or modify files
29
+ outside their stated scope. Safety is about blast radius, not just correctness.
30
+ anchors:
31
+ excellent: "No destructive side effect without an explicit guard; blast radius matches stated scope."
32
+ poor: "Destructive side effects (force-push, delete, bypass) without guards."
33
+
34
+ - name: pattern-match-quality
35
+ weight: 0.15
36
+ criterion: >
37
+ Are the matchers precise? Penalize matchers that over-match (fire on
38
+ unrelated commands) or under-match (miss the intended case). A precise
39
+ matcher fires on exactly the intended inputs.
40
+ anchors:
41
+ excellent: "Matchers fire on exactly the intended inputs; no over- or under-matching."
42
+ poor: "Matchers over-match (fire on unrelated commands) or under-match (miss intended case)."
@@ -0,0 +1,52 @@
1
+ version: 1
2
+ type: magent
3
+ dimensions:
4
+ - name: completeness
5
+ weight: 0.25
6
+ criterion: >
7
+ Does the main-agent config cover its stated scope end-to-end? Penalize
8
+ missing routing rules, undocumented fallbacks, and gaps between the
9
+ stated trigger and the actual execution path.
10
+ anchors:
11
+ excellent: "Routing, fallbacks, and execution path are fully explicit; no implicit steps."
12
+ poor: "Scope claims coverage but routing or fallbacks are implicit."
13
+
14
+ - name: platform-coverage
15
+ weight: 0.25
16
+ criterion: >
17
+ Does the config address all platforms it claims to support? Penalize
18
+ platforms listed in scope but with no corresponding rules, and rules
19
+ that reference capabilities a listed platform lacks.
20
+ anchors:
21
+ excellent: "Every listed platform has corresponding rules; rules respect each platform's capabilities."
22
+ poor: "Platforms listed without rules, or rules reference capabilities a platform lacks."
23
+
24
+ - name: conciseness
25
+ weight: 0.15
26
+ criterion: >
27
+ Is the config as short as possible while remaining complete? Penalize
28
+ redundant rule restating, boilerplate that adds no information, and
29
+ rules that could be merged without loss.
30
+ anchors:
31
+ excellent: "Minimal length with no redundancy; every rule carries unique information."
32
+ poor: "Redundant rules and boilerplate; rules could be merged without loss."
33
+
34
+ - name: tone-consistency
35
+ weight: 0.20
36
+ criterion: >
37
+ Is the agent's tone consistent across the config? Penalize mixed
38
+ registers (formal header + casual body), inconsistent second/third
39
+ person, and persona drift between sections.
40
+ anchors:
41
+ excellent: "Single register and person throughout; persona is stable across all sections."
42
+ poor: "Mixed registers, inconsistent person, or persona drift between sections."
43
+
44
+ - name: safety
45
+ weight: 0.15
46
+ criterion: >
47
+ Does the config avoid dangerous defaults? Penalize configs that grant
48
+ blanket permissions, disable safety gates by default, or route
49
+ destructive actions without an explicit guard.
50
+ anchors:
51
+ excellent: "Least-privilege defaults; safety gates enabled; destructive actions guarded."
52
+ poor: "Blanket permissions or disabled safety gates without justification."
@@ -0,0 +1,53 @@
1
+ version: 1
2
+ type: skill
3
+ dimensions:
4
+ - name: completeness
5
+ weight: 0.25
6
+ criterion: >
7
+ Does the skill cover its stated purpose end-to-end? Penalize missing
8
+ steps, undocumented preconditions, and gaps between the trigger and the
9
+ delivered outcome. A complete skill leaves no implicit step.
10
+ anchors:
11
+ excellent: "Every phase from trigger to outcome is explicit; preconditions and exit conditions stated."
12
+ poor: "Purpose claims coverage but steps are implicit or preconditions unstated."
13
+
14
+ - name: clarity
15
+ weight: 0.25
16
+ criterion: >
17
+ Is the skill's instruction unambiguous to a fresh agent? Penalize
18
+ vague verbs ('handle', 'process'), undefined terms, and instructions
19
+ that require external context the skill does not provide.
20
+ anchors:
21
+ excellent: "Concrete verbs, defined terms, self-contained instructions an agent can execute without guessing."
22
+ poor: "Vague verbs and undefined terms; agent must guess the intended behavior."
23
+
24
+ - name: trigger-accuracy
25
+ weight: 0.20
26
+ criterion: >
27
+ Does the skill fire on the right inputs and not on adjacent ones? The
28
+ description must precisely scope when the skill activates. Penalize
29
+ triggers that are too broad (fires on unrelated requests) or too narrow
30
+ (misses the intended case).
31
+ anchors:
32
+ excellent: "Trigger description scopes activation precisely; no overlap with adjacent skills."
33
+ poor: "Trigger is broad enough to fire on unrelated requests or narrow enough to miss the intended case."
34
+
35
+ - name: anti-hallucination
36
+ weight: 0.15
37
+ criterion: >
38
+ Does the skill prevent fabrication? Penalize instructions that invite
39
+ guessing (e.g. 'infer the answer'), missing verification gates, and
40
+ absence of source-grounding requirements where facts are involved.
41
+ anchors:
42
+ excellent: "Explicit verification gates and source-grounding; no instruction invites guessing."
43
+ poor: "Instructions invite inference without verification; no grounding requirement."
44
+
45
+ - name: conciseness
46
+ weight: 0.15
47
+ criterion: >
48
+ Is the skill as short as possible while remaining complete? Penalize
49
+ redundant restating, boilerplate that adds no information, and steps
50
+ that could be merged without loss.
51
+ anchors:
52
+ excellent: "Minimal length with no redundancy; every line carries unique information."
53
+ poor: "Redundant restating and boilerplate; steps could be merged without loss."
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: <!-- NAME -->
3
+ description: <!-- DESCRIPTION -->
4
+ tools: []
5
+ model: sonnet
6
+ ---
7
+
8
+ <!-- TODO: agent system prompt and configuration -->
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: <!-- NAME -->
3
+ description: <!-- DESCRIPTION -->
4
+ arguments: []
5
+ target: <!-- TARGET -->
6
+ ---
7
+
8
+ # <!-- NAME -->
9
+
10
+ ## Usage
11
+
12
+ ```text
13
+ /<!-- NAME -->
14
+ ```
15
+
16
+ <!-- TODO: command body -->
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: <!-- NAME -->
3
+ description: <!-- DESCRIPTION -->
4
+ event: PreToolUse
5
+ enabled: true
6
+ ---
7
+
8
+ <!-- TODO: hook script or matcher -->
@@ -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 -->
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: <!-- NAME -->
3
+ description: <!-- DESCRIPTION -->
4
+ ---
5
+
6
+ # <!-- NAME -->
7
+
8
+ <!-- TODO: skill body -->