Automates code review routing to the right developer based on expertise and availability. Benefits engineering teams by reducing review bottlenecks and improving code quality. Integrates with GitHub, GitLab, and Bitbucket for workflow.
git clone https://github.com/win4r/agent-skills-code-review-router.gitCode Review Router is an Agent Skill that automatically routes code reviews to the optimal AI tool—either Gemini CLI or Codex CLI—based on code characteristics, complexity scoring, and change patterns. It uses a deterministic decision tree to analyze diffs, detect programming languages, identify security-sensitive code, and calculate complexity scores from 0-10. The skill handles multi-tool orchestration without black-box reasoning, includes automatic fallback handling, and integrates with Git repositories to examine uncommitted changes. Engineering teams benefit from reduced review bottlenecks, consistent routing decisions, and optimized tool selection for different code change types.
1. **Integrate with your VCS:** Connect the router to GitHub/GitLab/Bitbucket using the provided API keys (e.g., GitHub Actions or a custom webhook). Ensure it has read access to PRs, commits, and team member data. 2. **Define team parameters:** Configure expertise criteria (e.g., file paths, language experience) and availability (e.g., GitHub status, calendar sync). Use past review history to refine matches. 3. **Set routing rules:** Customize rules like 'prioritize reviewers with no open PRs' or 'exclude reviewers on vacation.' 4. **Test with a sample PR:** Run a dry test on a non-critical PR to validate the router’s suggestions before full deployment. 5. **Monitor and iterate:** Track review times and conflicts. Adjust criteria based on team feedback (e.g., if certain reviewers are consistently overloaded). **Tip:** Use the router’s output to pre-populate review requests in your VCS (e.g., GitHub’s 'Assignees' field) to save time.
Route large backend changes (database migrations, API endpoints) to Codex for thorough architectural review
Direct frontend-only changes (React components, CSS) to Gemini for faster visual-focused feedback
Automatically escalate security-sensitive code (auth, credentials) to Codex
Handle multi-service refactors by routing to Codex based on complexity score
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/win4r/agent-skills-code-review-routerCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Act as a code review router for [TEAM_NAME]. Review the pull request [PR_NUMBER] in [REPO_NAME] (language: [LANGUAGE]). Based on the code changes, match the most suitable reviewer from the team using these criteria: 1) [EXPERTISE_CRITERIA], 2) [AVAILABILITY_CRITERIA], 3) [PAST_REVIEW_HISTORY]. Suggest 1-2 reviewers and explain your reasoning. Include estimated review time and any potential conflicts (e.g., reviewer is OOO).
For PR #42 in the `api-service` repository (Python), I recommend assigning this to **Sarah Chen** (Senior Backend Engineer) with **Alex Rivera** as backup. **Reasoning:** - **Expertise:** Sarah authored 60% of the core API endpoints and has 3+ years of experience with FastAPI, the framework used in this PR. She also contributed to the database migration logic being modified. - **Availability:** Currently has 2 open reviews (both minor) and no scheduled PTO this week. - **Past Reviews:** Sarah has a 92% approval rate for API-related PRs and previously reviewed similar changes in PR #18. **Estimated Review Time:** 45 minutes (moderate complexity with 120 lines changed). **Conflicts:** None for Sarah. Alex Rivera (alternate) is available but has limited experience with FastAPI migrations—suitable only if Sarah is unavailable. **Next Steps:** Assign to Sarah; notify via Slack #eng-reviews channel with a link to the PR and estimated completion time.
AI-enabled M&A deal origination
Automate your browser workflows effortlessly
Get more done every day with Microsoft Teams – powered by AI
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan