@mtayfur/opencode-prompt-enhancer
v0.0.12
Published
OpenCode plugin that rewrites rough drafts into stronger prompts.
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
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