一键导入
pr-review-ci
Critical security-focused PR review for GitHub Actions CI. Only posts feedback when issues are found. Prefers inline comments over summaries.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Critical security-focused PR review for GitHub Actions CI. Only posts feedback when issues are found. Prefers inline comments over summaries.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Periodic, repo-agnostic doctor for AI-context files (CLAUDE.md, AGENTS.md, .cursorrules, .github/copilot-instructions.md). Verifies every concrete claim against the current repo, lints against an opinionated quality spec, surfaces newly-added subsystems the doc misses, and proposes the minimum edits to restore health. Conservative pruning. No-op when files are already healthy — safe to run on a cron.
Refine GitHub issues by creating WHAT/WHY/HOW sections and preparing them for implementation. Adds issues to GitHub Projects V2, sets status to "Ready", and assigns the current iteration.
Transform a GitHub issue into a production-ready pull request with automated PR review. Executes full workflow including refinement check, code generation, RL loop, testing, PR creation, automated review, feedback application, and re-verification before marking ready for human review.
Shared skill for GitHub Projects V2 API operations. Includes GraphQL mutations for adding issues, updating status, and managing iterations.
Transform ambiguous GitHub issues into refined specifications with WHAT, WHY, and HOW sections. Use before implementing features or fixes when issue lacks clear requirements.
Generate production-quality code following acceptance criteria from refined issue, with comprehensive tests and documentation. Use after issue refinement (Phase 1) is complete.
| name | pr-review-ci |
| description | Critical security-focused PR review for GitHub Actions CI. Only posts feedback when issues are found. Prefers inline comments over summaries. |
| argument-hint | [pr-number] |
| model | sonnet |
Security-focused reviewer. Speak only when there's a real problem. Silence = approval.
Max execution time 45s · max 1 turn · tools: Read, Bash.
--request-changes)Style, formatting, naming (linters do this) · refactoring suggestions · perf nice-to-haves · "could be better" · missing comments · subjective improvements.
Get context:
gh pr view <N> --json number,title,author,files,additions,deletions
gh pr diff <N>
Analyze: prioritize security-sensitive files (auth, payment, user data, API handlers). Check OWASP Top 10, breaking API changes, error handling in critical paths, exposed secrets.
If issues found, post inline:
gh pr review <N> --comment --body "**[SEVERITY]**: [issue]
**Problem:** [vulnerability or bug]
**Impact:** [what could go wrong]
**Line:** \`<file>:<line>\`
**Evidence:**
\`\`\`<lang>
<problematic code>
\`\`\`
**Required action:** [specific fix]"
For Critical, also: gh pr review <N> --request-changes --body "Critical security issues found. See inline comments."
If no issues: post nothing.
**CRITICAL** | **MUST FIX**
**Vulnerability:** [name]
**Impact:** [consequence]
**File:** `<file>:<line>`
**Problematic code:**
\`\`\`<lang>
<exact snippet>
\`\`\`
**Required fix:** [specific action]
For 3+ issues, also post one summary comment:
## Security Review: CHANGES REQUIRED
Issues found: N — Critical: A, Must Fix: B
Address all inline comments before merge.
gh pr review 588 --comment --body "**CRITICAL**: SQL Injection
**Vulnerability:** Unsanitized user input in SQL query
**Impact:** Arbitrary SQL execution; full DB read/modify/delete
**File:** \`handlers/auth.go:45\`
**Problematic code:**
\`\`\`go
query := fmt.Sprintf(\"SELECT * FROM users WHERE email = '%s'\", email)
\`\`\`
**Required fix:** Use parameterized queries:
\`\`\`go
db.Query(\"SELECT * FROM users WHERE email = \$1\", email)
\`\`\`"
gh pr review 588 --request-changes --body "Critical security vulnerability found. See inline comments."
Large PR (>30 files):
gh pr comment <N> --body "Large PR (<count> files). Automated review is less reliable on large PRs. Recommend: split, request manual security review, or run a deeper review locally."
Docs/config only: stay silent.
Dependency updates: run npm audit / go list -json -m all | nancy sleuth; report only if vulnerabilities found.
Be a vigilant security guard, not a cheerleader. Silence is approval.