跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
开发与测试

debug-issue

Structured workflow for debugging a reported or reproduced issue. Use when the user asks to debug a bug, find root cause, or fix a failing scenario.

girijashankarj · 已有 AI 审核记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add girijashankarj/cursor-handbook --skill debug-issue

技能说明


name: debug-issue description: Structured workflow for debugging a reported or reproduced issue. Use when the user asks to debug a bug, find root cause, or fix a failing scenario.

Skill: Debug issue

Trigger

When the user asks to debug a bug, find the root cause, or fix a failing scenario.

Steps

  1. Reproduce — Run or describe steps to reproduce; capture error message and stack if any.
  2. Isolate — Narrow to the smallest repro (single request, single file, single branch).
  3. Hypothesize — List 2–3 likely causes (e.g. null input, wrong config, race).
  4. Verify — Add a log, assertion, or minimal test to confirm one cause.
  5. Fix — Apply minimal code change; add or update a test to prevent regression.
  6. Confirm — Run type-check and relevant tests.

Rules

  • Do not change unrelated code.
  • Prefer adding a test that fails before the fix and passes after.