bug-prevention

Validate code changes against 5 major bug patterns from historical reports.

Updated Dec 29, 2025
One-click install
npx skills add https://github.com/yumayo/MasterDataEditor --skill bug-prevention
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bug-prevention
Source: https://github.com/yumayo/MasterDataEditor/tree/main/.claude/skills/bug-prevention
Command: npx skills add https://github.com/yumayo/MasterDataEditor --skill bug-prevention

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill proactively prevents bugs during implementation by providing a checklist based on historical bug analysis, ensuring code quality and reducing future maintenance.

Core Features & Use Cases

  • Bug Pattern Analysis: Identifies common bug patterns (e.g., missing operation paths, edge case oversights) from past incidents.
  • Checklist Verification: Applies a detailed checklist to code changes to detect potential bugs.
  • Use Case: Before merging a new feature, run this Skill to ensure the code doesn't introduce common pitfalls like incomplete operation paths or unhandled edge cases, as identified from 35 past bug reports.

Quick Start

Run the bug-prevention skill to check the code changes in the current directory against the 5 major bug patterns.

Frequently Asked Questions about bug-prevention

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent bugs in code changes before merging a new feature?

To prevent bugs before merging, you can validate code changes against a checklist of 5 major bug patterns derived from historical bug report analysis. This identifies potential issues in operation paths, symmetric operations, edge cases, state propagation, and closure staleness.

What common bug patterns should I check for during a code review?

Common bug patterns to check for during code review include missing operation paths, symmetric operation oversights, unhandled edge cases, improper state propagation, and closure staleness. These 5 major patterns were identified from analyzing 35 past bug reports.

How can I detect edge case oversights and incomplete operation paths in my code?

You can detect edge case oversights and incomplete operation paths by running a validation skill that checks code changes against historical bug patterns. It provides detailed reports with specific failure points and suggested fixes for any detected issues.

Does bug prevention checklist verification work without external dependencies?

Yes, checklist verification for bug prevention works without external dependencies. It operates directly on the code changes in your current directory, validating them internally against predefined bug patterns to ensure code quality and reduce future maintenance.

What is the best way to proactively find bugs in state propagation and closure staleness?

The best way to proactively find state propagation and closure staleness bugs is to validate code against a checklist built from historical bug analysis. This approach catches common pitfalls before they are merged by identifying specific failure points in those areas.

When do I need to run a bug pattern analysis on my code?

You need to run a bug pattern analysis before merging a new feature or finalizing code changes. Running it proactively ensures the code does not introduce common pitfalls like incomplete operation paths or unhandled edge cases, reducing future maintenance.