Local-first prompt manager: store prompts as JSON, version in git,
and pipe to any LLM runner.
One prompt source. Everywhere you work.
# Save a prompt
echo "Review this code for correctness, security, and performance." | promptg prompt save code-review
# Use it anywhere
promptg get code-review | claude -p
# With variables
promptg get code-review --var language=Python --var focus=security | llm
# Version in git
git add .promptg/
git commit -m "Add code review prompt"
Stop copy-pasting prompts. Start versioning them like code.
Prompts stored as JSON in git. Track changes, review updates, rollback when needed. No more prompt drift.
Commit .promptg/ to git and your team gets the same prompts. Same workflow for devs and CI.
Renders plain text to stdout. Pipe to Claude, ChatGPT, Gemini, or any LLM runner. Swap tools without rewriting prompts.
Create reusable templates with {{variables}}. One blueprint, many contexts. Perfect for CI/CD automation.
No cloud dependencies. Prompts live in ~/.promptg/ or .promptg/. You own your data. Works offline.
Scriptable CLI designed for automation. Perfect for GitHub Actions, pre-commit hooks, and release workflows.
Stable, versioned JSON schemas. Parse in any language, build extensions and integrations. No vendor lock-in.
Install, save a prompt, and start using it.
npm install -g @promptg/cli
promptg init
Creates .promptg/ folder in your project
echo "Review this code" | promptg prompt save
code-review
promptg pack install
https://promptg.io/dl/packs/promptg-pack-dev-essentials.json
promptg get code-review | claude -p
Pipe to any LLM: Claude, ChatGPT, Gemini, etc. Or copy as plain text and use it anywhere
From code reviews to release notes, PromptG fits your workflow.
Run consistent code reviews in GitHub Actions. Same prompt for every PR.
# .github/workflows/review.yml
- name: AI Code Review
run: |
git diff origin/main...HEAD > diff.txt
promptg get code-review \
--var diff@diff.txt | llm
Validate commits before they hit the repo. Catch issues early.
# .git/hooks/pre-commit
promptg get lint-check | \
llm "$(git diff --cached)" || exit 1
Generate release notes from git history. Consistent format every time.
git log v1.0.0..HEAD --pretty=format:'%s' | \
promptg get release-notes \
--var version=1.1.0 | \
claude exec > RELEASE_NOTES.md
Turn incident notes into blameless postmortems with action items.
cat incident-timeline.txt | \
promptg get sre-postmortem \
--var context@incident-timeline.txt | \
llm > postmortem.md
Generate threat models for new features. Identify risks before shipping.
promptg get security-threat-model \
--var context="New OAuth flow for third-party apps" | \
claude -p
Risk-based test plans from feature descriptions. Never miss edge cases.
git diff origin/main...HEAD > feature.diff
promptg get qa-test-plan \
--var diff@feature.diff | llm
One source. Zero drift.