mcpField
W
When Stuck - Problem-Solving Dispatch

When Stuck - Problem-Solving Dispatch

github.com/obraAgent 工作流756526 次安装54 周前更新
代码仓库

关于 When Stuck - Problem-Solving Dispatch

一种问题求解技能,将常见的受阻情形对应到特定方法,如调试、简化或并行调查。适用于根据遇到的困难类型,为 Agent 选择有条理的下一步。

主要功能

  1. 01按症状匹配解决方法
  2. 02调用指定的问题求解技能
  3. 03按需组合不同方法
  4. 04记录已尝试的方案

适用场景

  1. 01为失败的测试选择排查方法
  2. 02处理不断增加的实现复杂度
  3. 03调查多个相互独立的问题

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/obra/superpowers-skills --skill when-stuck---problem-solving-dispatch

安装后在 Claude Code 中输入/when-stuck---problem-solving-dispatch确认已加载。

详细介绍

陷入困境时——问题解决方法分流

概述

不同类型的困境需要不同的技巧。本技能可帮助你快速判断该使用哪种问题解决技能。

核心原则: 根据困境症状匹配技巧。

快速分流

digraph stuck_dispatch {
    rankdir=TB;
    node [shape=box, style=rounded];

    stuck [label="You're Stuck", shape=ellipse, style=filled, fillcolor=lightblue];

    complexity [label="Same thing implemented 5+ ways?\nGrowing special cases?\nExcessive if/else?"];
    innovation [label="Can't find fitting approach?\nConventional solutions inadequate?\nNeed breakthrough?"];
    patterns [label="Same issue in different places?\nFeels familiar across domains?\nReinventing wheels?"];
    assumptions [label="Solution feels forced?\n'This must be done this way'?\nStuck on assumptions?"];
    scale [label="Will this work at production?\nEdge cases unclear?\nUnsure of limits?"];
    bugs [label="Code behaving wrong?\nTest failing?\nUnexpected output?"];

    stuck -> complexity;
    stuck -> innovation;
    stuck -> patterns;
    stuck -> assumptions;
    stuck -> scale;
    stuck -> bugs;

    complexity -> simp [label="yes"];
    innovation -> collision [label="yes"];
    patterns -> meta [label="yes"];
    assumptions -> invert [label="yes"];
    scale -> scale_skill [label="yes"];
    bugs -> debug [label="yes"];

    simp [label="skills/problem-solving/\nsimplification-cascades", shape=box, style="rounded,filled", fillcolor=lightgreen];
    collision [label="skills/problem-solving/\ncollision-zone-thinking", shape=box, style="rounded,filled", fillcolor=lightgreen];
    meta [label="skills/problem-solving/\nmeta-pattern-recognition", shape=box, style="rounded,filled", fillcolor=lightgreen];
    invert [label="skills/problem-solving/\ninversion-exercise", shape=box, style="rounded,filled", fillcolor=lightgreen];
    scale_skill [label="skills/problem-solving/\nscale-game", shape=box, style="rounded,filled", fillcolor=lightgreen];
    debug [label="skills/debugging/\nsystematic-debugging", shape=box, style="rounded,filled", fillcolor=lightyellow];
}

困境类型 → 技巧

困境表现使用此技能
复杂度不断攀升——同一件事尝试了 5 种以上的方法,特殊情况越来越多skills/problem-solving/simplification-cascades
需要创新——常规解决方案不够用,找不到合适的方法skills/problem-solving/collision-zone-thinking
模式反复出现——同一问题出现在不同地方,不断重复造轮子skills/problem-solving/meta-pattern-recognition
受假设限制——“必须这样做”,无法质疑前提skills/problem-solving/inversion-exercise
规模不确定——能否在生产环境中奏效?边缘情况是否清楚?skills/problem-solving/scale-game
代码出错——行为不正确、测试失败或输出异常skills/debugging/systematic-debugging
多个独立问题——可以并行调查skills/collaboration/dispatching-parallel-agents
根本原因未知——症状明确,原因不明skills/debugging/root-cause-tracing

流程

  1. 识别困境类型——上面的哪种症状与你的情况相符?
  2. 加载对应技能——阅读具体技巧
  3. 应用技巧——遵循其流程
  4. 如果仍然受阻——尝试其他技巧或组合使用

组合技巧

有些问题需要多种技巧:

  • 简化 + 元模式:找出模式,然后简化所有实例
  • 碰撞 + 反转:强行套用隐喻,然后反转其假设
  • 规模 + 简化:极端情况揭示需要消除的内容

请记住

  • 根据症状匹配技巧
  • 一次使用一种技巧
  • 如果第一种不起作用,再组合使用
  • 记录你尝试过的方法

评论

支持 Markdown