mod-claude

prompt-shelf

Save reusable prompts and put one into the composer as a draft.

Install

Paste into a Claude Code session in your terminal, one line at a time.

/plugin marketplace add whyashthakker/awesome-claude-code-mods
/plugin install prompt-shelf@awesome-claude-code-mods

Prompt Shelf

Save reusable prompts and put one into the composer as a draft.

Use it when: Reuse a review or debugging prompt without auto-submitting it.

Prompt Shelf render preview

Screenshot of this mod's render tree in the fixture preview, with sample data. This is not a capture of the Claude Code application. How previews are made.

Install and open

claude plugin marketplace add whyashthakker/awesome-claude-code-mods
claude plugin install prompt-shelf@awesome-claude-code-mods

Run /reload-plugins in an existing session, then /prompt-shelf. Use Tab and Enter to operate controls; Esc closes the pane. Terminal and Desktop Code tab supported; pane UI is unavailable in claude -p and the VS Code chat panel.

Try the source without installing:

claude --plugin-dir ./mods/prompt-shelf

Example: open /prompt-shelf and enter Review this patch for accessibility and edge cases in its input.

Access and behavior

Stores user-entered items in this plugin’s local store, partitioned by workspace path. Each item has a separate key. No file writes or network. Fills a draft in the composer on button press; does not submit a prompt.

Module variables reset on hot reload. Workspace collections persist in Claude Code's local plugin store and reload when reopened. Deleting an item removes only that item's store key. Collections show the latest 100 items; concurrent changes to the same item use last-write-wins behavior. All display output is bounded; viewers may truncate long content to 9,000 characters. Relative file paths and Git commands use the session working directory.

Verify

Tested with Claude Code 2.1.288. Minimum documented mods version: 2.1.287. The API can change; validate against your installed version.

claude plugin validate mods/prompt-shelf --strict
claude plugin test mods/prompt-shelf

Tests cover plugin commands, pane isolation, both UI surfaces, and the behavior described in tests/register.test.ts. Drawing tests validate element trees; they do not verify pixels painted by the native apps. Validation details.

MIT licensed. No runtime packages or build step required.