CLI + Spec: Apache-2.0 (Open Source)

Prompts as Code.
Versioned, Shareable, Standard.

Local-first prompt manager: store prompts as JSON, version in git, and pipe to any LLM runner.
One prompt source. Everywhere you work.

Terminal
# 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"

Why PromptG?

Stop copy-pasting prompts. Start versioning them like code.

Version Control

Prompts stored as JSON in git. Track changes, review updates, rollback when needed. No more prompt drift.

Team Sharing

Commit .promptg/ to git and your team gets the same prompts. Same workflow for devs and CI.

Tool Agnostic

Renders plain text to stdout. Pipe to Claude, ChatGPT, Gemini, or any LLM runner. Swap tools without rewriting prompts.

Templates + Variables

Create reusable templates with {{variables}}. One blueprint, many contexts. Perfect for CI/CD automation.

Local First

No cloud dependencies. Prompts live in ~/.promptg/ or .promptg/. You own your data. Works offline.

CI/CD Ready

Scriptable CLI designed for automation. Perfect for GitHub Actions, pre-commit hooks, and release workflows.

Open Standard

Stable, versioned JSON schemas. Parse in any language, build extensions and integrations. No vendor lock-in.

Get Started in 60 Seconds

Install, save a prompt, and start using it.

1

Install

npm install -g @promptg/cli
2

Initialize

promptg init

Creates .promptg/ folder in your project

3

Save a Prompt

echo "Review this code" | promptg prompt save code-review

Or Install a Starter Pack

promptg pack install https://promptg.io/dl/packs/promptg-pack-dev-essentials.json
4

Use It

promptg get code-review | claude -p

Pipe to any LLM: Claude, ChatGPT, Gemini, etc. Or copy as plain text and use it anywhere

Real-World Use Cases

From code reviews to release notes, PromptG fits your workflow.

Code Review Automation

CI/CD

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

Pre-commit Hooks

Git

Validate commits before they hit the repo. Catch issues early.

# .git/hooks/pre-commit
promptg get lint-check | \
  llm "$(git diff --cached)" || exit 1

Release Notes

Automation

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

Incident Postmortems

SRE

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

Security Threat Modeling

Security

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

Test Plan Generation

QA

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

Join teams shipping prompts with confidence.

One source. Zero drift.