Skip to content
Back to skills

Magnet Review

ASecurity

Runs a maintainer's pull request review pass at scale - builds the review queue (who has waited longest on you, first-timers, held CI runs for new contributors, conflicts, PRs on issues assigned to someone else, duplicate PRs for the same issue), applies a selective merge bar, spots AI slop and point-farming, reviews code properly (reads test bodies, mutation spot checks, renders UI changes), writes short human-sounding review comments, and merges approved PRs one by one on repos that require...

  • 33 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsgobashnodegit

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add Priyanshu-byte-coder/contributor-magnet --skill magnet-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Magnet Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Magnet Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/priyanshu-byte-coder-magnet-review/badge)](https://www.skillsdirectory.com/skills/priyanshu-byte-coder-magnet-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: magnet-review
description: Runs a maintainer's pull request review pass at scale - builds the review queue (who has waited longest on you, first-timers, held CI runs for new contributors, conflicts, PRs on issues assigned to someone else, duplicate PRs for the same issue), applies a selective merge bar, spots AI slop and point-farming, reviews code properly (reads test bodies, mutation spot checks, renders UI changes), writes short human-sounding review comments, and merges approved PRs one by one on repos that require up-to-date branches. Use when asked to check, triage or review open PRs, clear a PR backlog, handle a flood of contributor or program PRs, or decide what to merge.
license: MIT
metadata:
  author: Priyanshu Doshi
  repo: https://github.com/Priyanshu-byte-coder/contributor-magnet
---

# Magnet review

The reason contributors stay or leave is how their PR is treated. Fast, kind and honest beats slow and perfect. This routine holds up through a program with hundreds of PRs.

## Run it

1. **Get standing rules from the maintainer first** (save them if your agent has memory): what you may do without asking (comment, request changes, approve, merge, close), the merge bar, scope boundaries, the voice for comments, and whether comments must avoid any mention of AI. Never merge or close without that permission.
2. **Build the queue:**
   ```bash
   node <this skill>/scripts/pr-queue.mjs --repo owner/name
   ```
   Outside PRs waiting on the maintainer come first, longest wait first, first-timers breaking ties. Flags: `approve CI run` (GitHub held Actions for a new contributor), `issue assigned to someone else`, `same issue as #N`, `no linked issue`, `huge`.
3. **For each PR**, decide with [references/review-playbook.md](references/review-playbook.md):
   - **Good and in scope** → approve with 2–4 specific sentences on what's good.
   - **Needs changes** → request changes with a short list (file, what, why). Add the `waiting on author` label so the stale bot can eventually close it if they vanish.
   - **Slop or out of scope** → close with one kind sentence and a pointer to another issue.
   - **Duplicate** → keep the earlier complete one, close the rest with a link.
   - **Waiting on the author 5+ days** → one nudge with the exact next step. Silent 14 days after a nudge → close, inviting them to reopen.
4. **Held CI runs:** approve them only after reading the diff. Never approve a run for a PR that edits `.github/`, adds install scripts or touches secrets without a careful look.
5. **Review the code, not the CI badge.** Read test bodies, break the code under test for anything important and check the test fails, trace changed call paths, render UI changes at desktop and mobile widths. Details in the playbook.
6. **Merge approved PRs** one at a time. If the default branch requires up-to-date branches:
   ```bash
   node <this skill>/scripts/merge-chain.mjs 101 104 107 --dry-run
   node <this skill>/scripts/merge-chain.mjs 101 104 107 --check "<required check name>"
   ```
   Show the dry run and get a yes first. Use the exact name of the required status check from branch protection, or leave `--check` out to wait for every check. It updates each branch, approves held runs (not for `.github/` changes), waits for CI on the new commit, re-approves and merges. If no CI starts within 3 minutes it closes and reopens the PR once to trigger it; tell the maintainer this can happen. Investigate every SKIP.
7. **Report** a table: PR, author, what you did, why, and anything the maintainer must do (deploys, decisions you didn't make).

## Voice

Write like a busy, friendly maintainer: short, specific, plain sentences. At most one emoji. No headings in a three-line comment, no "Great question!", no wall of bullets for one point. Name the file and the change. Thank them once.

> Thanks! This works, and the test for the empty case is a nice touch. One thing: `formatDate` now ignores the user's saved timezone (settings.ts:40). Could you pass it through? Then it's good to merge.

## Don't

- Don't merge because CI is green. Ask whether it makes the project better for its users.
- Don't rewrite a contributor's PR yourself unless they've asked or vanished; request changes instead.
- Don't close a PR that's waiting on *you*. That's on the maintainer.
- Don't argue with slop. One sentence, close, move on.

Files in this skill

  • SKILL.md4.3 KB
  • agents/openai.yaml169 B
  • references/review-playbook.md5.1 KB
  • scripts/merge-chain.mjs6.2 KB
  • scripts/pr-queue.mjs5.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.