跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    thePrnvBot

    Openducky

    v1.0.1其他
    openducky

    Rubber 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"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    npm downloads npm

    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.

    image
    image
    image

    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

    1. Select a file - Choose which file you want to be quizzed on
    2. Choose a mode - Skim (high-level) or Full (implementation details)
    3. Answer questions - 3-5 questions presented one at a time
    4. Get feedback - Each answer is evaluated with corrections if needed
    5. 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