diagnose
Skill8 starsChanged 6 months agoMITView on GitHub
系统化诊断复杂 bug、测试失败和性能回退,按复现、最小化、假设、观测、修复、回归测试循环推进;当用户说 debug、diagnose、报错、失败、性能变慢时使用。
Files
Diagnose
目标
不要直接猜修复。先复现问题,再缩小范围,再提出假设,最后用观测和回归测试证明修复有效。
诊断循环
- Reproduce:复现问题,记录命令、输入、现象和期望。
- Minimise:缩小到最小可复现路径。
- Hypothesise:列出 1-3 个最可能原因。
- Instrument:加日志、断点、测试或静态检查验证假设。
- Fix:做最小修复。
- Regression-test:补回归测试或明确人工验证步骤。
原则
- 不要同时改多个无关点
- 不确定就先观测,不要编造原因
- 修复后要能解释为什么问题不会再发生
- 如果需要人工参与,可参考
scripts/hitl-loop.template.sh
Other versions184 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 184
- github/awesome-copilot★ 41ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- CherryHQ/cherry-studio-app★ 4ksame name
- pedrohcgs/claude-code-my-workflow★ 1.6ksame name
- formancehq/ledger★ 1.5ksame name
- getagentseal/founder-playbook★ 745same name
- victorgarciaesgi/regle★ 508same name
- amazingloft999-droid/mattpocock-skills★ 422same name
- openvetta/open-vetta★ 302same name
174 more not listed
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.
Used alongsideProjects with it also use zoom-out, to-prd and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
victorgarciaesgiSkillzoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
Also in 57 projects that use this
GoogleSkillto-prd
Turn the current conversation into a PRD and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.
Also in 55 projects that use this
GoogleSkillto-issues
Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.
Also in 52 projects that use this
simo97Skilledit-article
The user will invoke this skill to help them edit an article.
Also in 17 projects that use this
simo97Skillwrite-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
Also in 42 projects that use this
AnasX7Skillscaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
Also in 19 projects that use this
- +3 more from simo97
- +1 more from google
In this repository17 other files it gives its agents.
- code-quality-reviewSkill
- code-reviewSkill
- create-list-pageSkill
- dynamic-form-knowledgeSkill
- feature-doc-maintainerSkill
- frontend-designSkill
- git-commit-messageSkill
- grill-with-docsSkill
- improve-codebase-architectureSkill
- manual-test-casesSkill
- page-reviewSkill
- requirement-analysisSkill
- requirement-story-writerSkill
- tddSkill
- testcase-excelSkill
- testing-vue-vitestSkill
- vue-component-reviewSkill
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.

