What if you could take any weak, vague prompt and instantly transform it into an elite, production-ready one — with a power score, technique breakdown, and warrior rank?
That's exactly what Prompt Forge does.
🤔 The Problem
Most people use AI wrong. They type something like:
"Write me a blog post about productivity"
And wonder why the output is generic. The secret isn't the model — it's the prompt. A better prompt unlocks dramatically better results.
But most people don't know how to write better prompts. That's the gap Prompt Forge fills.
⚔️ What is Prompt Forge?
Prompt Forge is a single-page web app that transforms weak prompts into elite, production-ready prompts using NVIDIA Llama 3.1 70B via the NVIDIA NIM API.
You paste a rough idea → hit Forge It → get back:
- A rewritten prompt (3–8× more detailed)
- Which of 8 prompt engineering techniques were applied
- A Power Level score from 1–10
- A Warrior Rank (Recruit → Bronze → Silver → Gold → Legendary)
- A Warrior Analysis explaining every upgrade made 🔗 Try it live →
✨ Features
- Prompt Forging Engine — rewrites weak prompts using Llama 3.1 70B Instruct
- 8 Technique Tags — Context · Specificity · Constraints · Output Format · Persona · Examples · Chain-of-Thought · Negatives
- Power Level Meter — 10-bar visual indicator (1–10)
- Warrior Rank System — gamified ranking based on power level
- Warrior Analysis Panel — explains every improvement made
- Typewriter Animation — forged prompt streams in dramatically
- One-click Copy — instantly copy the result
-
Keyboard Shortcut —
Ctrl+Enter/Cmd+Enter
- Responsive — works on mobile and tablet
🛠️ Tech Stack
| Layer | Technology |
|---|---|
| Frontend | Vanilla HTML / CSS / JavaScript |
| Backend | Python + Flask |
| AI Model | NVIDIA Llama 3.1 70B Instruct |
| API | NVIDIA NIM API |
| Hosting | Render |
Deliberately kept the stack simple — no React, no heavy frameworks. Just a single HTML file on the frontend and a lightweight Flask proxy on the backend.
🧠 How It Works
The architecture is straightforward:
User Input → Flask Server → NVIDIA NIM API → Llama 3.1 70B → Structured JSON → UI
- User enters a weak prompt
- Frontend sends
POST /api/forgeto Flask - Flask forwards to NVIDIA NIM API with a system prompt instructing Llama to act as a master prompt engineer
- Model returns structured JSON:
{
"forged_prompt": "...",
"techniques_used": ["Context", "Specificity", "Persona"],
"power_level": 8,
"analysis": "Added role context, specified output format..."
}
5. Frontend renders with typewriter animation, technique tags, power meter, and warrior rank
📡 The Key: System Prompt Engineering
The magic is in the system prompt sent to Llama 3.1 70B. It instructs the model to:
- Act as a master prompt engineer
- Identify weaknesses in the input prompt
- Apply specific prompt engineering techniques
- Return a structured JSON response with the forged prompt, techniques used, power level, and analysis The model essentially uses prompt engineering to improve prompts — meta, but incredibly effective.
🎖️ Warrior Rank System
| Power Level | Rank |
|---|---|
| 1–2 | 🪖 RECRUIT |
| 3–4 | 🥉 BRONZE |
| 5–6 | 🥈 SILVER |
| 7–8 | 🥇 GOLD |
| 9–10 | 🏆 LEGENDARY |
🚀 Run It Yourself
git clone https://github.com/Divyansh0208/Prompt_Forge.git
cd Prompt_Forge
pip install flask python-dotenv requests
cp .env.example .env
# Add your NVIDIA API key to .env
python server.py
Get a free NVIDIA API key at build.nvidia.com.
🔗 Links
- 🌐 Live Demo: prompt-forge-o970.onrender.com
- 💻 GitHub: github.com/Divyansh0208/Prompt_Forge
Built for Google Prompt Wars 2026. Try forging your weakest prompt and see what rank you earn ⚔️






















