@cremini/skillpack 1.2.5 → 1.2.7

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": "@cremini/skillpack",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "Pack AI Skills into Local Agents",
5
5
  "type": "module",
6
6
  "repository": {
@@ -29,6 +29,7 @@
29
29
  "dev": "tsup --watch",
30
30
  "check": "tsc --noEmit",
31
31
  "format": "prettier --write .",
32
+ "prepare": "npm run build",
32
33
  "create": "tsup && node dist/cli.js create",
33
34
  "run": "tsup && node dist/cli.js run",
34
35
  "zip": "tsup && node dist/cli.js zip"
@@ -42,8 +43,10 @@
42
43
  "author": "CreminiAI",
43
44
  "license": "MIT",
44
45
  "dependencies": {
46
+ "@sinclair/typebox": "^0.34.41",
45
47
  "@mariozechner/pi-coding-agent": "^0.57.1",
46
48
  "@slack/bolt": "^4.6.0",
49
+ "ajv": "^8.17.1",
47
50
  "archiver": "^7.0.1",
48
51
  "chalk": "^5.6.2",
49
52
  "commander": "^14.0.3",
@@ -65,4 +68,4 @@
65
68
  "tsup": "^8.5.1",
66
69
  "typescript": "^5.9.3"
67
70
  }
68
- }
71
+ }
@@ -5,106 +5,55 @@ description: Create new skills, modify and improve existing skills, and measure
5
5
 
6
6
  # Skill Creator
7
7
 
8
- A skill for creating new skills and iteratively improving them inside this SkillPack.
9
-
10
- At a high level, the process of creating a skill goes like this:
11
-
12
- - Decide what the skill should do and when it should trigger.
13
- - Write a draft of the skill.
14
- - Create a few realistic test prompts.
15
- - Run the tests, review the results with the user, and improve the skill.
16
- - Repeat until the skill is good enough for the user's needs.
17
-
18
- Your job when using this skill is to figure out where the user is in this process and help them move forward without overcomplicating things.
19
-
20
- ## Communicating with the user
21
-
22
- Adjust your language to the user's level of familiarity. Avoid unnecessary jargon. Briefly explain terms like "frontmatter", "assertion", or "benchmark" if the user does not appear comfortable with them.
23
-
24
- If the user clearly wants a lightweight collaboration rather than a full evaluation loop, keep things simple and iterate directly with them.
8
+ Create new skills and iteratively improve them inside this SkillPack. Determine where the user is in the create → draft → test → improve cycle and help them move forward.
25
9
 
26
10
  ## Pack-specific rules
27
11
 
28
- This SkillPack uses a fixed project-level skills directory and config file:
29
-
30
- - Skills directory: `{{SKILLS_PATH}}`
31
- - SkillPack config: `{{PACK_CONFIG_PATH}}`
32
-
33
- These paths override any generic advice you may know from other environments.
34
-
35
- When creating or updating skills in this SkillPack:
36
-
37
- - Always place the skill under `{{SKILLS_PATH}}/<skill-name>/`.
38
- - Always write the main skill file to `{{SKILLS_PATH}}/<skill-name>/SKILL.md`.
39
- - Treat `skill-name` as the canonical directory name unless the user explicitly asks to preserve an existing directory layout.
40
- - Never create new skills inside the current workspace directory just because the active cwd is elsewhere.
12
+ All skills live under `{{SKILLS_PATH}}/<skill-name>/SKILL.md` and config is at `{{PACK_CONFIG_PATH}}`. These paths override any generic advice. Never create skills in the current workspace directory always use `{{SKILLS_PATH}}`.
41
13
 
42
14
  ## Creating a skill
43
15
 
44
16
  ### Capture intent
45
17
 
46
- Start by understanding the user's intent. The current conversation may already contain the workflow the user wants to capture. Extract answers from the conversation first, then fill the gaps with targeted questions.
47
-
48
- Confirm these points before writing the first draft:
18
+ Extract answers from the current conversation first, then fill gaps with targeted questions. Confirm before writing the first draft:
49
19
 
50
20
  1. What should this skill enable the model to do?
51
21
  2. When should this skill trigger?
52
22
  3. What output should it produce?
53
23
  4. Does the user want a lightweight draft, or a tested and iterated skill?
54
24
 
55
- ### Interview and research
56
-
57
- Ask about:
58
-
59
- - edge cases
60
- - input/output formats
61
- - example prompts or files
62
- - success criteria
63
- - dependencies or required tools
64
-
65
- Wait to write test prompts until these basics are clear enough.
25
+ Clarify edge cases, input/output formats, success criteria, and dependencies as needed before writing test prompts.
66
26
 
67
27
  ### Write the skill
68
28
 
69
- Create the skill directory at `{{SKILLS_PATH}}/<skill-name>/`.
70
-
71
- Create `SKILL.md` with YAML frontmatter. The frontmatter must include:
72
-
73
- - `name`
74
- - `description`
29
+ Create the skill at `{{SKILLS_PATH}}/<skill-name>/SKILL.md`. Example template:
75
30
 
76
- The `description` is the primary triggering mechanism. Make it concrete and slightly "pushy": include both what the skill does and the situations where it should be used.
31
+ ```yaml
32
+ ---
33
+ name: example-skill
34
+ description: "Analyze competitor pricing pages and generate a comparison matrix. Use when the user wants to benchmark pricing tiers, feature gaps, or positioning against specific competitors."
35
+ ---
77
36
 
78
- Keep the skill practical:
37
+ # Example Skill
79
38
 
80
- - Put "when to use" information in the `description`, not buried in the body.
81
- - Keep the body focused on the workflow, decisions, and output expectations.
82
- - If the skill needs deterministic helpers, place them under `scripts/`.
83
- - If the skill needs long reference material, place it under `references/` and tell the model when to read it.
39
+ ## Workflow
84
40
 
85
- ### Required save location
41
+ 1. Collect the target URLs from the user.
42
+ 2. Extract pricing tiers, features, and limits from each page.
43
+ 3. Generate a comparison matrix as a markdown table.
86
44
 
87
- For a newly created skill named `example-skill`, the target layout must be:
45
+ ## Output
88
46
 
89
- ```text
90
- {{SKILLS_PATH}}/example-skill/
91
- {{SKILLS_PATH}}/example-skill/SKILL.md
47
+ Return a markdown table with one column per competitor and one row per feature.
92
48
  ```
93
49
 
94
- If the user is improving an existing skill, preserve the existing skill name unless they explicitly request a rename.
95
-
96
- ### Update skillpack.json
50
+ The `description` is the primary triggering mechanism make it concrete with both what the skill does and when to use it. Keep the body focused on workflow, decisions, and output expectations. Place deterministic helpers under `scripts/` and long reference material under `references/`.
97
51
 
98
- After you create or update a skill, you must sync `{{PACK_CONFIG_PATH}}`.
52
+ Preserve the existing skill name when improving unless the user explicitly requests a rename.
99
53
 
100
- Do not guess the metadata from memory. Instead:
54
+ ### Sync skillpack.json
101
55
 
102
- 1. Read the final `SKILL.md`.
103
- 2. Parse the YAML frontmatter.
104
- 3. Extract:
105
- - `name`
106
- - `description`
107
- 4. Upsert an entry into the `skills` array in `{{PACK_CONFIG_PATH}}`:
56
+ After creating or updating a skill, sync `{{PACK_CONFIG_PATH}}`. Read the final `SKILL.md`, parse the YAML frontmatter, and upsert into the `skills` array:
108
57
 
109
58
  ```json
110
59
  {
@@ -114,40 +63,17 @@ Do not guess the metadata from memory. Instead:
114
63
  }
115
64
  ```
116
65
 
117
- Rules for this update:
118
-
119
- - `name` must come from `frontmatter.name`.
120
- - `description` must come from `frontmatter.description`.
121
- - `source` must be `./skills/<frontmatter.name>`.
122
- - If an entry for the same skill already exists, update it instead of creating a duplicate.
66
+ All three fields must come from frontmatter — do not guess from memory. Update existing entries instead of creating duplicates.
123
67
 
124
68
  ### Writing guide
125
69
 
126
- Prefer imperative, clear instructions. Explain why important constraints exist. Avoid overly rigid language unless strict behavior is actually required.
127
-
128
- Useful structure:
129
-
130
- - purpose
131
- - trigger guidance
132
- - required inputs
133
- - step-by-step workflow
134
- - output format
135
- - edge cases
136
-
137
- If the skill supports multiple domains or frameworks, organize the references by variant and tell the model how to choose the right one.
70
+ Prefer imperative instructions. Structure skills as: purpose, trigger guidance, required inputs, step-by-step workflow, output format, edge cases. For multi-domain skills, organize references by variant and tell the model how to choose.
138
71
 
139
72
  ## Test and iterate
140
73
 
141
- After drafting the skill, propose 2-3 realistic test prompts. The prompts should sound like something a real user would actually say.
142
-
143
- If the user wants evaluation:
144
-
145
- - run the test prompts with the skill
146
- - compare the outputs against the user's expectations
147
- - note what worked and what failed
148
- - revise the skill
74
+ After drafting the skill, propose 23 realistic test prompts phrased as a real user would.
149
75
 
150
- If the user does not want a heavy evaluation loop, do at least a lightweight sanity check before calling the skill complete.
76
+ If the user wants evaluation, run the prompts, compare outputs against expectations, note failures, and revise. Otherwise, do at least a lightweight sanity check before calling the skill complete.
151
77
 
152
78
  ## Improving an existing skill
153
79