pr-security-review/SKILL.md
Use when the user wants a security-focused review pass on a PR with findings actioned as commits on the same branch. Trigger phrases - "/pr-security-review", "security review and fix".
npx skillsauth add paulund/skills pr-security-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Security-focused review of a PR's diff, with findings actioned as commits on the same branch.
When invoked with arguments, the first line of the prompt may carry a context envelope as JSON:
{ "pr": 123, "branch": "agent/issue-582-foo" }
gh pr view <pr> --json number,title,body,headRefName,baseRefName
gh pr diff <pr>
Read the full diff. Note any imports, framework patterns, and existing security utilities (sanitizers, rate-limiters, auth middleware) referenced.
Identify the data flow boundaries the change touches:
getServerSession, middleware checks, RLS policies, RBAC decisionsIf the diff doesn't touch any of these, report no security-relevant changes and exit at Step 5.
Examine each modified file for the categories below. Trace data flow from the entry point to each sink.
Only flag findings where you are >80% confident of actual exploitability. Severity rubric:
Do NOT flag:
For every HIGH and MEDIUM finding: fix the code in this run. Do not defer.
For LOW findings: fix if trivial. Defer only if genuinely out of scope; create a tracking issue in that case:
gh issue create \
--title "security: <short description>" \
--body "Deferred from PR #<N> security review — accepted as-is because <reason>." \
--label "security,planned,afk"
git add <files>
git commit -m "Security review: <one-line summary>"
git push origin HEAD
gh pr comment <pr> --body "$(cat <<EOF
## Security review
### Fixed
- [HIGH/MEDIUM/LOW | file:line | category | what was wrong → how it was fixed]
### Deferred (LOW only)
- [item — reason — tracked in #N]
EOF
)"
{ "pr": <N>, "findings": <count>, "fixed": <count>, "deferred": <count> }
security label.quality-gate's job.testing
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
development
TypeScript project conventions. Auto-load when editing *.ts or *.tsx files.
development
Use when writing or fixing PHP code, implementing classes, traits, or interfaces, applying PSR standards, or working with PHP 8.3+ patterns like readonly properties, enums, named arguments, match expressions, and union types.
tools
Next.js 15 App Router project conventions. Auto-load when working in app/, src/app/, components/, server actions, or route handlers.