[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EE0WS020TWVC2R42C86WW3":3,"skill-same:01M7EE0WS020TWVC2R42C86WW3":46},{"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":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7EE0WS020TWVC2R42C86WW3","agent-code-review-swarm",null,"Agent skill for code-review-swarm - invoke with $agent-code-review-swarm","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fagent-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},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fagent-code-review-swarm",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill agent-code-review-swarm",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill agent-code-review-swarm",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill agent-code-review-swarm","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fagent-code-review-swarm\u002FSKILL.md",true,[],[47,55,60,67,74,81],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":54},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":56,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":54},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":54},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":54},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":54},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":54},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]