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).
code-reviewComprehensive code review checklist and methodology. Use when reviewing PRs, conducting code audits, or assessing code quality. Keywords: review, PR, code review, audit, assess, quality, check
Independent GitHub snapshot ยท Automated classification ยท Original documentation governs
Philosophy: Code review is collaboration, not criticism.
Use this skill when:
Do NOT use this skill when:
Before starting review:
Goal: Understand WHAT and WHY before HOW.
Steps:
Read the PR Description
Check Related Issues
Assess Scope
Output: Clear understanding of change purpose.
Goal: Evaluate architecture and design decisions.
Checklist:
DESIGN
โก Does the solution make sense?
โก Is this the right place for this code?
โก Does it follow project patterns?
โก Is it over-engineered?
โก Is it under-engineered?
ARCHITECTURE
โก Proper separation of concerns?
โก Dependencies going the right direction?
โก New dependencies justified?
โก Breaking any architectural boundaries?
SCOPE
โก Does change match stated purpose?
โก Any scope creep?
โก Any missing pieces?
Output: Assessment of overall approach.
Goal: Examine code quality and correctness.
Checklist:
CORRECTNESS
โก Logic is correct
โก Edge cases handled
โก Error cases handled
โก Null/undefined handled
โก No off-by-one errors
โก Concurrency issues addressed
QUALITY
โก Clear variable/function names
โก Single responsibility principle
โก DRY (no unnecessary duplication)
โก Comments explain WHY, not WHAT
โก No dead code
โก No commented-out code
โก No TODOs without tracking
SECURITY
โก Input validation
โก No SQL injection risks
โก No XSS risks
โก Secrets not hardcoded
โก Proper authentication checks
โก Authorization verified
PERFORMANCE
โก No obvious N+1 queries
โก Appropriate caching
โก No blocking operations where async needed
โก Large data sets handled efficiently
Output: Detailed feedback on code quality.
Goal: Ensure adequate test coverage.
Checklist:
TEST PRESENCE
โก Tests added for new functionality?
โก Tests updated for modified functionality?
โก Test file naming consistent?
TEST QUALITY
โก Tests are meaningful (not just coverage)?
โก Edge cases tested?
โก Error cases tested?
โก Tests are independent/isolated?
โก No flaky tests introduced?
TEST COVERAGE
โก Happy path covered?
โก Unhappy path covered?
โก Boundary conditions covered?
Output: Assessment of test adequacy.
Goal: Ensure readiness for merge.
Checklist:
DOCUMENTATION
โก README updated if needed?
โก API docs updated if needed?
โก Inline comments sufficient?
โก Migration guide if breaking changes?
OPERATIONAL
โก Logs added for debugging?
โก Metrics/monitoring considered?
โก Feature flags if needed?
โก Rollback plan if needed?
MERGE READINESS
โก CI passes?
โก No merge conflicts?
โก Approved by required reviewers?
โก All conversations resolved?
Output: Clear approve/request changes decision.
| Prefix | Meaning | Action Required |
|---|---|---|
๐ด BLOCKER: | Must fix before merge | Yes, mandatory |
๐ก SUGGESTION: | Should consider | Recommended |
๐ข NIT: | Minor, optional | No |
โ QUESTION: | Need clarification | Response needed |
๐ก IDEA: | Future improvement | No |
๐ PRAISE: | Great work! | No |
Good:
๐ด BLOCKER: This SQL query is vulnerable to injection.
Use parameterized queries instead:
`db.query("SELECT * FROM users WHERE id = ?", [userId])`
Bad:
This is wrong.
| Issue | Detection | Solution |
|---|---|---|
| SQL Injection | String concatenation in queries | Parameterized queries |
| XSS | Unescaped user input in HTML | Proper escaping/encoding |
| Hardcoded secrets | API keys in code | Environment variables |
| Missing auth | Endpoints without checks | Add auth middleware |
| Issue | Detection | Solution |
|---|---|---|
| N+1 queries | Loop with DB calls | Batch/eager loading |
| Missing index | Slow queries on large tables | Add database index |
| Blocking I/O | Sync calls in async context | Use async/await |
| Memory leak | Unbounded caches/listeners | Cleanup/limits |
| Issue | Detection | Solution |
|---|---|---|
| God function | 100+ lines, many responsibilities | Break into smaller functions |
| Magic numbers | if (status === 3) | Named constants |
| Deep nesting | 4+ levels of if/for | Early returns, extraction |
| Copy-paste code | Similar blocks repeated | Extract utility function |
Before approving:
skills/kilo-kit/quality/testing/ - For test quality guidanceskills/kilo-kit/development/security/ - For security reviewskills/kilo-kit/debugging/systematic/ - If bugs found during reviewCode Review Skill v1.0.0 โ Collaboration, not criticism