Skip to main content

PromptForge Pro 🔥

Production-grade prompt engineering toolkit for ChatGPT, Claude, Gemini, and every LLM.

Stop writing bad prompts. PromptForge Pro scores, optimizes, and generates battle-tested prompts from a library of 50+ templates — entirely from your terminal.


What's Inside

Module What it does
Scorer Rates any prompt 0–100 across 6 dimensions with specific fix suggestions
Optimizer Rewrites weak prompts — auto-injects roles, format specs, constraints
Templates 50+ ready-to-fill prompt templates across 15 categories
Compare A/B tests two prompt variants with scoring
Batch Optimize 20+ prompts in one command
API Full REST API — deploy to RapidAPI, Render, or your own server

Installation

pip install -r requirements.txt

No API keys needed for the core toolkit. Everything runs locally.


CLI Usage

Score a prompt

python -m promptforge.cli score "Write a blog post about AI"
══════════════════════════════════════════════════
  PROMPT SCORE: 51.0/100  [D — Weak]
══════════════════════════════════════════════════
  Clarity        ██████████ 10.0/10
  Specificity    █████░░░░░  5.0/10
  Context        ████░░░░░░  4.0/10
  Format         ████░░░░░░  4.0/10
  Constraints    ████░░░░░░  4.0/10
  Completeness   ██░░░░░░░░  2.0/10
──────────────────────────────────────────────────
  ISSUES:
  ⚠ No role assigned to the AI
  ⚠ No output format specified
  ⚠ Prompt is extremely short
  SUGGESTIONS:
  → Add 'You are a [role]...' to anchor behavior
  → Specify format: list, JSON, paragraphs, etc.
  → Expand with context and constraints
══════════════════════════════════════════════════

Optimize a prompt

python -m promptforge.cli optimize "Write a blog post about AI"
Score: 51.0 → 65.0  (+14.0 improvement)
Changes:
  ✓ Added role: 'You are an expert content strategist'
  ✓ Added format hint: 'Structure your response with clear sections'
  ✓ Added conciseness instruction

Compare two prompts

python -m promptforge.cli compare "Tell me about Python" "You are a Python expert. Explain Python's GIL in 150 words with a practical example."

Browse templates

python -m promptforge.cli templates
python -m promptforge.cli templates --category coding
python -m promptforge.cli search "email"

Fill a template interactively

python -m promptforge.cli fill blog_outline
Template: Blog Post Outline Builder
Required variables:
  · topic
  · keyword
  · word_count
  · level

Enter values:
  topic: How to use AI for freelancing
  keyword: AI freelancing
  ...

Batch optimize from file

python -m promptforge.cli batch --file prompts.txt --output results.json

Start the REST API

python -m promptforge.cli serve
# → http://localhost:8000
# → http://localhost:8000/docs

Template Categories (50+ templates)

Category Templates
AI / Prompt Engineering Prompt optimizer, System prompt architect, Few-shot builder, CoT builder
Business Email composer, Executive summary, Cold pitch, Meeting agenda
Marketing Product descriptions, Ad copy, SEO meta, Brand voice
Coding Code review, Bug fix, API docs, Unit tests, Refactor
Content Blog outlines, YouTube scripts, Newsletters, Twitter threads
Data Data analysis, SQL generator, Report narrator
Education Lesson plans, Concept explainer, Quiz generator
Creative Story outlines, Character profiles, Poem generator
Productivity Task breakdown, Decision framework, Weekly planner
HR Job descriptions, Performance reviews
Finance Financial summaries, Investment thesis
Support Customer responses, FAQ generator
Legal T&C drafter, Privacy policy sections
Health Fitness plans, Meal planners
Research Literature review, Hypothesis builder

Python API

from promptforge.scorer import score_prompt
from promptforge.optimizer import optimize_prompt
from promptforge.templates import fill_template, search_templates

# Score
result = score_prompt("your prompt here")
print(result.total)        # 0-100
print(result.grade)        # "A — Strong"
print(result.suggestions)  # list of improvements

# Optimize
opt = optimize_prompt("write a poem about cats")
print(opt.optimized)       # improved prompt
print(opt.improvement)     # +N points

# Use a template
prompt = fill_template("code_review", {
    "language": "Python",
    "code": "def add(a,b): return a+b"
})

# Search templates
results = search_templates("email")

REST API Endpoints

Method Endpoint Description
POST /score Score a prompt
POST /optimize Optimize a prompt
POST /compare Compare two prompts
POST /batch-optimize Batch optimize up to 20
GET /templates List all templates
GET /templates/{key} Get single template
POST /templates/fill Fill a template
GET /categories List categories
GET /search?q= Search templates

Full Swagger docs at /docs when running locally.


Deploy to Render (Free)

# render.yaml is included — just connect your repo
# Free tier: 750 hours/month, spins up on request

License

MIT — use it, sell it, build on it.


Built with Python 3.10+ · No external AI APIs required · Works offline

Metadata

Release files for promptforge-pro 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for promptforge-pro 1.0.0
File Size Uploaded Provenance Actions
promptforge_pro-1.0.0.tar.gz 24.9 kB Without provenance Details for promptforge_pro-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for promptforge-pro 1.0.0
File Interpreter ABI Platform Actions
promptforge_pro-1.0.0-py3-none-any.whl Python 3 none any Details for promptforge_pro-1.0.0-py3-none-any.whl

Total release size: 50.4 kB

Release files / promptforge_pro-1.0.0.tar.gz

Download URL promptforge_pro-1.0.0.tar.gz
Size 24.9 kB
Tags Source
SHA-256 checksum
How to use checksums
eafdcf8ee3e907d654cbd40ff1cbc2d37032bfaf937fb2d0c06eaea2a33110c2
BLAKE2b-256 checksum
How to use checksums
3a29682e694c381add48cab2029aff7e4badd152bd600c6ab97509668d959efc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / promptforge_pro-1.0.0-py3-none-any.whl

Download URL promptforge_pro-1.0.0-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e360c53446a8fb9fdbedc1c6d85c1dfa140d30fc29f4c330936c99cd39c91d6f
BLAKE2b-256 checksum
How to use checksums
f173c6fcc9ec654ad022b9ea0179b8d83ae2bf2413f3620f27caab51d18909f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for promptforge-pro 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page