brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
systematic-debuggingComprehensive 4-phase debugging methodology for complex bugs. Use for bugs that aren't immediately obvious or have resisted quick fixes. Keywords: bug, error, fix, debug, broken, crash, fail, exception
Independent GitHub snapshot · Automated classification · Original documentation governs
Philosophy: Understand before you fix. Verify before you celebrate.
Use this skill when:
Do NOT use this skill when:
Before starting:
Goal: Find the TRUE cause, not just symptoms.
Steps:
Reproduce the Bug
Ask yourself:
- Can I make this happen consistently?
- What are the exact steps?
- What input causes it?
Gather Evidence
Trace the Flow
Start from: Error location
Work backward: How did we get here?
Find: Where does expected != actual?
Identify the Root Cause
Output: Clear statement of root cause.
Red Flags (STOP if you find yourself doing these):
Goal: Understand the shape of the problem.
Steps:
Scope Assessment
Similar Pattern Search
# Search for similar patterns in codebase
grep -r "similar_pattern" src/
Dependency Check
Risk Assessment
Output: Understanding of bug's scope and risk.
Goal: Develop and test fix hypothesis.
Steps:
Form Hypothesis
"If I change X to Y, then Z should work because..."
Good hypothesis includes:
Design the Fix
Mental/Paper Test
Create Test Case
Output: Tested hypothesis ready for implementation.
Goal: Apply fix and verify it works.
Steps:
Implement the Fix
Run Existing Tests
# All tests must pass
npm test # or pytest, etc.
Run New Test Case
Verify No Regression
Documentation
Output: Verified fix with passing tests.
Bug Report Received
│
▼
┌─────────────────┐
│ Can reproduce? │
└────────┬────────┘
YES │ NO
│ └──► Gather more info, check logs, ask for steps
▼
┌─────────────────┐
│ Error obvious? │
└────────┬────────┘
YES │ NO
│ └──► Phase 1: Root Cause Investigation
▼
Quick fix
│
▼
┌─────────────────┐
│ Fix verified? │
└────────┬────────┘
YES │ NO
│ └──► Return to investigation
▼
Complete ✓
When: Array/loop issues, boundary conditions
Detection:
Solution:
< vs <=When: Race conditions, inconsistent failures
Detection:
Solution:
When: Missing data, optional fields
Detection:
Solution:
Problem: Not investigating environment differences.
Instead:
Problem: Changing random things hoping something works.
Instead:
Problem: Assuming fix works without testing.
Instead:
Before claiming the bug is fixed:
skills/kilo-kit/debugging/root-cause/ - For deeper root cause analysisskills/kilo-kit/debugging/verification/ - For thorough verificationskills/kilo-kit/quality/testing/ - For writing better testsSystematic Debugging Skill v1.0.0 — Understand before you fix