@sadik1010/prompt-forge
v2.0.2
Published
Universal prompt optimizer CLI — pipe any prompt through prompt-forge to get a compressed, structured ROLE/TASK/CONTEXT/RULES/OUTPUT version. Saves tokens, clarifies intent.
Downloads
2,055
Maintainers
Readme
prompt-forge CLI
Universal prompt optimizer — pipe any prompt through to get compressed, structured output.
npm install -g @sadik1010/prompt-forgeUsage
# argument
prompt-forge "write an essay about causes of WW1 with citations"
# pipe
echo "explain quantum computing for beginners" | prompt-forge
# file
prompt-forge --file prompt.txt
# verbose (shows analysis flags on stderr)
echo "tell me about black holes" | prompt-forge --verbose
# raw passthrough (skip optimization)
echo "any text" | prompt-forge --rawOutput
Structured as ROLE/TASK/CONTEXT/RULES/OUTPUT sections.
Install as opencode Skill
npm install @sadik1010/prompt-forge
# postinstall copies skill files to ~/.opencode/skills/prompt-forge/License
MIT
