Problem Solving

Structured problem diagnosis and resolution methodology. Use when: (1) a problem's cause is unclear and requires investigation, (2) a previous fix attempt fa...

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 28 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name, description, README and SKILL.md all describe the same six‑step problem solving process. There are no unrelated requirements (no env vars, no binaries, no installs), so requested capabilities match the stated purpose.
Instruction Scope
The instructions explicitly direct the agent to read logs, config/state, source code, and to perform minimal reproductions and record changes. Those actions are appropriate for diagnostics, but they do mean the agent will be instructed to access potentially sensitive files and system state — the skill does not attempt to read anything unrelated to diagnosis, nor does it instruct exfiltration or external posting.
Install Mechanism
No install spec, no downloaded code and no vendor packages. Instruction-only skills have minimal disk footprint and lower install risk.
Credentials
No required environment variables, credentials, or config paths are declared. The SKILL.md's suggested diagnostic sources (logs, DB, config) are relevant to the purpose and do not imply extra credential requirements beyond what a diagnosing agent would reasonably need.
Persistence & Privilege
always:false and no special persistence or cross-skill configuration modifications. The skill may be invoked autonomously (platform default), which is expected for a procedural helper; nothing requests permanent elevated privileges.
Assessment
This skill is a methodological checklist for diagnosis and remediation and is internally coherent. Before enabling it, understand that following the steps will typically require the agent to read logs, configs, state, and source code and to propose or record changes; those are normal for troubleshooting but can expose sensitive data. If you want to limit risk: (1) ensure the agent has only the minimum file and service access needed, (2) require explicit user confirmation before any change is applied (the skill recommends this), and (3) review proposed fixes and any written .learnings/ or change records before committing them. No credentials or external downloads are required by the skill itself.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk97czevjwapeeb8m0e1n6tj8ms830jx3

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

Structured Problem Solving

When to Use This vs. Direct Fix

Direct fix (skip this skill):

  • Error message points to exact cause
  • One-line config/code fix
  • You've seen this exact problem before

Use this skill:

  • You'd need to say "可能是..." to explain the cause
  • 2+ components involved
  • You already tried a fix that didn't work
  • Wrong fix could cause data loss, privacy leak, or downtime

The Process

Step 1: Define the Problem

Turn vague "something's wrong" into a precise statement.

问题:[一句话]
现象:[具体发生了什么]
预期:[应该是什么样]
影响:[谁受影响,严重程度]
可复现:[是/否,触发条件]

Rules:

  • Describe what you observe, not what you think caused it
  • "webchat replies appear in DingTalk group" = problem ✅
  • "origin got polluted" = hypothesis, not problem ❌

Step 2: Diagnose

Do not skip to fixing. Trace the data flow end-to-end first.

2.1 Map the call chain

Input → Step A → Step B → Step C → Output
          ↓          ↓          ↓
        Check      Check      Check

2.2 Verify each step

Read actual values (logs, state files, source code). Do not guess.

2.3 Narrow down

Find the first step where output diverges from expected. That's where the bug is.

2.4 Confirm root cause

Three questions before you declare root cause:

  1. Why? — Explain the mechanism, not just the symptom
  2. Sufficient? — If I fix this, will the problem definitely disappear?
  3. Unique? — Is there another cause that could produce the same symptom?

All three must be answered. If not → keep diagnosing.

Diagnostic tools (prefer in order):

  1. Error messages / logs (fastest)
  2. State inspection (config files, DB, session store)
  3. Source code tracing (most reliable)
  4. Minimal reproduction experiment

Step 3: Design Solutions

Generate at least 2 candidate solutions. Compare on:

DimensionQuestion
EffectivenessFixes root cause or just symptom?
RiskCould it break something else?
ComplexityHow many components touched?
ReversibilityCan we roll back if wrong?
DurabilitySurvives restarts / updates?
Side effectsImpact on other features?

Present as:

方案 A:[one line]
  ✅ [pros]  ⚠️ [risks]

方案 B:[one line]
  ✅ [pros]  ⚠️ [risks]

→ 推荐 A,因为 [reason]

Always include the "do nothing / workaround" option if viable.

Step 4: Execute

Pre-flight checklist:

  • Root cause confirmed (not guessed)
  • Solution evaluated (not first idea)
  • User confirmed (for risky changes)
  • Rollback plan ready

Rules:

  • Change one variable at a time
  • Record what was changed and what it was before
  • Minimize scope — don't "fix other things while you're at it"

Step 5: Verify

Three levels of verification:

  1. Direct: Reproduce original trigger → problem gone?
  2. Regression: Related features still work?
  3. Durability: Survives restart / next trigger?

Show evidence, don't say "应该好了".

Step 6: Review

## 复盘:[问题名]
耗时:X 分钟(有效 Y / 弯路 Z)
根因:[一句话]
修复:[一句话]
弯路:[走了什么弯路]
教训:[提炼的规则]

Write lessons to .learnings/ if reusable.

Anti-patterns

PatternWhat it looks likeFix
Guess-and-fixSee symptom → hypothesize → change immediatelyMap call chain first
One-end-onlyCheck only input or outputTrace full data flow
Surface fixChange the bad value without asking why it's badAsk "why did it become this value?"
Multi-changeChange 3 things at onceOne variable at a time
Premature victory"Should be fixed now" without checkingShow evidence
No rollbackForget to record original valuesBackup before modify

Communication During Problem-Solving

  • Define: Confirm understanding ("你说的问题是 X 对吗?")
  • Diagnose: Share progress, don't go silent ("在查 Y 环节,发现了 Z")
  • Design: Give choices, not just one option
  • Execute: Confirm before risky operations
  • Verify: Ask user to check on their end
  • Throughout: Say "I'm not sure yet" over false confidence

Files

3 total
Select a file
Select a file to preview.

Comments

Loading comments…