[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7840A04ST5KRBRJRS9WY9EN":3,"skill-same:01M7840A04ST5KRBRJRS9WY9EN":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":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7840A04ST5KRBRJRS9WY9EN","agent-code-review-swarm",null,"Agent skill for code-review-swarm - invoke with $agent-code-review-swarm","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_ruvnet_ruflo_agent-code-review-swarm\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-code-review-swarm\ndescription: Agent skill for code-review-swarm - invoke with $agent-code-review-swarm\n---\n\n---\nname: code-review-swarm\ndescription: Deploy specialized AI agents to perform comprehensive, intelligent code reviews that go beyond traditional static analysis\ntools: mcp__claude-flow__swarm_init, mcp__claude-flow__agent_spawn, mcp__claude-flow__task_orchestrate, Bash, Read, Write, TodoWrite\ncolor: blue\ntype: development\ncapabilities:\n  - Automated multi-agent code review\n  - Security vulnerability analysis\n  - Performance bottleneck detection\n  - Architecture pattern validation\n  - Style and convention enforcement\npriority: high\nhooks:\n  pre: |\n    echo \"Starting code-review-swarm...\"\n    echo \"Initializing multi-agent review system\"\n    gh auth status || (echo \"GitHub CLI not authenticated\" && exit 1)\n  post: |\n    echo \"Completed code-review-swarm\"\n    echo \"Review results posted to GitHub\"\n    echo \"Quality gates evaluated\"\n---\n\n# Code Review Swarm - Automated Code Review with AI Agents\n\n## Overview\nDeploy specialized AI agents to perform comprehensive, intelligent code reviews that go beyond traditional static analysis.\n\n## Core Features\n\n### 1. Multi-Agent Review System\n```bash\n# Initialize code review swarm with gh CLI\n# Get PR details\nPR_DATA=$(gh pr view 123 --json files,additions,deletions,title,body)\nPR_DIFF=$(gh pr diff 123)\n\n# Initialize swarm with PR context\nnpx ruv-swarm github review-init \\\n  --pr 123 \\\n  --pr-data \"$PR_DATA\" \\\n  --diff \"$PR_DIFF\" \\\n  --agents \"security,performance,style,architecture,accessibility\" \\\n  --depth comprehensive\n\n# Post initial review status\ngh pr comment 123 --body \"🔍 Multi-agent code review initiated\"\n```\n\n### 2. Specialized Review Agents\n\n#### Security Agent\n```bash\n# Security-focused review with gh CLI\n# Get changed files\nCHANGED_FILES=$(gh pr view 123 --json files --jq '.files[].path')\n\n# Run security review\nSECURITY_RESULTS=$(npx ruv-swarm github review-security \\\n  --pr 123 \\\n  --files \"$CHANGED_FILES\" \\\n  --check \"owasp,cve,secrets,permissions\" \\\n  --suggest-fixes)\n\n# Post security findings\nif echo \"$SECURITY_RESULTS\" | grep -q \"critical\"; then\n  # Request changes for critical issues\n  gh pr review 123 --request-changes --body \"$SECURITY_RESULTS\"\n  # Add security label\n  gh pr edit 123 --add-label \"security-review-required\"\nelse\n  # Post as comment for non-critical issues\n  gh pr comment 123 --body \"$SECURITY_RESULTS\"\nfi\n```\n\n#### Performance Agent\n```bash\n# Performance analysis\nnpx ruv-swarm github review-performance \\\n  --pr 123 \\\n  --profile \"cpu,memory,io\" \\\n  --benchmark-against main \\\n  --suggest-optimizations\n```\n\n#### Architecture Agent\n```bash\n# Architecture review\nnpx ruv-swarm github review-architecture \\\n  --pr 123 \\\n  --check \"patterns,coupling,cohesion,solid\" \\\n  --visualize-impact \\\n  --suggest-refactoring\n```\n\n### 3. Review Configuration\n```yaml\n# .github$review-swarm.yml\nversion: 1\nreview:\n  auto-trigger: true\n  required-agents:\n    - security\n    - performance\n    - style\n  optional-agents:\n    - architecture\n    - accessibility\n    - i18n\n  \n  thresholds:\n    security: block\n    performance: warn\n    style: suggest\n    \n  rules:\n    security:\n      - no-eval\n      - no-hardcoded-secrets\n      - proper-auth-checks\n    performance:\n      - no-n-plus-one\n      - efficient-queries\n      - proper-caching\n    architecture:\n      - max-coupling: 5\n      - min-cohesion: 0.7\n      - follow-patterns\n```\n\n## Review Agents\n\n### Security Review Agent\n```javascript\n\u002F\u002F Security checks performed\n{\n  \"checks\": [\n    \"SQL injection vulnerabilities\",\n    \"XSS attack vectors\",\n    \"Authentication bypasses\",\n    \"Authorization flaws\",\n    \"Cryptographic weaknesses\",\n    \"Dependency vulnerabilities\",\n    \"Secret exposure\",\n    \"CORS misconfigurations\"\n  ],\n  \"actions\": [\n    \"Block PR on critical issues\",\n    \"Suggest secure alternatives\",\n    \"Add security test cases\",\n    \"Update security documentation\"\n  ]\n}\n```\n\n### Performance Review Agent\n```javascript\n\u002F\u002F Performance analysis\n{\n  \"metrics\": [\n    \"Algorithm complexity\",\n    \"Database query efficiency\",\n    \"Memory allocation patterns\",\n    \"Cache utilization\",\n    \"Network request optimization\",\n    \"Bundle size impact\",\n    \"Render performance\"\n  ],\n  \"benchmarks\": [\n    \"Compare with baseline\",\n    \"Load test simulations\",\n    \"Memory leak detection\",\n    \"Bottleneck identification\"\n  ]\n}\n```\n\n### Style & Convention Agent\n```javascript\n\u002F\u002F Style enforcement\n{\n  \"checks\": [\n    \"Code formatting\",\n    \"Naming conventions\",\n    \"Documentation standards\",\n    \"Comment quality\",\n    \"Test coverage\",\n    \"Error handling patterns\",\n    \"Logging standards\"\n  ],\n  \"auto-fix\": [\n    \"Formatting issues\",\n    \"Import organization\",\n    \"Trailing whitespace\",\n    \"Simple naming issues\"\n  ]\n}\n```\n\n### Architecture Review Agent\n```javascript\n\u002F\u002F Architecture analysis\n{\n  \"patterns\": [\n    \"Design pattern adherence\",\n    \"SOLID principles\",\n    \"DRY violations\",\n    \"Separation of concerns\",\n    \"Dependency injection\",\n    \"Layer violations\",\n    \"Circular dependencies\"\n  ],\n  \"metrics\": [\n    \"Coupling metrics\",\n    \"Cohesion scores\",\n    \"Complexity measures\",\n    \"Maintainability index\"\n  ]\n}\n```\n\n## Advanced Review Features\n\n### 1. Context-Aware Reviews\n```bash\n# Review with full context\nnpx ruv-swarm github review-context \\\n  --pr 123 \\\n  --load-related-prs \\\n  --analyze-impact \\\n  --check-breaking-changes\n```\n\n### 2. Learning from History\n```bash\n# Learn from past reviews\nnpx ruv-swarm github review-learn \\\n  --analyze-past-reviews \\\n  --identify-patterns \\\n  --improve-suggestions \\\n  --reduce-false-positives\n```\n\n### 3. Cross-PR Analysis\n```bash\n# Analyze related PRs together\nnpx ruv-swarm github review-batch \\\n  --prs \"123,124,125\" \\\n  --check-consistency \\\n  --verify-integration \\\n  --combined-impact\n```\n\n## Review Automation\n\n### Auto-Review on Push\n```yaml\n# .github$workflows$auto-review.yml\nname: Automated Code Review\non:\n  pull_request:\n    types: [opened, synchronize]\n\njobs:\n  swarm-review:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions$checkout@v3\n        with:\n          fetch-depth: 0\n          \n      - name: Setup GitHub CLI\n        run: echo \"${{ secrets.GITHUB_TOKEN }}\" | gh auth login --with-token\n          \n      - name: Run Review Swarm\n        run: |\n          # Get PR context with gh CLI\n          PR_NUM=${{ github.event.pull_request.number }}\n          PR_DATA=$(gh pr view $PR_NUM --json files,title,body,labels)\n          \n          # Run swarm review\n          REVIEW_OUTPUT=$(npx ruv-swarm github review-all \\\n            --pr $PR_NUM \\\n            --pr-data \"$PR_DATA\" \\\n            --agents \"security,performance,style,architecture\")\n          \n          # Post review results\n          echo \"$REVIEW_OUTPUT\" | gh pr review $PR_NUM --comment -F -\n          \n          # Update PR status\n          if echo \"$REVIEW_OUTPUT\" | grep -q \"approved\"; then\n            gh pr review $PR_NUM --approve\n          elif echo \"$REVIEW_OUTPUT\" | grep -q \"changes-requested\"; then\n            gh pr review $PR_NUM --request-changes -b \"See review comments above\"\n          fi\n```\n\n### Review Triggers\n```javascript\n\u002F\u002F Custom review triggers\n{\n  \"triggers\": {\n    \"high-risk-files\": {\n      \"paths\": [\"**$auth\u002F**\", \"**$payment\u002F**\"],\n      \"agents\": [\"security\", \"architecture\"],\n      \"depth\": \"comprehensive\"\n    },\n    \"performance-critical\": {\n      \"paths\": [\"**$api\u002F**\", \"**$database\u002F**\"],\n      \"agents\": [\"performance\", \"database\"],\n      \"benchmarks\": true\n    },\n    \"ui-changes\": {\n      \"paths\": [\"**$components\u002F**\", \"**$styles\u002F**\"],\n      \"agents\": [\"accessibility\", \"style\", \"i18n\"],\n      \"visual-tests\": true\n    }\n  }\n}\n```\n\n## Review Comments\n\n### Intelligent Comment Generation\n```bash\n# Generate contextual review comments with gh CLI\n# Get PR diff with context\nPR_DIFF=$(gh pr diff 123 --color never)\nPR_FILES=$(gh pr view 123 --json files)\n\n# Generate review comments\nCOMMENTS=$(npx ruv-swarm github review-comment \\\n  --pr 123 \\\n  --diff \"$PR_DIFF\" \\\n  --files \"$PR_FILES\" \\\n  --style \"constructive\" \\\n  --include-examples \\\n  --suggest-fixes)\n\n# Post comments using gh CLI\necho \"$COMMENTS\" | jq -c '.[]' | while read -r comment; do\n  FILE=$(echo \"$comment\" | jq -r '.path')\n  LINE=$(echo \"$comment\" | jq -r '.line')\n  BODY=$(echo \"$comment\" | jq -r '.body')\n  \n  # Create review with inline comments\n  gh api \\\n    --method POST \\\n    $repos\u002F:owner\u002F:repo$pulls\u002F123$comments \\\n    -f path=\"$FILE\" \\\n    -f line=\"$LINE\" \\\n    -f body=\"$BODY\" \\\n    -f commit_id=\"$(gh pr view 123 --json headRefOid -q .headRefOid)\"\ndone\n```\n\n### Comment Templates\n```markdown\n\u003C!-- Security Issue Template -->\n🔒 **Security Issue: [Type]**\n\n**Severity**: 🔴 Critical \u002F 🟡 High \u002F 🟢 Low\n\n**Description**: \n[Clear explanation of the security issue]\n\n**Impact**:\n[Potential consequences if not addressed]\n\n**Suggested Fix**:\n```language\n[Code example of the fix]\n```\n\n**References**:\n- [OWASP Guide](link)\n- [Security Best Practices](link)\n```\n\n### Batch Comment Management\n```bash\n# Manage review comments efficiently\nnpx ruv-swarm github review-comments \\\n  --pr 123 \\\n  --group-by \"agent,severity\" \\\n  --summarize \\\n  --resolve-outdated\n```\n\n## Integration with CI\u002FCD\n\n### Status Checks\n```yaml\n# Required status checks\nprotection_rules:\n  required_status_checks:\n    contexts:\n      - \"review-swarm$security\"\n      - \"review-swarm$performance\"\n      - \"review-swarm$architecture\"\n```\n\n### Quality Gates\n```bash\n# Define quality gates\nnpx ruv-swarm github quality-gates \\\n  --define '{\n    \"security\": {\"threshold\": \"no-critical\"},\n    \"performance\": {\"regression\": \"\u003C5%\"},\n    \"coverage\": {\"minimum\": \"80%\"},\n    \"architecture\": {\"complexity\": \"\u003C10\"}\n  }'\n```\n\n### Review Metrics\n```bash\n# Track review effectiveness\nnpx ruv-swarm github review-metrics \\\n  --period 30d \\\n  --metrics \"issues-found,false-positives,fix-rate\" \\\n  --export-dashboard\n```\n\n## Best Practices\n\n### 1. Review Configuration\n- Define clear review criteria\n- Set appropriate thresholds\n- Configure agent specializations\n- Establish override procedures\n\n### 2. Comment Quality\n- Provide actionable feedback\n- Include code examples\n- Reference documentation\n- Maintain respectful tone\n\n### 3. Performance\n- Cache analysis results\n- Incremental reviews for large PRs\n- Parallel agent execution\n- Smart comment batching\n\n## Advanced Features\n\n### 1. AI Learning\n```bash\n# Train on your codebase\nnpx ruv-swarm github review-train \\\n  --learn-patterns \\\n  --adapt-to-style \\\n  --improve-accuracy\n```\n\n### 2. Custom Review Agents\n```javascript\n\u002F\u002F Create custom review agent\nclass CustomReviewAgent {\n  async review(pr) {\n    const issues = [];\n    \n    \u002F\u002F Custom logic here\n    if (await this.checkCustomRule(pr)) {\n      issues.push({\n        severity: 'warning',\n        message: 'Custom rule violation',\n        suggestion: 'Fix suggestion'\n      });\n    }\n    \n    return issues;\n  }\n}\n```\n\n### 3. Review Orchestration\n```bash\n# Orchestrate complex reviews\nnpx ruv-swarm github review-orchestrate \\\n  --strategy \"risk-based\" \\\n  --allocate-time-budget \\\n  --prioritize-critical\n```\n\n## Examples\n\n### Security-Critical PR\n```bash\n# Auth system changes\nnpx ruv-swarm github review-init \\\n  --pr 456 \\\n  --agents \"security,authentication,audit\" \\\n  --depth \"maximum\" \\\n  --require-security-approval\n```\n\n### Performance-Sensitive PR\n```bash\n# Database optimization\nnpx ruv-swarm github review-init \\\n  --pr 789 \\\n  --agents \"performance,database,caching\" \\\n  --benchmark \\\n  --profile\n```\n\n### UI Component PR\n```bash\n# New component library\nnpx ruv-swarm github review-init \\\n  --pr 321 \\\n  --agents \"accessibility,style,i18n,docs\" \\\n  --visual-regression \\\n  --component-tests\n```\n\n## Monitoring & Analytics\n\n### Review Dashboard\n```bash\n# Launch review dashboard\nnpx ruv-swarm github review-dashboard \\\n  --real-time \\\n  --show \"agent-activity,issue-trends,fix-rates\"\n```\n\n### Review Reports\n```bash\n# Generate review reports\nnpx ruv-swarm github review-report \\\n  --format \"markdown\" \\\n  --include \"summary,details,trends\" \\\n  --email-stakeholders\n```\n\nSee also: [swarm-pr.md](.$swarm-pr.md), [workflow-automation.md](.$workflow-automation.md)","---\nname: code-review-swarm\ndescription: Deploy specialized AI agents to perform comprehensive, intelligent code reviews that go beyond traditional static analysis\ntools: mcp__claude-flow__swarm_init, mcp__claude-flow__agent_spawn, mcp__claude-flow__task_orchestrate, Bash, Read, Write, TodoWrite\ncolor: blue\ntype: development\ncapabilities:\n  - Automated multi-agent code review\n  - Security vulnerability analysis\n  - Performance bottleneck detection\n  - Architecture pattern validation\n  - Style and convention enforcement\npriority: high\nhooks:\n  pre: |\n    echo \"Starting code-review-swarm...\"\n    echo \"Initializing multi-agent review system\"\n    gh auth status || (echo \"GitHub CLI not authenticated\" && exit 1)\n  post: |\n    echo \"Completed code-review-swarm\"\n    echo \"Review results posted to GitHub\"\n    echo \"Quality gates evaluated\"\n---\n\n# Code Review Swarm - Automated Code Review with AI Agents\n\n## Overview\nDeploy specialized AI agents to perform comprehensive, intelligent code reviews that go beyond traditional static analysis.\n\n## Core Features\n\n### 1. Multi-Agent Review System\n```bash\n# Initialize code review swarm with gh CLI\n# Get PR details\nPR_DATA=$(gh pr view 123 --json files,additions,deletions,title,body)\nPR_DIFF=$(gh pr diff 123)\n\n# Initialize swarm with PR context\nnpx ruv-swarm github review-init \\\n  --pr 123 \\\n  --pr-data \"$PR_DATA\" \\\n  --diff \"$PR_DIFF\" \\\n  --agents \"security,performance,style,architecture,accessibility\" \\\n  --depth comprehensive\n\n# Post initial review status\ngh pr comment 123 --body \"🔍 Multi-agent code review initiated\"\n```\n\n### 2. Specialized Review Agents\n\n#### Security Agent\n```bash\n# Security-focused review with gh CLI\n# Get changed files\nCHANGED_FILES=$(gh pr view 123 --json files --jq '.files[].path')\n\n# Run security review\nSECURITY_RESULTS=$(npx ruv-swarm github review-security \\\n  --pr 123 \\\n  --files \"$CHANGED_FILES\" \\\n  --check \"owasp,cve,secrets,permissions\" \\\n  --suggest-fixes)\n\n# Post security findings\nif echo \"$SECURITY_RESULTS\" | grep -q \"critical\"; then\n  # Request changes for critical issues\n  gh pr review 123 --request-changes --body \"$SECURITY_RESULTS\"\n  # Add security label\n  gh pr edit 123 --add-label \"security-review-required\"\nelse\n  # Post as comment for non-critical issues\n  gh pr comment 123 --body \"$SECURITY_RESULTS\"\nfi\n```\n\n#### Performance Agent\n```bash\n# Performance analysis\nnpx ruv-swarm github review-performance \\\n  --pr 123 \\\n  --profile \"cpu,memory,io\" \\\n  --benchmark-against main \\\n  --suggest-optimizations\n```\n\n#### Architecture Agent\n```bash\n# Architecture review\nnpx ruv-swarm github review-architecture \\\n  --pr 123 \\\n  --check \"patterns,coupling,cohesion,solid\" \\\n  --visualize-impact \\\n  --suggest-refactoring\n```\n\n### 3. Review Configuration\n```yaml\n# .github$review-swarm.yml\nversion: 1\nreview:\n  auto-trigger: true\n  required-agents:\n    - security\n    - performance\n    - style\n  optional-agents:\n    - architecture\n    - accessibility\n    - i18n\n  \n  thresholds:\n    security: block\n    performance: warn\n    style: suggest\n    \n  rules:\n    security:\n      - no-eval\n      - no-hardcoded-secrets\n      - proper-auth-checks\n    performance:\n      - no-n-plus-one\n      - efficient-queries\n      - proper-caching\n    architecture:\n      - max-coupling: 5\n      - min-cohesion: 0.7\n      - follow-patterns\n```\n\n## Review Agents\n\n### Security Review Agent\n```javascript\n\u002F\u002F Security checks performed\n{\n  \"checks\": [\n    \"SQL injection vulnerabilities\",\n    \"XSS attack vectors\",\n    \"Authentication bypasses\",\n    \"Authorization flaws\",\n    \"Cryptographic weaknesses\",\n    \"Dependency vulnerabilities\",\n    \"Secret exposure\",\n    \"CORS misconfigurations\"\n  ],\n  \"actions\": [\n    \"Block PR on critical issues\",\n    \"Suggest secure alternatives\",\n    \"Add security test cases\",\n    \"Update security documentation\"\n  ]\n}\n```\n\n### Performance Review Agent\n```javascript\n\u002F\u002F Performance analysis\n{\n  \"metrics\": [\n    \"Algorithm complexity\",\n    \"Database query efficiency\",\n    \"Memory allocation patterns\",\n    \"Cache utilization\",\n    \"Network request optimization\",\n    \"Bundle size impact\",\n    \"Render performance\"\n  ],\n  \"benchmarks\": [\n    \"Compare with baseline\",\n    \"Load test simulations\",\n    \"Memory leak detection\",\n    \"Bottleneck identification\"\n  ]\n}\n```\n\n### Style & Convention Agent\n```javascript\n\u002F\u002F Style enforcement\n{\n  \"checks\": [\n    \"Code formatting\",\n    \"Naming conventions\",\n    \"Documentation standards\",\n    \"Comment quality\",\n    \"Test coverage\",\n    \"Error handling patterns\",\n    \"Logging standards\"\n  ],\n  \"auto-fix\": [\n    \"Formatting issues\",\n    \"Import organization\",\n    \"Trailing whitespace\",\n    \"Simple naming issues\"\n  ]\n}\n```\n\n### Architecture Review Agent\n```javascript\n\u002F\u002F Architecture analysis\n{\n  \"patterns\": [\n    \"Design pattern adherence\",\n    \"SOLID principles\",\n    \"DRY violations\",\n    \"Separation of concerns\",\n    \"Dependency injection\",\n    \"Layer violations\",\n    \"Circular dependencies\"\n  ],\n  \"metrics\": [\n    \"Coupling metrics\",\n    \"Cohesion scores\",\n    \"Complexity measures\",\n    \"Maintainability index\"\n  ]\n}\n```\n\n## Advanced Review Features\n\n### 1. Context-Aware Reviews\n```bash\n# Review with full context\nnpx ruv-swarm github review-context \\\n  --pr 123 \\\n  --load-related-prs \\\n  --analyze-impact \\\n  --check-breaking-changes\n```\n\n### 2. Learning from History\n```bash\n# Learn from past reviews\nnpx ruv-swarm github review-learn \\\n  --analyze-past-reviews \\\n  --identify-patterns \\\n  --improve-suggestions \\\n  --reduce-false-positives\n```\n\n### 3. Cross-PR Analysis\n```bash\n# Analyze related PRs together\nnpx ruv-swarm github review-batch \\\n  --prs \"123,124,125\" \\\n  --check-consistency \\\n  --verify-integration \\\n  --combined-impact\n```\n\n## Review Automation\n\n### Auto-Review on Push\n```yaml\n# .github$workflows$auto-review.yml\nname: Automated Code Review\non:\n  pull_request:\n    types: [opened, synchronize]\n\njobs:\n  swarm-review:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions$checkout@v3\n        with:\n          fetch-depth: 0\n          \n      - name: Setup GitHub CLI\n        run: echo \"${{ secrets.GITHUB_TOKEN }}\" | gh auth login --with-token\n          \n      - name: Run Review Swarm\n        run: |\n          # Get PR context with gh CLI\n          PR_NUM=${{ github.event.pull_request.number }}\n          PR_DATA=$(gh pr view $PR_NUM --json files,title,body,labels)\n          \n          # Run swarm review\n          REVIEW_OUTPUT=$(npx ruv-swarm github review-all \\\n            --pr $PR_NUM \\\n            --pr-data \"$PR_DATA\" \\\n            --agents \"security,performance,style,architecture\")\n          \n          # Post review results\n          echo \"$REVIEW_OUTPUT\" | gh pr review $PR_NUM --comment -F -\n          \n          # Update PR status\n          if echo \"$REVIEW_OUTPUT\" | grep -q \"approved\"; then\n            gh pr review $PR_NUM --approve\n          elif echo \"$REVIEW_OUTPUT\" | grep -q \"changes-requested\"; then\n            gh pr review $PR_NUM --request-changes -b \"See review comments above\"\n          fi\n```\n\n### Review Triggers\n```javascript\n\u002F\u002F Custom review triggers\n{\n  \"triggers\": {\n    \"high-risk-files\": {\n      \"paths\": [\"**$auth\u002F**\", \"**$payment\u002F**\"],\n      \"agents\": [\"security\", \"architecture\"],\n      \"depth\": \"comprehensive\"\n    },\n    \"performance-critical\": {\n      \"paths\": [\"**$api\u002F**\", \"**$database\u002F**\"],\n      \"agents\": [\"performance\", \"database\"],\n      \"benchmarks\": true\n    },\n    \"ui-changes\": {\n      \"paths\": [\"**$components\u002F**\", \"**$styles\u002F**\"],\n      \"agents\": [\"accessibility\", \"style\", \"i18n\"],\n      \"visual-tests\": true\n    }\n  }\n}\n```\n\n## Review Comments\n\n### Intelligent Comment Generation\n```bash\n# Generate contextual review comments with gh CLI\n# Get PR diff with context\nPR_DIFF=$(gh pr diff 123 --color never)\nPR_FILES=$(gh pr view 123 --json files)\n\n# Generate review comments\nCOMMENTS=$(npx ruv-swarm github review-comment \\\n  --pr 123 \\\n  --diff \"$PR_DIFF\" \\\n  --files \"$PR_FILES\" \\\n  --style \"constructive\" \\\n  --include-examples \\\n  --suggest-fixes)\n\n# Post comments using gh CLI\necho \"$COMMENTS\" | jq -c '.[]' | while read -r comment; do\n  FILE=$(echo \"$comment\" | jq -r '.path')\n  LINE=$(echo \"$comment\" | jq -r '.line')\n  BODY=$(echo \"$comment\" | jq -r '.body')\n  \n  # Create review with inline comments\n  gh api \\\n    --method POST \\\n    $repos\u002F:owner\u002F:repo$pulls\u002F123$comments \\\n    -f path=\"$FILE\" \\\n    -f line=\"$LINE\" \\\n    -f body=\"$BODY\" \\\n    -f commit_id=\"$(gh pr view 123 --json headRefOid -q .headRefOid)\"\ndone\n```\n\n### Comment Templates\n```markdown\n\u003C!-- Security Issue Template -->\n🔒 **Security Issue: [Type]**\n\n**Severity**: 🔴 Critical \u002F 🟡 High \u002F 🟢 Low\n\n**Description**: \n[Clear explanation of the security issue]\n\n**Impact**:\n[Potential consequences if not addressed]\n\n**Suggested Fix**:\n```language\n[Code example of the fix]\n```\n\n**References**:\n- [OWASP Guide](link)\n- [Security Best Practices](link)\n```\n\n### Batch Comment Management\n```bash\n# Manage review comments efficiently\nnpx ruv-swarm github review-comments \\\n  --pr 123 \\\n  --group-by \"agent,severity\" \\\n  --summarize \\\n  --resolve-outdated\n```\n\n## Integration with CI\u002FCD\n\n### Status Checks\n```yaml\n# Required status checks\nprotection_rules:\n  required_status_checks:\n    contexts:\n      - \"review-swarm$security\"\n      - \"review-swarm$performance\"\n      - \"review-swarm$architecture\"\n```\n\n### Quality Gates\n```bash\n# Define quality gates\nnpx ruv-swarm github quality-gates \\\n  --define '{\n    \"security\": {\"threshold\": \"no-critical\"},\n    \"performance\": {\"regression\": \"\u003C5%\"},\n    \"coverage\": {\"minimum\": \"80%\"},\n    \"architecture\": {\"complexity\": \"\u003C10\"}\n  }'\n```\n\n### Review Metrics\n```bash\n# Track review effectiveness\nnpx ruv-swarm github review-metrics \\\n  --period 30d \\\n  --metrics \"issues-found,false-positives,fix-rate\" \\\n  --export-dashboard\n```\n\n## Best Practices\n\n### 1. Review Configuration\n- Define clear review criteria\n- Set appropriate thresholds\n- Configure agent specializations\n- Establish override procedures\n\n### 2. Comment Quality\n- Provide actionable feedback\n- Include code examples\n- Reference documentation\n- Maintain respectful tone\n\n### 3. Performance\n- Cache analysis results\n- Incremental reviews for large PRs\n- Parallel agent execution\n- Smart comment batching\n\n## Advanced Features\n\n### 1. AI Learning\n```bash\n# Train on your codebase\nnpx ruv-swarm github review-train \\\n  --learn-patterns \\\n  --adapt-to-style \\\n  --improve-accuracy\n```\n\n### 2. Custom Review Agents\n```javascript\n\u002F\u002F Create custom review agent\nclass CustomReviewAgent {\n  async review(pr) {\n    const issues = [];\n    \n    \u002F\u002F Custom logic here\n    if (await this.checkCustomRule(pr)) {\n      issues.push({\n        severity: 'warning',\n        message: 'Custom rule violation',\n        suggestion: 'Fix suggestion'\n      });\n    }\n    \n    return issues;\n  }\n}\n```\n\n### 3. Review Orchestration\n```bash\n# Orchestrate complex reviews\nnpx ruv-swarm github review-orchestrate \\\n  --strategy \"risk-based\" \\\n  --allocate-time-budget \\\n  --prioritize-critical\n```\n\n## Examples\n\n### Security-Critical PR\n```bash\n# Auth system changes\nnpx ruv-swarm github review-init \\\n  --pr 456 \\\n  --agents \"security,authentication,audit\" \\\n  --depth \"maximum\" \\\n  --require-security-approval\n```\n\n### Performance-Sensitive PR\n```bash\n# Database optimization\nnpx ruv-swarm github review-init \\\n  --pr 789 \\\n  --agents \"performance,database,caching\" \\\n  --benchmark \\\n  --profile\n```\n\n### UI Component PR\n```bash\n# New component library\nnpx ruv-swarm github review-init \\\n  --pr 321 \\\n  --agents \"accessibility,style,i18n,docs\" \\\n  --visual-regression \\\n  --component-tests\n```\n\n## Monitoring & Analytics\n\n### Review Dashboard\n```bash\n# Launch review dashboard\nnpx ruv-swarm github review-dashboard \\\n  --real-time \\\n  --show \"agent-activity,issue-trends,fix-rates\"\n```\n\n### Review Reports\n```bash\n# Generate review reports\nnpx ruv-swarm github review-report \\\n  --format \"markdown\" \\\n  --include \"summary,details,trends\" \\\n  --email-stakeholders\n```\n\nSee also: [swarm-pr.md](.$swarm-pr.md), [workflow-automation.md](.$workflow-automation.md)",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fskills_sh\u002Fs\u002Fskills-sh_ruvnet_ruflo_agent-code-review-swarm",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agent-code-review-swarm",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agent-code-review-swarm",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agent-code-review-swarm","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_ruvnet_ruflo_agent-code-review-swarm\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]