bug-analysis
Skill1 starsChanged 3 months agoMITView on GitHub
Use when a user reports a defect, crash, regression, incorrect result, performance degradation, intermittent failure, or unexplained behavior and wants root-cause analysis or fix recommendations.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- fishzjp/qa-skillstheir own version, first seen Oct 21, 2026
- bin19860307-cpu/tester_skilltheir own version, first seen Oct 20, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- fishzjp/qa-skills★ 62same name
- bin19860307-cpu/tester_skill★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cavemanSkill
- code-review-with-filesSkill
- diagnoseSkill
- fetch-yuque-docSkill
- git-commit-workflowSkill
- handoffSkill
- improve-codebase-architectureSkill
- ios-i18n-workflowSkill
- java-to-nextjsSkill
- java-to-swiftSkill
- question-answerSkill
- reconstructing-ui-from-screenshotsSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Treat the user's attribution and the last visible error as hypotheses, not facts.
- Distinctive: line 16
Never invent logs, runtime state, reproduction results, file paths, or line numbers.
- Distinctive: line 18
Ask only questions that change the next step.
- Distinctive: line 29
Start from exact errors, timestamps, traces, dumps, metrics, inputs, screenshots, and code.
- Distinctive: line 31
Do not replace investigation with a broad list of generic causes.
- Distinctive: line 35
Prefer the smallest safe check that reproduces or distinguishes the failure: a focused test, minimal input, replay, version/config …
- Distinctive: line 37
If no useful signal exists, request the specific artifact or access needed.
- Distinctive: line 76
Keep direct, well-evidenced cases concise.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Bug Analysis
Overview
Investigate any technology stack from evidence, not intuition. Plausible is not proven. Respond in Chinese unless the user requests another language.
Operating Contract
- Treat the user's attribution and the last visible error as hypotheses, not facts.
- Separate observed facts, inferences, assumptions, and unknowns.
- Never invent logs, runtime state, reproduction results, file paths, or line numbers.
- Diagnose without modifying code unless the user also asks for a fix.
- Ask only questions that change the next step; otherwise proceed with stated assumptions.
- For active investigation of hard or uncertain bugs, also use
diagnose.
Adaptive Investigation
1. Frame the Failure
Establish expected versus actual behavior, scope, onset, frequency, environment, reproducibility, and recent changes. Mark known and missing information.
2. Follow Evidence
Start from exact errors, timestamps, traces, dumps, metrics, inputs, screenshots, and code. Search real symbols and error text; trace execution and data flow backward from the failure. Inspect relevant callers, state transitions, boundaries, configuration, dependencies, and changes.
Do not replace investigation with a broad list of generic causes.
3. Build a Feedback Signal
Prefer the smallest safe check that reproduces or distinguishes the failure: a focused test, minimal input, replay, version/config comparison, targeted instrumentation, profiler, or query plan. For intermittent issues, raise the reproduction rate and correlate by time, host, input, version, or state.
If no useful signal exists, request the specific artifact or access needed. Do not compensate with certainty.
4. Rank Falsifiable Hypotheses
Generate enough alternatives to avoid anchoring, usually two to five. For each include:
- supporting and contradicting evidence;
- a falsifiable prediction;
- the cheapest decisive check.
Change one variable at a time and re-rank as evidence changes.
5. Calibrate the Conclusion
Use one status:
- 已确认: the causal chain is demonstrated and material alternatives are ruled out.
- 最可能: one explanation leads, but a decisive check is missing.
- 未确定: evidence cannot distinguish the leaders.
Give high, medium, or low confidence with a reason. Distinguish trigger, failure mechanism, and latent condition when they differ. Derive severity from demonstrated impact.
6. Recommend and Verify
Separate containment, minimal permanent fix, and prevention. If evidence is insufficient, recommend a discriminating experiment, not a speculative patch.
A fix is verified only when the original signal stops failing and a regression check passes. Note relevant compatibility, data, security, and operational risks.
Adaptive Output
Lead with the conclusion. Use only sections that add information:
- 结论 — status, confidence, and reason.
- 已知事实 — sourced observations.
- 分析 — causal chain or ranked hypotheses, evidence, and predictions.
- 下一步验证 — smallest decisive checks in priority order.
- 修复建议 — only justified containment, permanent fix, and prevention.
- 验证标准 — proof that the issue is resolved.
Keep direct, well-evidenced cases concise. For intermittent, cross-system, performance, data-integrity, or security failures, include a timeline and deeper evidence chain. Omit empty sections.
Final Check
- Is the stated root cause stronger than the evidence allows?
- Is correlation being presented as causation?
- Does each leading hypothesis have a falsifiable prediction?
- Is the recommendation fixing the mechanism rather than masking the symptom?
- Are unresolved unknowns and verification gaps explicit?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

