[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7847N07SDKFAKEADFH4YBBC":3,"skill-same:01M7847N07SDKFAKEADFH4YBBC":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7847N07SDKFAKEADFH4YBBC","pr-review-expert",null,"Use when the user asks to review pull requests, analyze code changes, check for security issues in PRs, or assess code quality of diffs.","motivatedc-creator\u002FSaafy","motivatedc-creator","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F250662783?v=4","01M782H2D8C7XJGXMJC3YHQAWK","Happy Haris","01M782H2ERMBYEM1NSPPPC06S0",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmotivatedc-creator\u002FSaafy\u002Fblob\u002Fmain\u002Fengineering\u002Fskills\u002Fpr-review-expert\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"pr-review-expert\"\ndescription: \"Use when the user asks to review pull requests, analyze code changes, check for security issues in PRs, or assess code quality of diffs.\"\n---\n\n# PR Review Expert\n\n**Tier:** POWERFUL\n**Category:** Engineering\n**Domain:** Code Review \u002F Quality Assurance\n\n---\n\n## Overview\n\nStructured, systematic code review for GitHub PRs and GitLab MRs. Goes beyond style nits — this skill\nperforms blast radius analysis, security scanning, breaking change detection, and test coverage delta\ncalculation. Produces a reviewer-ready report with a 30+ item checklist and prioritized findings.\n\n---\n\n## Core Capabilities\n\n- **Blast radius analysis** — trace which files, services, and downstream consumers could break\n- **Security scan** — SQL injection, XSS, auth bypass, secret exposure, dependency vulns\n- **Test coverage delta** — new code vs new tests ratio\n- **Breaking change detection** — API contracts, DB schema migrations, config keys\n- **Ticket linking** — verify Jira\u002FLinear ticket exists and matches scope\n- **Performance impact** — N+1 queries, bundle size regression, memory allocations\n\n---\n\n## When to Use\n\n- Before merging any PR\u002FMR that touches shared libraries, APIs, or DB schema\n- When a PR is large (>200 lines changed) and needs structured review\n- Onboarding new contributors whose PRs need thorough feedback\n- Security-sensitive code paths (auth, payments, PII handling)\n- After an incident — review similar PRs proactively\n\n---\n\n## Fetching the Diff\n\n### GitHub (gh CLI)\n```bash\n# View diff in terminal\ngh pr diff \u003CPR_NUMBER>\n\n# Get PR metadata (title, body, labels, linked issues)\ngh pr view \u003CPR_NUMBER> --json title,body,labels,assignees,milestone\n\n# List files changed\ngh pr diff \u003CPR_NUMBER> --name-only\n\n# Check CI status\ngh pr checks \u003CPR_NUMBER>\n\n# Download diff to file for analysis\ngh pr diff \u003CPR_NUMBER> > \u002Ftmp\u002Fpr-\u003CPR_NUMBER>.diff\n```\n\n### GitLab (glab CLI)\n```bash\n# View MR diff\nglab mr diff \u003CMR_IID>\n\n# MR details as JSON\nglab mr view \u003CMR_IID> --output json\n\n# List changed files\nglab mr diff \u003CMR_IID> --name-only\n\n# Download diff\nglab mr diff \u003CMR_IID> > \u002Ftmp\u002Fmr-\u003CMR_IID>.diff\n```\n\n---\n\n## Workflow\n\n### Step 1 — Fetch Context\n\n```bash\nPR=123\ngh pr view $PR --json title,body,labels,milestone,assignees | jq .\ngh pr diff $PR --name-only\ngh pr diff $PR > \u002Ftmp\u002Fpr-$PR.diff\n```\n\n### Step 2 — Blast Radius Analysis\n\nFor each changed file, identify:\n\n1. **Direct dependents** — who imports this file?\n```bash\n# Find all files importing a changed module\ngrep -r \"from ['\\\"].*changed-module['\\\"]\" src\u002F --include=\"*.ts\" -l\ngrep -r \"require(['\\\"].*changed-module\" src\u002F --include=\"*.js\" -l\n\n# Python\ngrep -r \"from changed_module import\\|import changed_module\" . --include=\"*.py\" -l\n```\n\n2. **Service boundaries** — does this change cross a service?\n```bash\n# Check if changed files span multiple services (monorepo)\ngh pr diff $PR --name-only | cut -d\u002F -f1-2 | sort -u\n```\n\n3. **Shared contracts** — types, interfaces, schemas\n```bash\ngh pr diff $PR --name-only | grep -E \"types\u002F|interfaces\u002F|schemas\u002F|models\u002F\"\n```\n\n**Blast radius severity:**\n- CRITICAL — shared library, DB model, auth middleware, API contract\n- HIGH     — service used by >3 others, shared config, env vars\n- MEDIUM   — single service internal change, utility function\n- LOW      — UI component, test file, docs\n\n### Step 3 — Security Scan\n\n```bash\nDIFF=\u002Ftmp\u002Fpr-$PR.diff\n\n# SQL Injection — raw query string interpolation\ngrep -n \"query\\|execute\\|raw(\" $DIFF | grep -E '\\$\\{|f\"|%s|format\\('\n\n# Hardcoded secrets\ngrep -nE \"(password|secret|api_key|token|private_key)\\s*=\\s*['\\\"][^'\\\"]{8,}\" $DIFF\n\n# AWS key pattern\ngrep -nE \"AKIA[0-9A-Z]{16}\" $DIFF\n\n# JWT secret in code\ngrep -nE \"jwt\\.sign\\(.*['\\\"][^'\\\"]{20,}['\\\"]\" $DIFF\n\n# XSS vectors\ngrep -n \"dangerouslySetInnerHTML\\|innerHTML\\s*=\" $DIFF\n\n# Auth bypass patterns\ngrep -n \"bypass\\|skip.*auth\\|noauth\\|TODO.*auth\" $DIFF\n\n# Insecure hash algorithms\ngrep -nE \"md5\\(|sha1\\(|createHash\\(['\\\"]md5|createHash\\(['\\\"]sha1\" $DIFF\n\n# eval \u002F exec\ngrep -nE \"\\beval\\(|\\bexec\\(|\\bsubprocess\\.call\\(\" $DIFF\n\n# Prototype pollution\ngrep -n \"__proto__\\|constructor\\[\" $DIFF\n\n# Path traversal risk\ngrep -nE \"path\\.join\\(.*req\\.|readFile\\(.*req\\.\" $DIFF\n```\n\n### Step 4 — Test Coverage Delta\n\n```bash\n# Count source vs test files changed\nCHANGED_SRC=$(gh pr diff $PR --name-only | grep -vE \"\\.test\\.|\\.spec\\.|__tests__\")\nCHANGED_TESTS=$(gh pr diff $PR --name-only | grep -E \"\\.test\\.|\\.spec\\.|__tests__\")\n\necho \"Source files changed: $(echo \"$CHANGED_SRC\" | wc -w)\"\necho \"Test files changed:   $(echo \"$CHANGED_TESTS\" | wc -w)\"\n\n# Lines of new logic vs new test lines\nLOGIC_LINES=$(grep \"^+\" \u002Ftmp\u002Fpr-$PR.diff | grep -v \"^+++\" | wc -l)\necho \"New lines added: $LOGIC_LINES\"\n\n# Run coverage locally\nnpm test -- --coverage --changedSince=main 2>\u002Fdev\u002Fnull | tail -20\npytest --cov --cov-report=term-missing 2>\u002Fdev\u002Fnull | tail -20\n```\n\n**Coverage delta rules:**\n- New function without tests → flag\n- Deleted tests without deleted code → flag\n- Coverage drop >5% → block merge\n- Auth\u002Fpayments paths → require 100% coverage\n\n### Step 5 — Breaking Change Detection\n\n#### API Contract Changes\n```bash\n# OpenAPI\u002FSwagger spec changes\ngrep -n \"openapi\\|swagger\" \u002Ftmp\u002Fpr-$PR.diff | head -20\n\n# REST route removals or renames\ngrep \"^-\" \u002Ftmp\u002Fpr-$PR.diff | grep -E \"router\\.(get|post|put|delete|patch)\\(\"\n\n# GraphQL schema removals\ngrep \"^-\" \u002Ftmp\u002Fpr-$PR.diff | grep -E \"^-\\s*(type |field |Query |Mutation )\"\n\n# TypeScript interface removals\ngrep \"^-\" \u002Ftmp\u002Fpr-$PR.diff | grep -E \"^-\\s*(export\\s+)?(interface|type) \"\n```\n\n#### DB Schema Changes\n```bash\n# Migration files added\ngh pr diff $PR --name-only | grep -E \"migrations?\u002F|alembic\u002F|knex\u002F\"\n\n# Destructive operations\ngrep -E \"DROP TABLE|DROP COLUMN|ALTER.*NOT NULL|TRUNCATE\" \u002Ftmp\u002Fpr-$PR.diff\n\n# Index removals (perf regression risk)\ngrep \"DROP INDEX\\|remove_index\" \u002Ftmp\u002Fpr-$PR.diff\n```\n\n#### Config \u002F Env Var Changes\n```bash\n# New env vars referenced in code (might be missing in prod)\ngrep \"^+\" \u002Ftmp\u002Fpr-$PR.diff | grep -oE \"process\\.env\\.[A-Z_]+\" | sort -u\n\n# Removed env vars (could break running instances)\ngrep \"^-\" \u002Ftmp\u002Fpr-$PR.diff | grep -oE \"process\\.env\\.[A-Z_]+\" | sort -u\n```\n\n### Step 6 — Performance Impact\n\n```bash\n# N+1 query patterns (DB calls inside loops)\ngrep -n \"\\.find\\|\\.findOne\\|\\.query\\|db\\.\" \u002Ftmp\u002Fpr-$PR.diff | grep \"^+\" | head -20\n# Then check surrounding context for forEach\u002Fmap\u002Ffor loops\n\n# Heavy new dependencies\ngrep \"^+\" \u002Ftmp\u002Fpr-$PR.diff | grep -E '\"[a-z@].*\":\\s*\"[0-9^~]' | head -20\n\n# Unbounded loops\ngrep -n \"while (true\\|while(true\" \u002Ftmp\u002Fpr-$PR.diff | grep \"^+\"\n\n# Missing await (accidentally sequential promises)\ngrep -n \"await.*await\" \u002Ftmp\u002Fpr-$PR.diff | grep \"^+\" | head -10\n\n# Large in-memory allocations\ngrep -n \"new Array([0-9]\\{4,\\}\\|Buffer\\.alloc\" \u002Ftmp\u002Fpr-$PR.diff | grep \"^+\"\n```\n\n---\n\n## Ticket Linking Verification\n\n```bash\n# Extract ticket references from PR body\ngh pr view $PR --json body | jq -r '.body' | \\\n  grep -oE \"(PROJ-[0-9]+|[A-Z]+-[0-9]+|https:\u002F\u002Flinear\\.app\u002F[^)\\\"]+)\" | sort -u\n\n# Verify Jira ticket exists (requires JIRA_API_TOKEN to be SET in the environment).\n# Credentials are fed to curl via a config read from stdin (-K -) so the token\n# never appears in argv — `ps aux` \u002F \u002Fproc\u002F*\u002Fcmdline can't see it, and nothing\n# secret lands in shell history. Never paste the raw token on the command line.\nTICKET=\"PROJ-123\"\n: \"${JIRA_API_TOKEN:?JIRA_API_TOKEN must be set}\"\ncurl -s -K - \"https:\u002F\u002Fyour-org.atlassian.net\u002Frest\u002Fapi\u002F3\u002Fissue\u002F$TICKET\" \u003C\u003CEOF | \\\n  jq '{key, summary: .fields.summary, status: .fields.status.name}'\nuser = \"user@company.com:$JIRA_API_TOKEN\"\nEOF\n\n# Linear ticket — same pattern: the Authorization header goes through the\n# stdin config, not a -H flag, to keep the key out of the process list.\nLINEAR_ID=\"abc-123\"\n: \"${LINEAR_API_KEY:?LINEAR_API_KEY must be set}\"\ncurl -s -K - -H \"Content-Type: application\u002Fjson\" \\\n  --data \"{\\\"query\\\": \\\"{ issue(id: \\\\\\\"$LINEAR_ID\\\\\\\") { title state { name } } }\\\"}\" \\\n  https:\u002F\u002Fapi.linear.app\u002Fgraphql \u003C\u003CEOF | jq .\nheader = \"Authorization: $LINEAR_API_KEY\"\nEOF\n```\n\n> **Security note:** for repeated Jira use, prefer a `~\u002F.netrc` entry\n> (`machine your-org.atlassian.net login user@company.com password \u003Ctoken>`,\n> `chmod 600 ~\u002F.netrc`) and call `curl -s --netrc …` — no secret material in\n> the command at all.\n\n---\n\n## Complete Review Checklist (30+ Items)\n\n```markdown\n## Code Review Checklist\n\n### Scope & Context\n- [ ] PR title accurately describes the change\n- [ ] PR description explains WHY, not just WHAT\n- [ ] Linked Jira\u002FLinear ticket exists and matches scope\n- [ ] No unrelated changes (scope creep)\n- [ ] Breaking changes documented in PR body\n\n### Blast Radius\n- [ ] Identified all files importing changed modules\n- [ ] Cross-service dependencies checked\n- [ ] Shared types\u002Finterfaces\u002Fschemas reviewed for breakage\n- [ ] New env vars documented in .env.example\n- [ ] DB migrations are reversible (have down() \u002F rollback)\n\n### Security\n- [ ] No hardcoded secrets or API keys\n- [ ] SQL queries use parameterized inputs (no string interpolation)\n- [ ] User inputs validated\u002Fsanitized before use\n- [ ] Auth\u002Fauthorization checks on all new endpoints\n- [ ] No XSS vectors (innerHTML, dangerouslySetInnerHTML)\n- [ ] New dependencies checked for known CVEs\n- [ ] No sensitive data in logs (PII, tokens, passwords)\n- [ ] File uploads validated (type, size, content-type)\n- [ ] CORS configured correctly for new endpoints\n\n### Testing\n- [ ] New public functions have unit tests\n- [ ] Edge cases covered (empty, null, max values)\n- [ ] Error paths tested (not just happy path)\n- [ ] Integration tests for API endpoint changes\n- [ ] No tests deleted without clear reason\n- [ ] Test names clearly describe what they verify\n\n### Breaking Changes\n- [ ] No API endpoints removed without deprecation notice\n- [ ] No required fields added to existing API responses\n- [ ] No DB columns removed without two-phase migration plan\n- [ ] No env vars removed that may be set in production\n- [ ] Backward-compatible for external API consumers\n\n### Performance\n- [ ] No N+1 query patterns introduced\n- [ ] DB indexes added for new query patterns\n- [ ] No unbounded loops on potentially large datasets\n- [ ] No heavy new dependencies without justification\n- [ ] Async operations correctly awaited\n- [ ] Caching considered for expensive repeated operations\n\n### Code Quality\n- [ ] No dead code or unused imports\n- [ ] Error handling present (no bare empty catch blocks)\n- [ ] Consistent with existing patterns and conventions\n- [ ] Complex logic has explanatory comments\n- [ ] No unresolved TODOs (or tracked in ticket)\n```\n\n---\n\n## Output Format\n\nStructure your review comment as:\n\n```\n## PR Review: [PR Title] (#NUMBER)\n\nBlast Radius: HIGH — changes lib\u002Fauth used by 5 services\nSecurity: 1 finding (medium severity)\nTests: Coverage delta +2%\nBreaking Changes: None detected\n\n--- MUST FIX (Blocking) ---\n\n1. SQL Injection risk in src\u002Fdb\u002Fusers.ts:42\n   Raw string interpolation in WHERE clause.\n   Fix: db.query(\"SELECT * WHERE id = $1\", [userId])\n\n--- SHOULD FIX (Non-blocking) ---\n\n2. Missing auth check on POST \u002Fapi\u002Fadmin\u002Freset\n   No role verification before destructive operation.\n\n--- SUGGESTIONS ---\n\n3. N+1 pattern in src\u002Fservices\u002Freports.ts:88\n   findUser() called inside results.map() — batch with findManyUsers(ids)\n\n--- LOOKS GOOD ---\n- Test coverage for new auth flow is thorough\n- DB migration has proper down() rollback method\n- Error handling consistent with rest of codebase\n```\n\n---\n\n## Common Pitfalls\n\n- **Reviewing style over substance** — let the linter handle style; focus on logic, security, correctness\n- **Missing blast radius** — a 5-line change in a shared utility can break 20 services\n- **Approving untested happy paths** — always verify error paths have coverage\n- **Ignoring migration risk** — NOT NULL additions need a default or two-phase migration\n- **Indirect secret exposure** — secrets in error messages\u002Flogs, not just hardcoded values\n- **Skipping large PRs** — if a PR is too large to review properly, request it be split\n\n---\n\n## Best Practices\n\n1. Read the linked ticket before looking at code — context prevents false positives\n2. Check CI status before reviewing — don't review code that fails to build\n3. Prioritize blast radius and security over style\n4. Reproduce locally for non-trivial auth or performance changes\n5. Label each comment clearly: \"nit:\", \"must:\", \"question:\", \"suggestion:\"\n6. Batch all comments in one review round — don't trickle feedback\n7. Acknowledge good patterns, not just problems — specific praise improves culture\n","# PR Review Expert\n\n**Tier:** POWERFUL\n**Category:** Engineering\n**Domain:** Code Review \u002F Quality Assurance\n\n---\n\n## Overview\n\nStructured, systematic code review for GitHub PRs and GitLab MRs. Goes beyond style nits — this skill\nperforms blast radius analysis, security scanning, breaking change detection, and test coverage delta\ncalculation. Produces a reviewer-ready report with a 30+ item checklist and prioritized findings.\n\n---\n\n## Core Capabilities\n\n- **Blast radius analysis** — trace which files, services, and downstream consumers could break\n- **Security scan** — SQL injection, XSS, auth bypass, secret exposure, dependency vulns\n- **Test coverage delta** — new code vs new tests ratio\n- **Breaking change detection** — API contracts, DB schema migrations, config keys\n- **Ticket linking** — verify Jira\u002FLinear ticket exists and matches scope\n- **Performance impact** — N+1 queries, bundle size regression, memory allocations\n\n---\n\n## When to Use\n\n- Before merging any PR\u002FMR that touches shared libraries, APIs, or DB schema\n- When a PR is large (>200 lines changed) and needs structured review\n- Onboarding new contributors whose PRs need thorough feedback\n- Security-sensitive code paths (auth, payments, PII handling)\n- After an incident — review similar PRs proactively\n\n---\n\n## Fetching the Diff\n\n### GitHub (gh CLI)\n```bash\n# View diff in terminal\ngh pr diff \u003CPR_NUMBER>\n\n# Get PR metadata (title, body, labels, linked issues)\ngh pr view \u003CPR_NUMBER> --json title,body,labels,assignees,milestone\n\n# List files changed\ngh pr diff \u003CPR_NUMBER> --name-only\n\n# Check CI status\ngh pr checks \u003CPR_NUMBER>\n\n# Download diff to file for analysis\ngh pr diff \u003CPR_NUMBER> > \u002Ftmp\u002Fpr-\u003CPR_NUMBER>.diff\n```\n\n### GitLab (glab CLI)\n```bash\n# View MR diff\nglab mr diff \u003CMR_IID>\n\n# MR details as JSON\nglab mr view \u003CMR_IID> --output json\n\n# List changed files\nglab mr diff \u003CMR_IID> --name-only\n\n# Download diff\nglab mr diff \u003CMR_IID> > \u002Ftmp\u002Fmr-\u003CMR_IID>.diff\n```\n\n---\n\n## Workflow\n\n### Step 1 — Fetch Context\n\n```bash\nPR=123\ngh pr view $PR --json title,body,labels,milestone,assignees | jq .\ngh pr diff $PR --name-only\ngh pr diff $PR > \u002Ftmp\u002Fpr-$PR.diff\n```\n\n### Step 2 — Blast Radius Analysis\n\nFor each changed file, identify:\n\n1. **Direct dependents** — who imports this file?\n```bash\n# Find all files importing a changed module\ngrep -r \"from ['\\\"].*changed-module['\\\"]\" src\u002F --include=\"*.ts\" -l\ngrep -r \"require(['\\\"].*changed-module\" src\u002F --include=\"*.js\" -l\n\n# Python\ngrep -r \"from changed_module import\\|import changed_module\" . --include=\"*.py\" -l\n```\n\n2. **Service boundaries** — does this change cross a service?\n```bash\n# Check if changed files span multiple services (monorepo)\ngh pr diff $PR --name-only | cut -d\u002F -f1-2 | sort -u\n```\n\n3. **Shared contracts** — types, interfaces, schemas\n```bash\ngh pr diff $PR --name-only | grep -E \"types\u002F|interfaces\u002F|schemas\u002F|models\u002F\"\n```\n\n**Blast radius severity:**\n- CRITICAL — shared library, DB model, auth middleware, API contract\n- HIGH     — service used by >3 others, shared config, env vars\n- MEDIUM   — single service internal change, utility function\n- LOW      — UI component, test file, docs\n\n### Step 3 — Security Scan\n\n```bash\nDIFF=\u002Ftmp\u002Fpr-$PR.diff\n\n# SQL Injection — raw query string interpolation\ngrep -n \"query\\|execute\\|raw(\" $DIFF | grep -E '\\$\\{|f\"|%s|format\\('\n\n# Hardcoded secrets\ngrep -nE \"(password|secret|api_key|token|private_key)\\s*=\\s*['\\\"][^'\\\"]{8,}\" $DIFF\n\n# AWS key pattern\ngrep -nE \"AKIA[0-9A-Z]{16}\" $DIFF\n\n# JWT secret in code\ngrep -nE \"jwt\\.sign\\(.*['\\\"][^'\\\"]{20,}['\\\"]\" $DIFF\n\n# XSS vectors\ngrep -n \"dangerouslySetInnerHTML\\|innerHTML\\s*=\" $DIFF\n\n# Auth bypass patterns\ngrep -n \"bypass\\|skip.*auth\\|noauth\\|TODO.*auth\" $DIFF\n\n# Insecure hash algorithms\ngrep -nE \"md5\\(|sha1\\(|createHash\\(['\\\"]md5|createHash\\(['\\\"]sha1\" $DIFF\n\n# eval \u002F exec\ngrep -nE \"\\beval\\(|\\bexec\\(|\\bsubprocess\\.call\\(\" $DIFF\n\n# Prototype pollution\ngrep -n \"__proto__\\|constructor\\[\" $DIFF\n\n# Path traversal risk\ngrep -nE \"path\\.join\\(.*req\\.|readFile\\(.*req\\.\" $DIFF\n```\n\n### Step 4 — Test Coverage Delta\n\n```bash\n# Count source vs test files changed\nCHANGED_SRC=$(gh pr diff $PR --name-only | grep -vE \"\\.test\\.|\\.spec\\.|__tests__\")\nCHANGED_TESTS=$(gh pr diff $PR --name-only | grep -E \"\\.test\\.|\\.spec\\.|__tests__\")\n\necho \"Source files changed: $(echo \"$CHANGED_SRC\" | wc -w)\"\necho \"Test files changed:   $(echo \"$CHANGED_TESTS\" | wc -w)\"\n\n# Lines of new logic vs new test lines\nLOGIC_LINES=$(grep \"^+\" \u002Ftmp\u002Fpr-$PR.diff | grep -v \"^+++\" | wc -l)\necho \"New lines added: $LOGIC_LINES\"\n\n# Run coverage locally\nnpm test -- --coverage --changedSince=main 2>\u002Fdev\u002Fnull | tail -20\npytest --cov --cov-report=term-missing 2>\u002Fdev\u002Fnull | tail -20\n```\n\n**Coverage delta rules:**\n- New function without tests → flag\n- Deleted tests without deleted code → flag\n- Coverage drop >5% → block merge\n- Auth\u002Fpayments paths → require 100% coverage\n\n### Step 5 — Breaking Change Detection\n\n#### API Contract Changes\n```bash\n# OpenAPI\u002FSwagger spec changes\ngrep -n \"openapi\\|swagger\" \u002Ftmp\u002Fpr-$PR.diff | head -20\n\n# REST route removals or renames\ngrep \"^-\" \u002Ftmp\u002Fpr-$PR.diff | grep -E \"router\\.(get|post|put|delete|patch)\\(\"\n\n# GraphQL schema removals\ngrep \"^-\" \u002Ftmp\u002Fpr-$PR.diff | grep -E \"^-\\s*(type |field |Query |Mutation )\"\n\n# TypeScript interface removals\ngrep \"^-\" \u002Ftmp\u002Fpr-$PR.diff | grep -E \"^-\\s*(export\\s+)?(interface|type) \"\n```\n\n#### DB Schema Changes\n```bash\n# Migration files added\ngh pr diff $PR --name-only | grep -E \"migrations?\u002F|alembic\u002F|knex\u002F\"\n\n# Destructive operations\ngrep -E \"DROP TABLE|DROP COLUMN|ALTER.*NOT NULL|TRUNCATE\" \u002Ftmp\u002Fpr-$PR.diff\n\n# Index removals (perf regression risk)\ngrep \"DROP INDEX\\|remove_index\" \u002Ftmp\u002Fpr-$PR.diff\n```\n\n#### Config \u002F Env Var Changes\n```bash\n# New env vars referenced in code (might be missing in prod)\ngrep \"^+\" \u002Ftmp\u002Fpr-$PR.diff | grep -oE \"process\\.env\\.[A-Z_]+\" | sort -u\n\n# Removed env vars (could break running instances)\ngrep \"^-\" \u002Ftmp\u002Fpr-$PR.diff | grep -oE \"process\\.env\\.[A-Z_]+\" | sort -u\n```\n\n### Step 6 — Performance Impact\n\n```bash\n# N+1 query patterns (DB calls inside loops)\ngrep -n \"\\.find\\|\\.findOne\\|\\.query\\|db\\.\" \u002Ftmp\u002Fpr-$PR.diff | grep \"^+\" | head -20\n# Then check surrounding context for forEach\u002Fmap\u002Ffor loops\n\n# Heavy new dependencies\ngrep \"^+\" \u002Ftmp\u002Fpr-$PR.diff | grep -E '\"[a-z@].*\":\\s*\"[0-9^~]' | head -20\n\n# Unbounded loops\ngrep -n \"while (true\\|while(true\" \u002Ftmp\u002Fpr-$PR.diff | grep \"^+\"\n\n# Missing await (accidentally sequential promises)\ngrep -n \"await.*await\" \u002Ftmp\u002Fpr-$PR.diff | grep \"^+\" | head -10\n\n# Large in-memory allocations\ngrep -n \"new Array([0-9]\\{4,\\}\\|Buffer\\.alloc\" \u002Ftmp\u002Fpr-$PR.diff | grep \"^+\"\n```\n\n---\n\n## Ticket Linking Verification\n\n```bash\n# Extract ticket references from PR body\ngh pr view $PR --json body | jq -r '.body' | \\\n  grep -oE \"(PROJ-[0-9]+|[A-Z]+-[0-9]+|https:\u002F\u002Flinear\\.app\u002F[^)\\\"]+)\" | sort -u\n\n# Verify Jira ticket exists (requires JIRA_API_TOKEN to be SET in the environment).\n# Credentials are fed to curl via a config read from stdin (-K -) so the token\n# never appears in argv — `ps aux` \u002F \u002Fproc\u002F*\u002Fcmdline can't see it, and nothing\n# secret lands in shell history. Never paste the raw token on the command line.\nTICKET=\"PROJ-123\"\n: \"${JIRA_API_TOKEN:?JIRA_API_TOKEN must be set}\"\ncurl -s -K - \"https:\u002F\u002Fyour-org.atlassian.net\u002Frest\u002Fapi\u002F3\u002Fissue\u002F$TICKET\" \u003C\u003CEOF | \\\n  jq '{key, summary: .fields.summary, status: .fields.status.name}'\nuser = \"user@company.com:$JIRA_API_TOKEN\"\nEOF\n\n# Linear ticket — same pattern: the Authorization header goes through the\n# stdin config, not a -H flag, to keep the key out of the process list.\nLINEAR_ID=\"abc-123\"\n: \"${LINEAR_API_KEY:?LINEAR_API_KEY must be set}\"\ncurl -s -K - -H \"Content-Type: application\u002Fjson\" \\\n  --data \"{\\\"query\\\": \\\"{ issue(id: \\\\\\\"$LINEAR_ID\\\\\\\") { title state { name } } }\\\"}\" \\\n  https:\u002F\u002Fapi.linear.app\u002Fgraphql \u003C\u003CEOF | jq .\nheader = \"Authorization: $LINEAR_API_KEY\"\nEOF\n```\n\n> **Security note:** for repeated Jira use, prefer a `~\u002F.netrc` entry\n> (`machine your-org.atlassian.net login user@company.com password \u003Ctoken>`,\n> `chmod 600 ~\u002F.netrc`) and call `curl -s --netrc …` — no secret material in\n> the command at all.\n\n---\n\n## Complete Review Checklist (30+ Items)\n\n```markdown\n## Code Review Checklist\n\n### Scope & Context\n- [ ] PR title accurately describes the change\n- [ ] PR description explains WHY, not just WHAT\n- [ ] Linked Jira\u002FLinear ticket exists and matches scope\n- [ ] No unrelated changes (scope creep)\n- [ ] Breaking changes documented in PR body\n\n### Blast Radius\n- [ ] Identified all files importing changed modules\n- [ ] Cross-service dependencies checked\n- [ ] Shared types\u002Finterfaces\u002Fschemas reviewed for breakage\n- [ ] New env vars documented in .env.example\n- [ ] DB migrations are reversible (have down() \u002F rollback)\n\n### Security\n- [ ] No hardcoded secrets or API keys\n- [ ] SQL queries use parameterized inputs (no string interpolation)\n- [ ] User inputs validated\u002Fsanitized before use\n- [ ] Auth\u002Fauthorization checks on all new endpoints\n- [ ] No XSS vectors (innerHTML, dangerouslySetInnerHTML)\n- [ ] New dependencies checked for known CVEs\n- [ ] No sensitive data in logs (PII, tokens, passwords)\n- [ ] File uploads validated (type, size, content-type)\n- [ ] CORS configured correctly for new endpoints\n\n### Testing\n- [ ] New public functions have unit tests\n- [ ] Edge cases covered (empty, null, max values)\n- [ ] Error paths tested (not just happy path)\n- [ ] Integration tests for API endpoint changes\n- [ ] No tests deleted without clear reason\n- [ ] Test names clearly describe what they verify\n\n### Breaking Changes\n- [ ] No API endpoints removed without deprecation notice\n- [ ] No required fields added to existing API responses\n- [ ] No DB columns removed without two-phase migration plan\n- [ ] No env vars removed that may be set in production\n- [ ] Backward-compatible for external API consumers\n\n### Performance\n- [ ] No N+1 query patterns introduced\n- [ ] DB indexes added for new query patterns\n- [ ] No unbounded loops on potentially large datasets\n- [ ] No heavy new dependencies without justification\n- [ ] Async operations correctly awaited\n- [ ] Caching considered for expensive repeated operations\n\n### Code Quality\n- [ ] No dead code or unused imports\n- [ ] Error handling present (no bare empty catch blocks)\n- [ ] Consistent with existing patterns and conventions\n- [ ] Complex logic has explanatory comments\n- [ ] No unresolved TODOs (or tracked in ticket)\n```\n\n---\n\n## Output Format\n\nStructure your review comment as:\n\n```\n## PR Review: [PR Title] (#NUMBER)\n\nBlast Radius: HIGH — changes lib\u002Fauth used by 5 services\nSecurity: 1 finding (medium severity)\nTests: Coverage delta +2%\nBreaking Changes: None detected\n\n--- MUST FIX (Blocking) ---\n\n1. SQL Injection risk in src\u002Fdb\u002Fusers.ts:42\n   Raw string interpolation in WHERE clause.\n   Fix: db.query(\"SELECT * WHERE id = $1\", [userId])\n\n--- SHOULD FIX (Non-blocking) ---\n\n2. Missing auth check on POST \u002Fapi\u002Fadmin\u002Freset\n   No role verification before destructive operation.\n\n--- SUGGESTIONS ---\n\n3. N+1 pattern in src\u002Fservices\u002Freports.ts:88\n   findUser() called inside results.map() — batch with findManyUsers(ids)\n\n--- LOOKS GOOD ---\n- Test coverage for new auth flow is thorough\n- DB migration has proper down() rollback method\n- Error handling consistent with rest of codebase\n```\n\n---\n\n## Common Pitfalls\n\n- **Reviewing style over substance** — let the linter handle style; focus on logic, security, correctness\n- **Missing blast radius** — a 5-line change in a shared utility can break 20 services\n- **Approving untested happy paths** — always verify error paths have coverage\n- **Ignoring migration risk** — NOT NULL additions need a default or two-phase migration\n- **Indirect secret exposure** — secrets in error messages\u002Flogs, not just hardcoded values\n- **Skipping large PRs** — if a PR is too large to review properly, request it be split\n\n---\n\n## Best Practices\n\n1. Read the linked ticket before looking at code — context prevents false positives\n2. Check CI status before reviewing — don't review code that fails to build\n3. Prioritize blast radius and security over style\n4. Reproduce locally for non-trivial auth or performance changes\n5. Label each comment clearly: \"nit:\", \"must:\", \"question:\", \"suggestion:\"\n6. Batch all comments in one review round — don't trickle feedback\n7. Acknowledge good patterns, not just problems — specific praise improves culture\n",{"name":5,"description":7},"main","55ae24ca5523c0499dd70b2874ef674a0e66a85b","engineering\u002Fskills\u002Fpr-review-expert","https:\u002F\u002Fgithub.com\u002Fmotivatedc-creator\u002FSaafy","https:\u002F\u002Fgithub.com\u002Fmotivatedc-creator","2026-07-04 02:45:55",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add motivatedc-creator\u002FSaafy --skill pr-review-expert",{"tool":36,"command":37},"bunx","bunx skills add motivatedc-creator\u002FSaafy --skill pr-review-expert",{"tool":39,"command":40},"pnpm","pnpm dlx skills add motivatedc-creator\u002FSaafy --skill pr-review-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmotivatedc-creator\u002FSaafy\u002Fblob\u002Fmain\u002Fengineering\u002Fskills\u002Fpr-review-expert\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M78558T3RQ22S1B5H0FJAY1Y","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","https:\u002F\u002Fgithub.com\u002Fmotivatedc-creator\u002FSaafy\u002Fblob\u002Fmain\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7854YEAAV883M2PKS04TQEK","research","Default entry point for any research request — a hybrid router that classifies the question deterministically and either delegates to a specialist research skill (pulse for trends\u002Fsentiment, grants for NIH funding, litreview for academic literature, syllabus for course reading, patent for prior-art + IP landscape, dossier for entity research) or runs its own plan-decompose-multi-source-search-synthesize-cite fallback workflow when no specialist matches. Always surfaces the routing decision so users can override. Use when the user makes any research request that doesn't obviously match a more-specific specialist skill (e.g., \"research [topic]\", \"look into [topic]\", \"what do we know about [topic]\", \"investigate [topic]\", \"find me information on [topic]\", \"do some research on [topic]\", \"I need to understand [topic]\"). Output is a markdown briefing (default) or .docx document (on request) with full citations and an audit log.","https:\u002F\u002Fgithub.com\u002Fmotivatedc-creator\u002FSaafy\u002Fblob\u002Fmain\u002Fresearch\u002Fresearch\u002Fskills\u002Fresearch\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7854NCGDBQ6Q0QG2YY4VHSX","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fmotivatedc-creator\u002FSaafy\u002Fblob\u002Fmain\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M78549YZMPYGC1F6S7ZJ4VF8","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fmotivatedc-creator\u002FSaafy\u002Fblob\u002Fmain\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M78541PWEQMBPN91PEZZK8H7","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fmotivatedc-creator\u002FSaafy\u002Fblob\u002Fmain\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7853P7CWJNW5G0Z99YB6H5D","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fmotivatedc-creator\u002FSaafy\u002Fblob\u002Fmain\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[]]