@code-fixer-23/pi-agent-resource
This extension is useful for making agent skills, propmts and subagents
Package details
Install @code-fixer-23/pi-agent-resource from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@code-fixer-23/pi-agent-resource- Package
@code-fixer-23/pi-agent-resource- Version
1.0.0- Published
- Apr 30, 2026
- Downloads
- not available
- Author
- codebreaker10
- License
- ISC
- Types
- extension
- Size
- 57.3 KB
- Dependencies
- 4 dependencies · 0 peers
Pi manifest JSON
{
"extensions": [
"extensions",
"extensions/!*.test.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-agent-resource
A PI package that installs an extension for creating, editing, deleting, and listing:
- Global agents in
~/.pi/agent/agents/<name>.md - Project agents in
.pi/agents/<name>.mdwhen thelocal-agentflag is enabled - Skills in
~/.pi/agent/skills/<name>/SKILL.md - Local skills in
.pi/skills/<name>/SKILL.mdwhen thelocal-skillflag is enabled - Global prompts in
~/.pi/agent/prompts/*.md - Project prompts in
.pi/prompts/*.mdor grouped prompt directories when thelocal-promptflag is enabled
What it does
The extension provides an interactive wizard that keeps prompting for the information it needs until the resource is ready.
It supports:
- creating agents
- creating Agent Skills spec compliant skills
- creating ungrouped prompts
- creating grouped prompts with
_index.mdand subcommands - editing existing resources
- deleting existing resources
- listing current resources
Installed extension
The package exposes the extension from @extensions/resource-studio/index.ts.
Commands
/resource-studiomanage_project_resourcescustom tool
Scope flags
The extension now uses registered pi flags instead of inline command flags.
local-agent→ use project agents from.pi/agentslocal-skill→ use project skills from.pi/skillslocal-prompt→ use project prompts from.pi/promptsexternal-skill-editor→ use the external editor for skill edits
When a local scope flag is enabled, the command shows a notice before it creates, edits, or deletes the local resource.
Prompt behavior
When creating a prompt, the wizard asks whether the prompt should be:
ungrouped→.pi/prompts/<name>.mdgrouped→.pi/prompts/<group>/_index.mdwith one or more subcommands
Grouped prompts follow the _index.md + type: group layout used by grouped PI prompt sets.
Development mode
The repository uses a local .env file for development mode.
PI_RESOURCE_DEV=1
When that variable is set, the extension shows its development notice and uses the in-memory filesystem.
Tests
npm test