agentleFS
I-OnlabsI-Onlabs/claude-code-skills/github-code-review/SKILL.md

github-code-review

Skill4 starsChanged 25 days agoMITView on GitHub

Run a multi-agent code review on a GitHub pull request, with parallel security / performance / architecture / style passes, inline comments, and quality-gate enforcement. Use when asked to "github code review", "review github pr", "run code review on PR", "swarm review", "automated PR review", or "post inline review comments".

  • Reads credentials

52 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use V3 CLI Modernization, V3 Core Implementation and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ruvnetSkill

    V3 CLI Modernization

    CLI modernization and hooks system enhancement for claude-flow v3. Implements interactive prompts, command decomposition, enhanced hooks integration, and intelligent workflow automation.

    Also in 16 projects that use this

  • ruvnetSkill

    V3 Core Implementation

    Core module implementation for claude-flow v3. Implements DDD domains, clean architecture patterns, dependency injection, and modular TypeScript codebase with comprehensive testing.

    Also in 16 projects that use this

  • math-incSkill

    native-mcp

    Built-in MCP (Model Context Protocol) client that connects to external MCP servers, discovers their tools, and registers them as native Gauss Agent tools. Supports stdio and HTTP transports with automatic reconnection, security filtering, and zero-config tool injection.

    Also in 6 projects that use this

  • MicrosoftSkill

    github-pr-workflow

    Prepare a GitHub pull request from a feature branch — branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.

    Also in 5 projects that use this

  • +7 more from ruvnet

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After a review run, confirm:

    line 77
  2. Very specific:

    If a gate misfires, see references/troubleshooting.md.

    line 85

“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GitHub Code Review

Coordinates parallel review agents (security, performance, architecture, style, accessibility) against a GitHub PR. Each agent focuses on one dimension; the swarm aggregates findings, posts inline comments, and enforces quality gates.

Contents

  • When to Use
  • Prerequisites
  • Quick Start
  • Workflow
  • Verification
  • References

When to Use

  • "Run a code review on PR #123"
  • "Do a security review on this PR"
  • "Set up automated review on every PR"
  • "Generate inline review comments for the diff"
  • "Add quality gates to branch protection"

Prerequisites

  • gh CLI installed and authenticated (gh auth status)
  • ruv-swarm and/or claude-flow MCP server configured
  • Repository access permissions for the target PR
  • For automated review: GITHUB_TOKEN available in CI

Quick Start

PR=123
PR_DATA=$(gh pr view "$PR" --json files,additions,deletions,title,body)
PR_DIFF=$(gh pr diff "$PR")

npx ruv-swarm github review-init \
  --pr "$PR" \
  --pr-data "$PR_DATA" \
  --diff "$PR_DIFF" \
  --agents "security,performance,style,architecture,accessibility" \
  --depth comprehensive

gh pr comment "$PR" --body "Multi-agent code review initiated"

Workflow

  1. Fetch PR context with gh pr view --json and gh pr diff
  2. Pick topology based on PR size (ring < 100 LOC, mesh 100–500, hierarchical > 500) — see references/swarm-management.md
  3. Dispatch agents in parallel — one per review dimension; see references/review-agents.md
  4. Aggregate findings, post inline comments via the GitHub API; see references/comments-and-gates.md
  5. Apply quality gates — block merge on critical security findings, warn on performance regressions, suggest on style
  6. Verify (see below)

Verification

After a review run, confirm:

  • Each requested agent posted at least one finding (or an explicit "no issues found")
  • Inline comments resolve to actual lines in the diff (no stale commit_id)
  • PR status reflects the outcome — --approve, --request-changes, or labelled
  • Critical security findings blocked the merge (test by injecting a known-bad pattern, e.g. an obvious eval)
  • Rate-limit budget after the run — gh api rate_limit — is not exhausted

If a gate misfires, see references/troubleshooting.md.

References

  • references/review-agents.md — security / performance / architecture / style agent commands and templates
  • references/swarm-management.md — swarm creation, label routing, topology, comment commands, webhook handler
  • references/configuration.md — review-swarm.yml, custom triggers, GitHub Actions, PR description template, auto-merge
  • references/comments-and-gates.md — inline comment generation, batch management, quality gates, metrics
  • references/advanced-features.md — context-aware review, learning, cross-PR analysis, custom agents
  • references/workflow-examples.md — five worked examples + Claude Code integration pattern
  • references/troubleshooting.md — agents not spawning, comments not posting, slow reviews, performance tips, webhook security caveats, security checklist

Related Skills

  • github-pr-manager — PR lifecycle management (open, label, merge)
  • github-workflow-automation — broader GitHub Actions automation
  • swarm-coordination — orchestration patterns shared across swarm-based skills

External Documentation


Maintained as part of the Claude Code Flow project. MIT licensed. Version 1.1.0.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.