How shaiknawazshareef/systempromptusingpromptengineering works
PromptForge AI is a command-line prompt-improvement and answer-generation application. The user supplies a prompt and optional role, context, and output format; the app first asks Gemini to improve the prompt, then asks Gemini to answer using that improved prompt, and displays both results. A shared generation layer handles model fallback and retries. The repository is a single-file app, so these responsibilities share one source path; no persistence or additional product subsystems are present.
Main entry points: main.py CLI workflow
Components 7
Prompt workflow
- CLI workflow
main.py - Prompt improvement
main.py - Answer generation
main.py - Result display
main.py
Gemini generation
- Retry and fallback
main.py
Other components
- User
- Gemini API
Connections 8
- User → CLI workflow: enters inputs
main.py - CLI workflow → Prompt improvement: requests improvement
main.py - Prompt improvement → Retry and fallback: generates prompt
main.py - Retry and fallback → Gemini API: requests generation
main.py - CLI workflow → Answer generation: requests answer
main.py - Answer generation → Retry and fallback: generates answer
main.py - CLI workflow → Result display: displays results
main.py - Result display → User: shows results
main.py