← Catalog

@sreetej510/pi-prompt-manager

Pi extension to quickly save, manage, and paste reusable prompts without retyping.

ExtensionPrompt

Install

Install with PiG

pig install npm:@sreetej510/pi-prompt-manager

Install with Pi

pi install npm:@sreetej510/pi-prompt-manager
Review before installing

Packages 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": [
    "./dist/index.js"
  ]
}

README

Written by the package's publisher, shown as published in version 0.15.6 (README.md). PiG does not review it.

@sreetej510/pi-prompt-manager

A pi coding agent extension to quickly save, manage, and paste reusable prompts without retyping them.

Commands

CommandEffect
/promptOpen the prompt manager (select · edit · delete · add)
/prompt add [name]Create a new saved prompt directly (opens a multi-line editor)

Keyboard shortcuts (inside /prompt)

KeyAction
↑ / ↓ / j / kNavigate the list
EnterPaste the selected prompt into the editor
eEdit the selected prompt
dDelete the selected prompt (with confirmation)
aAdd a new prompt
EscClose without action

Storage

Saved prompts are stored as JSON at <pi-agent-dir>/prompt-manager.json:

{
  "prompts": [
    { "id": "...", "name": "...", "content": "...", "createdAt": 0, "updatedAt": 0 }
  ]
}

Install

npm install -g @sreetej510/pi-prompt-manager

Then add it to your pi settings.json:

{
  "packages": ["npm:@sreetej510/pi-prompt-manager"]
}

Or, for local development, point at the file directly:

{
  "extensions": ["/absolute/path/to/pi-extensions/extensions/pi-prompt-manager/src/index.ts"]
}

File layout

FileResponsibility
src/index.tsExtension entry point
src/command.ts/prompt command handler + add/edit/delete flow
src/component.tsList-manager TUI component
src/storage.tsprompt-manager.json load/save helpers
src/types.tsShared TypeScript types

Development

npm install
npm run --workspace @sreetej510/pi-prompt-manager check     # biome + typecheck
npm run --workspace @sreetej510/pi-prompt-manager format