openduckyRubber duck debugging quiz plugin for OpenCode
5
5
2 in 7 days
20.7
Multi-signal model
6 months ago
2026-02-08
Install and configure
opencode.jsonWrites to this project's opencode.json — applies to this repository only.
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["openducky@1.0.1"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["openducky@1.0.1"]
}If you want to modify the plugin locally, install it into the project and reference the local path.
shell
pnpm add -D openduckyopencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.
Rubber duck debugging quiz plugin for OpenCode.
Test your understanding of code through interactive quizzes - the AI reads a file and quizzes you on it, one question at a time.
Installation
Add to your opencode.json:
{
"plugin": ["openducky"]
}
Usage
Just ask to be quizzed on any file:
ducky
Quiz me on src/index.ts
Use ducky to test my understanding of the auth module
OpenCode will prompt you to select a file and quiz mode, then begin the interactive quiz.
Quiz Flow
- Select a file - Choose which file you want to be quizzed on
- Choose a mode - Skim (high-level) or Full (implementation details)
- Answer questions - 3-5 questions presented one at a time
- Get feedback - Each answer is evaluated with corrections if needed
- Review summary - Final assessment of your understanding
Modes
| Mode | Focus |
|---|---|
| Skim | Purpose, architecture, exports, interfaces, what the code does overall |
| Full | Logic flow, edge cases, error handling, why specific decisions were made |
Topic Focus (Optional)
Narrow the quiz to a specific aspect:
Quiz me on src/api.ts, focus on error handling
Test my understanding of the caching logic in utils.ts
License
MIT