← ClaudeAtlas

ai-reviewlisted

Run an automated code review on the current branch's pull request and post findings as a formal PR review with inline comments. Use when the user asks for ai-review, PR review posting, or to review the open PR on the current branch (GitHub via gh, Forgejo via user-forgejo MCP).
piscis/agent-skills · ★ 0 · AI & Automation · score 70
Install: claude install-skill piscis/agent-skills
# AI Review Perform an automated code review of the current branch's pull request and post the results as a formal PR review with inline comments. Use **GitHub CLI (`gh`)** for GitHub-hosted repos and **Forgejo MCP (`user-forgejo`)** for Forgejo-hosted repos. Use Context7 MCP (`user-context7`) for library documentation lookups when needed. ### Step 1 — Validate branch and detect platform Gather context first (run in parallel): ```bash git branch --show-current git remote get-url origin ``` - If the branch is `main` or `released`, **stop immediately** and tell the user: "This command can only run on a feature branch with an open PR." - Parse the git remote URL to extract **owner**, **repo**, and **host**: - `https://user@github.com/all3dp/content-platform.git` → host: `github.com`, owner: `all3dp`, repo: `content-platform` - `https://user@code.vicoli.de/vicoli/resume_vicoli_de.git` → host: `code.vicoli.de`, owner: `vicoli`, repo: `resume_vicoli_de` - Set **platform**: - `github.com` → `github` (use `gh` for all PR operations below) - any other host → `forgejo` (use Forgejo MCP) ### Step 2 — Find the PR #### GitHub (`platform: github`) Run: ```bash gh pr view --json number,title,body,url,headRefOid,headRefName,baseRefName ``` If that fails (no PR for current branch), run: ```bash gh pr list --head <branch> --json number,title,body,url,headRefOid,headRefName,baseRefName ``` - If no matching open PR exists, **stop** and tell the user: "No open PR found for bra