openduckyRubber duck debugging quiz plugin for OpenCode
GitHub 星标
5
月装机量
5
近 7 天 2
综合评分SCORE
20.7
生态多维模型
最近提交
6 个月前
2026-02-08
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["openducky@1.0.1"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["openducky@1.0.1"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D openduckyopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
README.md
查看原始文件→
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