Install
Install with PiG
pig install npm:pi-better-skill-promptInstall with Pi
pi install npm:pi-better-skill-promptPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./src/index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.2.0 (README.md). PiG does not review it.
pi-better-skill-prompt
A leaner skill prompt for Pi. Replaces nested XML skill entries with a Markdown table and adds load_skill for on-demand loading.
- Compact catalog: a table of skill names and descriptions, with one loading hint.
- Progressive disclosure: the model gets skill paths only when it loads a skill.
- No repeated metadata: loading returns the skill directory and full body, without frontmatter containing the name and description.
Install
pi install npm:pi-better-skill-prompt
Run /reload in an existing session. Requires Pi 1.5.0 or later. Tested with Pi 1.5.0.
How it works
Before (Pi default):
<skills>
The following skills provide specialized instructions for specific tasks.
Use the read tool to load a skill's file when the task matches its description.
Resolve relative paths against the skill's directory (parent of SKILL.md). Use absolute paths in tool calls.
<available_skills>
<skill>
<name>code-review</name>
<description>Review changes for correctness.</description>
<location>/path/to/skills/code-review/SKILL.md</location>
</skill>
</available_skills>
</skills>
After:
<available_skills>
Load a skill by name with `load_skill` when its description matches the task.
|name|description|
|---|---|
|code-review|Review changes for correctness.|
</available_skills>
It calls load_skill with {"name":"code-review"} to get the skill directory and instructions. Each call reads the current file in full. The TUI shows a collapsible [skill] code-review card.
Codemode works too, including only mode:
return await tools.load_skill({ name: "code-review" });
Manual /skill:name commands keep Pi's normal behavior. Skills marked disable-model-invocation remain manual-only. Disabling load_skill restores Pi's default catalog.
Extensions that replace the entire system prompt can override this catalog.