pi-better-skill-prompt 0.1.0 → 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 CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  A leaner skill prompt for [Pi](https://github.com/earendil-works/pi). Replaces nested XML skill entries with a Markdown table and adds `load_skill` for on-demand loading.
6
6
 
7
- - **Compact catalog:** only skill names and descriptions stay in the system prompt.
7
+ - **Compact catalog:** a table of skill names and descriptions, with one loading hint.
8
8
  - **Progressive disclosure:** the model gets skill paths only when it loads a skill.
9
9
  - **No repeated metadata:** loading returns the skill directory and full body, without frontmatter containing the name and description.
10
10
 
@@ -41,6 +41,8 @@ After:
41
41
  ```text
42
42
  <available_skills>
43
43
 
44
+ Load a skill by name with `load_skill` when its description matches the task.
45
+
44
46
  |name|description|
45
47
  |---|---|
46
48
  |code-review|Review changes for correctness.|
package/README.zh-CN.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  让 [Pi](https://github.com/earendil-works/pi) 的技能提示词更精简:用 Markdown 表格替代嵌套 XML 技能条目,通过 `load_skill` 按需加载。
6
6
 
7
- - **精简目录**:常驻提示词只保留技能名称和描述。
7
+ - **精简目录**:技能名称和描述组成表格,表格前只有一句加载提示。
8
8
  - **渐进式披露**:加载技能时才返回路径,不提前占用上下文。
9
9
  - **不重复元数据**:加载结果只有技能目录和完整正文,去掉包含名称、描述的 frontmatter。
10
10
 
@@ -41,6 +41,8 @@ Resolve relative paths against the skill's directory (parent of SKILL.md). Use a
41
41
  ```text
42
42
  <available_skills>
43
43
 
44
+ Load a skill by name with `load_skill` when its description matches the task.
45
+
44
46
  |name|description|
45
47
  |---|---|
46
48
  |code-review|Review changes for correctness.|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-better-skill-prompt",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A Markdown skill catalog with on-demand loading for Pi.",
5
5
  "type": "module",
6
6
  "keywords": [
package/src/catalog.ts CHANGED
@@ -7,5 +7,5 @@ function cell(text: string): string {
7
7
  /** Body of the `available_skills` prompt section; Pi wraps it in the section's tags. */
8
8
  export function renderCatalog(skills: readonly Skill[]): string {
9
9
  const rows = skills.map((skill) => `|${cell(skill.name)}|${cell(skill.description)}|`);
10
- return ["", "|name|description|", "|---|---|", ...rows, ""].join("\n");
10
+ return ["", "Load a skill by name with `load_skill` when its description matches the task.", "", "|name|description|", "|---|---|", ...rows, ""].join("\n");
11
11
  }