For each potential bug, generate a bug report with the likely trigger
scenario and recommended fix.
1---2name: bug-report3description: When invoked with a description:4---56When invoked with a description:781. **Parse the description** for key information.9102. **Search the codebase** for related files using Grep/Glob to add context.11123. **Generate the bug report**:1314```markdown15# Bug Report1617## Summary18**Title**: [Concise, descriptive title]19**ID**: BUG-[NNNN]20**Severity**: [S1-Critical / S2-Major / S3-Minor / S4-Trivial]21**Priority**: [P1-Immediate / P2-Next Sprint / P3-Backlog / P4-Wishlist]22**Status**: Open23**Reported**: [Date]24**Reporter**: [Name]2526## Classification27- **Category**: [Gameplay / UI / Audio / Visual / Performance / Crash / Network]28- **System**: [Which game system is affected]29- **Frequency**: [Always / Often (>50%) / Sometimes (10-50%) / Rare (<10%)]30- **Regression**: [Yes/No/Unknown -- was this working before?]3132## Environment33- **Build**: [Version or commit hash]34- **Platform**: [OS, hardware if relevant]35- **Scene/Level**: [Where in the game]36- **Game State**: [Relevant state -- inventory, quest progress, etc.]3738## Reproduction Steps39**Preconditions**: [Required state before starting]40411. [Exact step 1]422. [Exact step 2]433. [Exact step 3]4445**Expected Result**: [What should happen]46**Actual Result**: [What actually happens]4748## Technical Context49- **Likely affected files**: [List of files based on codebase search]50- **Related systems**: [What other systems might be involved]51- **Possible root cause**: [If identifiable from the description]5253## Evidence54- **Logs**: [Relevant log output if available]55- **Visual**: [Description of visual evidence]5657## Related Issues58- [Links to related bugs or design documents]5960## Notes61[Any additional context or observations]62```6364When invoked with `analyze`:65661. **Read the target file(s)**.672. **Identify potential bugs**: null references, off-by-one errors, race68 conditions, unhandled edge cases, resource leaks, incorrect state69 transitions.703. **For each potential bug**, generate a bug report with the likely trigger71 scenario and recommended fix.
Run npx skillmds@latest add wanghaisheng/bug-report in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
When invoked with a description: It is listed under Docs & Writing on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
wanghaisheng (@wanghaisheng) published this skill. Their other Agent Skills are listed on their SkillMD profile.