[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMY92TT7P1XQ1WZ8QGCD9N":3,"skill-same:01M7AMY92TT7P1XQ1WZ8QGCD9N":47},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7AMY92TT7P1XQ1WZ8QGCD9N","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.","Cyrilthetecchieee\u002Fcyril-code-","Cyrilthetecchieee","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219787998?v=4","01M7AF0MMMKRAA0H61XMJPV92H","Julian Cyril D ","01M7AF0MQ10AVG6QJQ1C2BC0F5",2,"MIT","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\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","57e7aa6b6e03bce1a7d7862ba9c2ec312f7f19b5","src\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering\u002Fskills\u002Fpr-review-expert",0,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee","https:\u002F\u002Fwithcyril.me\u002F","Hi, I’m Julian Cyril D, a Computer Science and Business Systems student at PSNACET.\r\nI’m passionate about full-stack development, UI\u002FUX design, and building sma","2026-11-04 23:28:50",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Cyrilthetecchieee\u002Fcyril-code- --skill pr-review-expert",{"tool":39,"command":40},"bunx","bunx skills add Cyrilthetecchieee\u002Fcyril-code- --skill pr-review-expert",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Cyrilthetecchieee\u002Fcyril-code- --skill pr-review-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fengineering\u002Fskills\u002Fpr-review-expert\u002FSKILL.md",true,[],[48,57,64,72,79,86],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":52,"licenseFileUrl":53,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7AQV6CYX8RMC78420V9WZ62","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7AQV2895N3S1MEX6K76G6G2","youtube-downloader","Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fvideo-downloader\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":52,"licenseFileUrl":68,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7AQTRNX62DNKVZ5GXEHRBKB","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftheme-factory\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7AQTNNVHAAN9H6DA8T6ZVE0","template-skill","Replace with description of the skill and when Claude should use it.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftemplate-skill\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7AQTJ3MQ6AKX152MEX2MYCC","tailored-resume-generator","Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftailored-resume-generator\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":52,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7AQTD7D5MYET2YWG7HG9WM3","slack-gif-creator","Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like \"make me a GIF for Slack of X doing Y\".","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fslack-gif-creator\u002FSKILL.md",[],[]]