Install
$ agentstack add skill-p2ergmbh-agentic-coding-review-pull-request ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
GitHub Pull Request Review Workflow
This workflow guides you through an extensive and in-depth review of a GitHub Pull Request using the GitHub MCP integration. You act as an uncompromising senior architect and CI/CD gatekeeper.
Trigger
Use this workflow when requested to "review pull request #X", "run a PR review", or when executing within a GitHub Actions review workflow.
Phase 1: Isolated Git Worktree Setup (MANDATORY)
To ensure the review is conducted on the actual PR codebase with full lint, compile, and verification capabilities without polluting your main workspace, you MUST first set up an isolated Git Worktree:
- Identify the PR Branch: Fetch the PR branch name (
$PR_BRANCHor$HEAD_BRANCH) usingmcp_github_get_pull_request. - Create or Switch to Dedicated Worktree:
The dedicated worktree directory is worktrees/pr-.
- If the worktree directory DOES NOT exist:
Create it by cloning/adding the PR branch into the dedicated worktree directory: ``bash git worktree add worktrees/pr- ` *Note: If the branch isn't available locally, fetch it from origin first:* `bash git fetch origin pull//head: git worktree add worktrees/pr- ``
- If the worktree directory ALREADY exists:
Switch to the directory and pull the latest changes: ``bash cd worktrees/pr- && git pull ``
- Copy Environment Configuration:
Copy the .env file from the root project directory into the worktree directory: ``bash cp .env worktrees/pr-/.env ``
- Symlink Node Modules:
Symlink the node_modules directory from the root project directory to the worktree directory to avoid duplicate installation overhead: ``bash ln -s ../../node_modules worktrees/pr-/node_modules ``
- Start the Review:
Execute all subsequent context-gathering (reading files, checking imports) and local linting/compiling inside the dedicated worktree directory worktrees/pr-.
Phase 2: Context Gathering (The Comprehensive Scan)
- Identify the Target: Retrieve the PR number (
$PR_NUMBER), repository owner ($OWNER), and repository name ($REPO). - Fetch PR Details: Use
mcp_github_get_pull_requestto get the PR title, body, HEAD, and BASE branch information. - Identify Linked Issues: Scan the PR body for references like
Fixes #X,Closes #X, orResolves #X. Usemcp_github_get_issueto fetch the details of these linked issues. - Fetch All Changed Files: Use
mcp_github_get_pull_request_files. You must review EVERY changed file. Do not skip files. A common failure is fixing an issue in File A but introducing a related issue in File B. You must catch these cross-file regressions. - Fetch Previous Reviews: Use
mcp_github_get_pull_request_reviewsandmcp_github_get_pull_request_commentsto understand previous feedback and check if old issues were resolved. - Read Mandates: Refresh your memory on project rules from
docs/rules/andGEMINI.md.
Phase 3: Systematic Review Criteria
Meticulously evaluate the changes against these criteria:
0. Functional Completeness (Linked Issue Alignment)
- Feature Parity: Does the implementation cover ALL requirements and success criteria defined in the linked issue(s)?
- Missing Logic: Identify any "TODOs" or missing edge cases that were explicitly mentioned in the issue but are absent in the PR.
1. Project Mandate Compliance (GEMINI.md)
- JSDoc: Does every new or modified exported function/class have detailed JSDoc explaining why it exists?
- Theme & Styling: Are custom shadow variables (
shadow-100toshadow-500) and theme colors being used instead of arbitrary Tailwind values (likeshadow-smortext-green-600)? - I18n Routing: Are
Link,useRouter,usePathname, andredirectimported from@/i18n/routing(or the relevanti18nfolder)? Never usenext/linkornext/navigation. - File Length: Does any modified file now exceed 300/500/1000 lines? If >500, recommend splitting. If >1000, demand splitting.
2. Architectural Integrity & Database
- Logic Placement: Is database logic strictly in the configured database directory (e.g.
paths.dborsrc/lib/db)? Are UI actions in the configured actions directory (e.g.paths.actionsoractions/)? - SQL Queries: Are queries efficient? Use
connection.queryorconnection.executeappropriately (e.g.,executefor prepared statements withoutLIMITdynamic binding issues). - Redundancy: Is this code duplicating functionality that already exists?
3. Correctness, Security, & Performance
- Types: Is
anyused? (It must be avoided or explicitly disabled via eslint). - Server Components: Is
"use client"used only when interactivity is required? - Error Handling: Are edge cases (null API responses, empty lists) handled gracefully?
- Memoization: Are
useMemoanduseCallbackused correctly for expensive operations?
Phase 4: Finding Classification & Resolution Logic
Classify each identified issue by severity:
🔴 Critical / High: Security risks, breaking bugs, blatantGEMINI.mdviolations (e.g., missing JSDoc, direct SQL in UI, wrong i18n imports).🟡 Medium: Style inconsistencies (e.g., wrong shadow/color), minor UI deviations, file length warnings (e.g., file > 500 lines).🟢 Low: Suggestions for better readability, minor optimizations, incomplete or poor JSDoc.
Review Decision Logic:
- If there is ≥ 1 High/Critical issue ➔
REQUEST_CHANGES - If there are ≥ 2 Medium issues ➔
REQUEST_CHANGES - If there is 1 Medium issue or only Low severity issues ➔
APPROVE(but include the findings as inline review comments so the user can decide what to address). - Re-Review Resolution: If a previous review requested changes, verify if the previously identified critical/high issues were resolved.
- If they are resolved and no new critical/high issues were introduced, change the status to
APPROVEeven if multiple🟢 Lowor a single🟡 Mediumissue remains from the previous iteration. We prioritize pragmatic progress on subsequent iterations.
Phase 5: Submitting the Real Review
Do not just write a summary comment. You MUST use the mcp_github_create_pull_request_review tool to submit a formal GitHub Pull Request Review.
CRITICAL MANDATE: Under no circumstances should you attempt to modify files, stage changes, commit, or push code during the review process. Your role is strictly analytical and advisory. Use inline review comments with ``suggestion`` blocks to propose fixes, but do not apply them yourself.
- Draft Inline Comments: For every specific issue found, create an inline comment targeted at the exact file path and line number/position in the diff.
- Format your inline comment body clearly, stating the severity (e.g.,
🔴 Critical:or🟡 Medium:) and providing a ``suggestion`` block if possible.
- Determine the Event: Set the
eventparameter based on the Review Decision Logic (APPROVEorREQUEST_CHANGES). - Draft the Main Body: Create a comprehensive summary for the
bodyparameter. It should include:
- A high-level summary of the review.
- A bulleted list of the High/Critical/Medium issues found.
- A clear statement of the final decision and why it was made.
- Execute: Call
mcp_github_create_pull_request_reviewwith theowner,repo,pull_number,body,event, and the array of inlinecomments.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: P2ERGmbH
- Source: P2ERGmbH/agentic-coding
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.