用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/me2resh/apexyard --skill code-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | code-review |
| description | Review a PR for quality, security, and standards compliance. Invokes the Code Reviewer agent (Rex). |
| disable-model-invocation | false |
| argument-hint | <pr-number> [repo] |
| allowed-tools | Bash, Read, Grep, Glob |
Review a pull request for quality, security, and adherence to standards.
This skill performs semantic code navigation — finding definitions, walking references, tracing handlers across modules. With LSP enabled (ENABLE_LSP_TOOL=1 + per-language plugin per docs/getting-started.md), queries are ~3-15× cheaper in token cost than grep + Read. Without LSP, the skill falls back to grep + Read transparently — no new failure mode, just optional speed.
Per-language LSP plugins live in Claude Code's marketplace. Install once; the skill detects the active language and dispatches automatically.
When /code-review runs:
.claude/agents/code-reviewer.md — runs on every commit, owns the automated first-pass review.**/auth/**, **/crypto/**, **/secrets/**, .env*, or similar, the Security Auditor also activates and must sign off before merge. Consider chaining /security-review for the deeper pass.See .claude/rules/role-triggers.md for the full activation protocol.
/code-review 30
/code-review 30 your-org/your-repo
Before spawning the Code Reviewer agent (Rex), write the active-reviewer session marker. It records that this review pass is the sanctioned one, and suppresses warn-review-marker-write.sh's advisory warning on Rex's *-rex.approved write (that hook warns and never blocks since #1026 — AgDR-0111). At skill entry:
ops_root=$(git rev-parse --show-toplevel)
r="$ops_root"
while [ -n "$r" ] && [ "$r" != "/" ]; do
[ -f "$r/.apexyard-fork" ] && { ops_root="$r"; break; }
[ -f "$r/onboarding.yaml" ] && [ -f "$r/apexyard.projects.yaml" ] && { ops_root="$r"; break; }
r=$(dirname "$r")
done
mkdir -p "$ops_root/.claude/session"
printf '%s\n' "<owner/repo>#<pr>:rex" > "$ops_root/.claude/session/active-reviewer"
On skill exit (after Rex posts its verdict, whether APPROVED or CHANGES REQUESTED), clear the marker:
rm -f "$ops_root/.claude/session/active-reviewer"
Nothing mechanically stops a build-class sub-agent writing the same file; what makes Rex's marker legitimate is that a real, independent review happened. See .claude/hooks/warn-review-marker-write.sh and .claude/rules/pr-workflow.md § "Build agents cannot self-review".
### Fallow Findings table + dry-run fix previewtracker_review_submit (gh PR / glab MR / custom host — #758), not a hardcoded gh pr review, then clear the active-reviewer marker from step 0any typesScan the diff for unrecorded decisions:
If a decision is detected but no AgDR is linked:
/decidePosts a GitHub review comment with:
fallow CLI is available)Invokes: Code Reviewer Agent (Rex)
Part of ApexYard — multi-project SDLC framework for Claude Code · MIT.
基于 SOC 职业分类