@mtayfur/opencode-prompt-enhancer
v0.0.17
Published
OpenCode plugin that rewrites rough drafts into stronger prompts.
Downloads
840
Readme
opencode-prompt-enhancer
OpenCode TUI plugin that rewrites rough prompt drafts into clearer, stronger prompts.
What it does
- Rewrites rough prompt drafts into clearer, stronger prompts.
- Uses lightweight workspace context.
- Keeps the original intent and language, and does not read file contents.
Context used
The enhancer uses:
- the current working directory
- recent user prompts in the current session
- files changed in the current session
Install
For local development without an npm release:
bun run setupThis replaces the released plugin entry in OpenCode's tui.json plugin list with the local checkout. To restore the released plugin entry:
bun run setup:uninstallFor npm install/publish flows, add the package to OpenCode's tui.json plugin list:
{
"plugin": [
"@mtayfur/opencode-prompt-enhancer@latest"
]
}OpenCode >=1.3.14 is required.
Use
- Open OpenCode in a workspace.
- Enter a rough prompt in the TUI prompt.
- Press
Ctrl+Eor run/enhance. - Review the prefilled dialog, edit it if needed, and confirm.
- The enhanced prompt replaces the current input.
Development
bun install
bun run typecheck