@xynogen/pix-skills 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +8 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-skills",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Pi extension — agent skill loader (skill tool + skills bundle)",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * pix-skills — skill loader extension
3
3
  *
4
- * Registers a `skill` tool that lets the agent load any bundled skill's
4
+ * Registers a `read_skills` tool that lets the agent load any bundled skill's
5
5
  * full SKILL.md (or flat .md) by name. This is the safe "agent prompts itself"
6
6
  * pattern: the agent calls the tool explicitly; no autonomous injection.
7
7
  *
@@ -108,16 +108,16 @@ const ParamsSchema = Type.Object({
108
108
 
109
109
  export default function registerSkillLoader(pi: ExtensionAPI): void {
110
110
  pi.registerTool({
111
- name: "skill",
112
- label: "Read Skill",
111
+ name: "read_skills",
112
+ label: "Read Skills",
113
113
  description:
114
114
  "Browse and load bundled skills. No args → list all skills with descriptions. name only → description for that skill. name + full=true → full instructions.",
115
115
  promptSnippet: "Browse and load bundled skill instructions",
116
116
  promptGuidelines: [
117
- "Call skill() with no arguments to list all available skills and their descriptions.",
118
- "Call skill(name=<skill>) to read the description of a specific skill before deciding to load it.",
119
- "Call skill(name=<skill>, full=true) to load the full procedure for a skill before executing it.",
120
- "Prefer skill() over the read tool for skills — it resolves the correct path regardless of install location.",
117
+ "Call read_skills() with no arguments to list all available skills and their descriptions.",
118
+ "Call read_skills(name=<skill>) to read the description of a specific skill before deciding to load it.",
119
+ "Call read_skills(name=<skill>, full=true) to load the full procedure for a skill before executing it.",
120
+ "Prefer read_skills() over the read tool for skills — it resolves the correct path regardless of install location.",
121
121
  ],
122
122
  executionMode: "sequential",
123
123
  parameters: ParamsSchema,
@@ -194,7 +194,7 @@ export default function registerSkillLoader(pi: ExtensionAPI): void {
194
194
  const { name, full } = args as { name?: string; full?: boolean };
195
195
  const label = name ? `${name}${full ? " (full)" : ""}` : "list";
196
196
  return new Text(
197
- `${theme.fg("toolTitle", theme.bold("skill"))} ${theme.fg("muted", label)}`,
197
+ `${theme.fg("toolTitle", theme.bold("read_skills"))} ${theme.fg("muted", label)}`,
198
198
  0,
199
199
  0,
200
200
  );