quangdang46

Prompt Storage — AI skill for Claude Code

AI community

pst — local-first personal prompt library CLI.

How to install Prompt Storage

This entry records only its repository, not the path inside it, so there is no exact command to give. Open quangdang46/prompt_storage and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Prompt Storage does

pst — local-first personal prompt library CLI. SQLite+FTS5, instant retrieval (pst code-review), variable templating, aliases, TUI picker, JSONL backup, and a one-command integration skill for AI coding agents. Fast (<30ms), offline, agent-native.

Alternatives in AI

  • Hindsight — State-of-the-art long-term memory for AI agents by Vectorize 6.7k ★
  • Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★
  • RAG Skill — A Skill dedicated to local knowledge base retrieval 712 ★

README

pst — Prompt STorage

pst — your personal prompt library, one command away

![Platform](https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20Windows-blue.svg) ![Rust](https://img.shields.io/badge/Rust-stable-orange.svg) ![License](https://img.shields.io/badge/License-MIT-blue.svg) ![Release](https://img.shields.io/github/v/release/quangdang46/prompt_storage?include_prereleases)

**Your prompts, one command away.** `pst` is a local-first prompt library stored in SQLite with full-text search, variable templating, and a bridge that teaches AI coding agents how to use it. Type `pst code-review` and the prompt lands on stdout instantly — as natural as `cat`-ing a file.

curl -fsSL "https://raw.githubusercontent.com/quangdang46/prompt_storage/main/install.sh?$(date +%s)" \
  | bash -s -- --easy-mode

🤖 Agent Quickstart (Robot Mode)

`pst` is designed agent-first: direct mode prints **raw prompt content on stdout** with zero decoration, so an AI coding agent can consume it without any flag.

# 1) Get a prompt by exact id (raw content on stdout)
pst code-review

# 2) Unique prefix resolves automatically (notice goes to stderr)
pst code

# 3) Search when you do not know the id
pst search "rust security review"

# 4) Suggest prompts for a task
pst suggest "review authentication code"

# 5) Render with variables filled
pst render code-review --LANGUAGE=Rust --CONTEXT=diff.txt

# 6) Machine-readable payload for any command
pst code-review --json

# 7) Teach your agents that pst exists (installs integration skill)
pst install

**Output contract** (frozen, tested):

Case stdout stderr exit
hit raw content + \n silent 0
--json stable JSON payload 0
fuzzy hit raw content resolved '' -> '' (fuzzy) 0
not found empty `{"error":"not_