george43g/mcp-cli-starter-template/pr-review-sop
Claude Code and agent skill by george43g/mcp-cli-starter-template
- community
Checking that the SKILL.md file is still in the repository.
Mandatory security + quality SOP for reviewing pull requests against a example repo. Use whenever the user asks to review, audit, or merge a PR.
Install
npx vskill@latest install george43g/mcp-cli-starter-template/pr-review-sopSKILL.md
The same SKILL.md was published earlier as george43g/mcp-cli-starter-template/pr-review-sop.
PR review SOP
Use this skill whenever the user asks to review, audit, or merge a pull request in any repo cloned from mcp-cli-starter-template. The MCP threat model is unusual — tools execute with the user's credentials, so a malicious or naive PR can leak data or run arbitrary commands. Treat every PR as adversarial until the audit completes.
Lifted from Gmail-MCP-Server's pr-review-sop skill and generalized.
1. Read the PR before running anything
- Read the description and the linked issues.
- Read every changed file. Do not run the code first — read it.
- Check
git diff main...HEADfor the full set of changes (not just what GitHub shows).
2. Security audit (blocking — must pass before merge)
| Check | What to look for | Why | |
|---|---|---|---|
| Stdout hygiene | No new console.log / process.stdout.write in code paths reachable after StdioServerTransport.connect() | Corrupts JSON-RPC | |
| Logging via robustness | All new logs go through @george43g/robustness/logger (info/warn/error/perf) | NDJSON correctness; ring buffer | |
| Stripped untrusted content | Any tool returning user-content surfaces calls sanitize() | Prevents terminal corruption, ANSI injection | |
| Wrapped external content | Any tool returning data sourced from outside our control wraps it with wrapUntrusted() | Prevents prompt injection of LLM behavior | |
| UUID-gated instructions | Any embedded instructions use wrapInstructions(text, uuid) and require the user to echo the UUID | Authorization for follow-on actions | |
| AbortSignal | All new long loops check signal?.aborted | Honors MCP cancellation | |
| Timeout declared | New tools have a timeoutMs or use the default | Prevents wedged calls | |
| Secrets | Secret values come from the environment, never a literal in source, a committed file, or a log line | A secret in git history is a secret you have to rotate | |
| Schema validation | All tool inputs use Zod schemas with .describe() on every field | LLM-readable docs + runtime safety | |
| Filesystem writes | New writes are sandboxed (no path.join(homedir, userInput) without validation) | Path traversal | |
| Shell exec | No new execSync / spawn calls with user input concatenated into the command | Command injection | |
| Network | Outbound URLs are constants or come from trusted config, not from tool input | SSRF |
Any single failure blocks the merge. Comment on the PR with the specific concern and reference this skill.
3. Functional review
- Does it match the PR description?
- Does it have a test? (Unit OR integration OR stress, depending on layer.)
- Does it touch the dispatcher / lifecycle / transport? If yes,
pnpm stressMUST be run locally before merge. - Does it touch the Rust crate? If yes,
cargo test --release+ the drift-check must pass. - Does the README reflect the change? (CI's readme-check will catch this; manually verify if the test was bypassed with
[skip-readme].)
4. Pre-merge verification
Locally:
If the PR is from a fork, run in a worktree to avoid polluting your tree.
5. Merge
- Use
gh pr merge --squash(default), preserving the PR title as the commit subject for semantic-release. - Verify the commit type prefix (
feat:,fix:,chore:, etc) is correct — semantic-release uses it for version bumping. - Delete the branch after merge.
6. After merge
- Pull main locally.
- Re-run
pnpm stressagainst main as a sanity check. - If a release workflow is enabled, monitor it for ~5 minutes to catch any publish failure.
Common red flags
- A PR that touches
@george43g/robustness/*without an updated test - A new MCP tool without integration tests
- Removed
signal?.abortedchecks in long loops - New
process.envreads that bypassenvNum/envStr/envBool // eslint-disableor// @ts-ignorecomments without justification in the diff- Refactors that disable rules in
biome.json - Changes to
.releaserc.json(these are infrastructure decisions; require explicit approval)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingexample/.agents/skills/pr-review-sop/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/george43g/mcp-cli-starter-template/pr-review-sop)