π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
PR Reviewer Assignment Guide
Analyze PR changed files and assign appropriate reviewer(s) by posting a comment.
Workflow
Step 1: Get PR Details and Changed Files
gh pr view [PR_NUMBER] --json number,title,body,files,labels,author
Step 2: Map Changed Files to Feature Areas
Analyze file paths to determine which feature area(s) the PR touches, then use team-assignment.md to find the appropriate reviewer(s).
Use the PR title, description, and changed file paths together to infer the feature area. For example:
packages/database/β deployment/backend areaapps/desktop/β desktop platform- Files containing
KnowledgeBase,Auth,MCPetc. β corresponding feature labels in team-assignment.md
Step 3: Check Related Issues
If the PR body references an issue (e.g., close #123, fix #123, resolve #123), fetch that issue's participants:
gh issue view [ISSUE_NUMBER] --json author,comments --jq '{author: .author.login, commenters: [.comments[].author.login]}'
Team members who created or commented on the related issue are strong candidates for reviewer.
Step 4: Determine Reviewer(s)
Apply in priority order:
- Exclude PR author - Never assign the PR author as reviewer
- Related issue participants - Team members from
team-assignment.mdwho are active in the related issue - Feature area owner - Based on changed files and
team-assignment.mdAssignment Rules - Multiple areas - If PR touches multiple areas, mention the primary owner first, then secondary
- Fallback - If no clear mapping, assign @arvinxx
Step 5: Post Comment
Post a single comment mentioning the reviewer(s). Use the Comment Templates from team-assignment.md, adapting them for PR review context.
gh pr comment [PR_NUMBER] --body "message"
Important Rules
- PR author exclusion: ALWAYS skip the PR author from reviewer list
- One comment only: Post exactly ONE comment with all mentions
- No labels: Do NOT add or remove labels on PRs
- Bot PRs: Skip PRs authored by bots (e.g., dependabot, renovate)
- Draft PRs: Still assign reviewers for draft PRs (author may want early feedback)