capture

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Inputs

输入

  • Free-text description of an idea, bug, or feature request
  • 关于想法、Bug、功能需求的自由文本描述

Steps

步骤

  1. Parse the description to detect type:
    KeywordsTypeLabels
    error, crash, broken, fix, bug, fails, regressionBug
    triage
    ,
    bug
    add, want, should, new, feature, enhance, improveFeature
    triage
    ,
    enhancement
    DefaultFeature
    triage
    ,
    enhancement
  2. Create GitHub Issue:
    bash
    gh issue create \
      --title "<concise title from description>" \
      --body "<full description>" \
      --label "triage" --label "<bug or enhancement>"
  3. Return the issue number and URL.
  1. 解析描述以检测类型:
    关键词类型标签
    error, crash, broken, fix, bug, fails, regressionBug
    triage
    ,
    bug
    add, want, should, new, feature, enhance, improve功能需求
    triage
    ,
    enhancement
    默认功能需求
    triage
    ,
    enhancement
  2. 创建GitHub Issue
    bash
    gh issue create \
      --title "<concise title from description>" \
      --body "<full description>" \
      --label "triage" --label "<bug or enhancement>"
  3. 返回 Issue编号和URL。

Fallback

降级方案

If
gh
is not available or GitHub access fails:
  1. Try GitHub MCP tools (if available)
  2. If neither works → append to
    ai-workspace/scratchpad.md
    :
    markdown
    ## Captured [date]
    **Type**: [bug/feature]
    **Description**: [text]
    _Failed to create GitHub Issue — saved here as fallback._
    Inform the user that the capture was saved locally.
如果
gh
不可用或者GitHub访问失败:
  1. 尝试使用GitHub MCP工具(如果可用)
  2. 如果两者都不可用 → 追加到
    ai-workspace/scratchpad.md
    markdown
    ## Captured [date]
    **Type**: [bug/feature]
    **Description**: [text]
    _Failed to create GitHub Issue — saved here as fallback._
    通知用户捕获的内容已保存在本地。

Edge Cases

边界情况

  • No description provided → ask the user to describe the idea/bug
  • Offline / no GitHub access → scratchpad fallback (see above)
  • 未提供描述 → 要求用户描述相关想法/Bug
  • 离线/无GitHub访问权限 → 采用草稿本降级方案(见上文)