code-review-checklist
$
npx mdskill add mohitagw15856/pm-claude-skills/code-review-checklistProduces a tailored code review checklist for a specific pull request — scaled to the language, type of change, and risk level. Not a generic template.
SKILL.md
.github/skills/code-review-checklistView on GitHub ↗
--- name: code-review-checklist description: "Generate a tailored code review checklist for any pull request based on the language, type of change, and risk level. Use when asked to review code, check a PR, review a pull request, or generate a code review checklist. Produces a focused checklist with language-specific checks, risk-level-appropriate depth, and a clear approve/request-changes recommendation." --- # Code Review Checklist Skill Produces a tailored code review checklist for a specific pull request — scaled to the language, type of change, and risk level. Not a generic template. ## Required Inputs Ask the user for these if not provided: - **Language and framework** (e.g. TypeScript + React / Python + FastAPI / Go) - **Type of change** (feature / bug fix / refactor / dependency upgrade / security patch / performance) - **Risk level** (low / medium / high / critical) - **PR description** (paste the description or link to the PR) - **Code or diff** (optional — paste key changed files or a `git diff`; significantly improves checklist specificity) - **Author context** (new starter / experienced / external contributor) ## Output Format --- # Code Review: [PR Title or Reference] ### 1. PR Overview **Scope assessment:** [Small / Medium / Large / Too large — should be split] **Recommended review depth:** [Skim / Standard / Deep dive] **Estimated review time:** [e.g. 20–30 min — use 5 min per 50 lines of diff as a rough guide] ### 2. Correctness Checks Language-specific correctness checks — choose based on the language stated: **For TypeScript/JavaScript:** - Type definitions match actual usage - No implicit `any` in non-test code - Async/await used consistently; no unhandled promises - Null/undefined handling is explicit **For Python:** - Type hints present on public functions - Exception handling is specific (no bare except) - Resources are closed (context managers, with blocks) **For Go:** - Errors are handled or explicitly ignored with a comment - Context propagation is correct - Goroutine lifetimes are bounded [Include only the section matching the stated language] ### 3. Change-Type-Specific Checks **For bug fixes:** - A test exists that would have caught this bug - The fix addresses root cause, not symptom - Related code paths checked for the same issue **For features:** - Acceptance criteria met - Edge cases handled (empty, large, concurrent) - Error paths tested, not just happy path - Telemetry/logging added for debugging **For refactors:** - Behaviour unchanged (tests still pass) - No scope creep — refactor only - Complexity reduced, not just moved **For dependency upgrades:** - Breaking changes reviewed - Security advisories checked - License compatibility verified [Include only the section matching the stated change type] ### 4. Risk-Appropriate Checks **Low risk:** basic correctness, style conventions, test coverage **Medium risk:** above + rollback plan, monitoring updates, performance considerations **High risk:** above + security implications, data migration safety, feature flag/gradual rollout **Critical risk:** above + staging validation plan, incident response plan, post-deploy verification checklist ### 5. Testing Adequacy - Unit tests cover new logic - Integration tests cover the contract changes - Edge cases tested - Failure modes tested - Performance tests if performance-sensitive ### 6. Review Decision Framework **Approve if:** [2-3 specific conditions based on this PR] **Request changes if:** [Specific blockers] **Comment (non-blocking) if:** [Items worth discussing but not blocking merge] ### 7. Common Pitfalls for This Change Type Based on the change type and language, flag 2-3 things reviewers typically miss for this combination. --- ## Quality Checks - [ ] Checklist is tailored to the stated language (not generic) - [ ] Change-type-specific section is included - [ ] Risk-appropriate depth matches stated risk level - [ ] Decision framework includes at least one named blocking condition and one named non-blocking comment condition - [ ] Common pitfalls are specific to the stated language + change-type combo (not generic advice like "watch out for bugs") ## Usage Examples - "Generate a code review checklist for [PR description]" - "What should I check in this pull request?" - "Give me a code review checklist for a [language] [change type]" - "Review checklist for a high-risk PR in [language]"
More from mohitagw15856/pm-claude-skills
- 360-feedback-templateDesign a 360-degree feedback survey or write a structured 360 feedback report. Use when asked to build a 360 feedback process, write 360 feedback for a colleague, design a feedback survey, or produce a feedback report. Produces either a complete survey instrument with rating scales and open-ended questions, or a structured narrative feedback report with themes, strengths, and development areas.
- ab-test-plannerDesign statistically rigorous A/B tests for product features, UI changes, onboarding flows, and pricing experiments. Use when asked to set up an experiment, design an A/B test, calculate sample size, or interpret test results. Produces a complete test plan with hypothesis, variant definitions, sample size, duration estimate, guardrail metrics, and a results interpretation guide.
- accessibility-auditGenerate a WCAG 2.2 accessibility audit checklist and remediation suggestions for any UI or design. Use when asked to audit for accessibility, check WCAG compliance, review a design for a11y issues, or create an accessibility remediation plan. Produces a prioritised checklist with pass/fail assessments and specific fixes.
- account-planBuild a structured account plan for any key customer or target account. Use when asked to create an account plan, key account strategy, strategic account review, or territory plan. Produces a complete account plan with relationship map, growth opportunities, risks, and 90-day action plan.
- aeo-optimizerOptimize an article for Answer Engine Optimization (AEO) — restructuring content so AI engines like ChatGPT, Perplexity, and Claude can extract, quote, and cite it. Rewrites headings as questions, drops 50-80 word answer capsules, audits paragraph length, and flags trust signals. Use when asked to AEO-optimize, make content AI-readable, improve AI citation chances, or adapt an article for answer engines.
- ai-ethics-reviewConduct an ethical review of an AI or ML feature, model, or product. Use when asked to run an AI ethics review, assess AI risks, audit a model for bias, or produce an AI impact assessment. Produces a structured ethics review covering fairness, transparency, privacy, safety, accountability, and societal impact with prioritised mitigations.
- ai-product-canvasStructure AI and ML product decisions with the rigour of any product decision. Use when building AI-powered features, evaluating LLM integrations, designing AI products, or assessing AI readiness. Produces a complete AI product canvas covering problem definition, model approach, data requirements, evaluation framework, UX design, responsible AI checklist, and launch monitoring plan.
- ambiguity-resolverStructure vague opportunities and unclear briefs into actionable one-page problem statements. Use when asked to clarify a vague brief, frame an undefined problem, make sense of an unclear opportunity, or when the user says 'we need to figure out what to do about X' or 'I've been asked to look into Y'. Produces a structured problem brief with reframed questions, scoped boundaries, and a minimum viable research plan.
- api-docs-writerWrite clear, developer-facing API documentation. Use when asked to document an API endpoint, write API reference docs, create a developer guide, or turn a raw spec/Postman collection into documentation. Produces endpoint documentation with descriptions, parameters, request/response examples, and error codes.
- api-versioning-strategyWrite an API versioning strategy document for a service or API platform. Use when asked to define versioning policy, plan API deprecation, classify breaking changes, or document version lifecycle. Produces a complete versioning strategy with breaking-change classification table, deprecation timeline, migration guide template, and client communication template.