用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cbgbt/bottlerocket-forest --skill review-code命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Edit Bottlerocket RPM spec files following project style conventions
Transform a rough plan into implement-commit ready artifacts. Allows rigorous review while implementing.
Implement commits from an implementation plan using a TDD pipeline
基于 SOC 职业分类
正在显示 SKILL.md
| name | review-code |
| description | Deep code review generating PR comments via principled question-driven analysis |
Review a PR by generating and answering ALL questions derived from review principles. Produces a final document with specific PR comments and references to reasoning artifacts.
Code review is interrogation: generate questions, answer all of them, surface what's unclear or concerning.
What this skill produces:
What this skill does NOT produce:
Process: 0. Setup - Check out PR branch locally
Question types and handlers:
fact-find skill (cited answers)deep-research skill (educational documents)Key insight: Every question gets an explicit, documented answer (or explicit "needs author"). This creates verifiable artifacts.
Before starting, the orchestrator checks out the PR:
# In the target repository directory
gh pr checkout <PR-number>
Prerequisites:
After checkout, all subagents read code from the local filesystem instead of using gh CLI for diffs.
Create planning/<pr-slug>/ for all artifacts. Do not commit these artifacts—they are working documents, not deliverables.
planning/<pr-slug>/
├── 00-scout.md # Initial territory map
├── 01-questions.md # Refined, classified question backlog
├── 02-answers.md # Consolidated Q&A document
├── answers/ # Individual answer artifacts
│ ├── fact-Q1.md
│ ├── design-Q2.md
│ └── ...
├── 03-commit-NN.md # Per-commit reviews
├── 04-holistic-pre.md
├── filtered-implications.md # Categorized implications to surface
├── 05-holistic-post.md
└── REVIEW.md # Final output
Files to pass: PRINCIPLES.md, the agent instruction file, artifacts from prior phases
Data to pass: workspace path, phase-specific data
Responses:
OUTPUT: <filename>
STATUS: ok | problems
NOTES: <if problems>
Trust STATUS: ok. On problems, read notes and decide.
The PR is checked out locally before review begins. Subagents receive:
repo_path: Path to repository with PR checked outbase_ref: The base branch (e.g., main)head_ref: The PR branch (checked out)Subagents read files directly from repo_path. Use git diff {base_ref}...HEAD for diffs.
Check out the PR locally before any analysis:
gh pr checkout <PR-number>
Capture base_ref from PR metadata for diff commands.
Agent: agents/01-scout.md
Files: PRINCIPLES.md, agent file
Data: workspace, repo_path, base_ref, pr_number, user context
Output: 00-scout.md
Agent: agents/02-refine-questions.md
Files: PRINCIPLES.md, agent file, 00-scout.md
Data: workspace, repo_path, base_ref, linked issues/docs
Output: 01-questions.md
This phase uses fact-find to fill knowledge gaps and produces a classified question backlog.
For each question in 01-questions.md, spawn the appropriate answering agent:
| Type | Agent | Output |
|---|---|---|
| FACT | agents/03-answer-fact.md | answers/fact-{id}.md |
| RESEARCH | agents/04-answer-research.md | answers/research-{id}.md |
| DESIGN | agents/05-answer-design.md | answers/design-{id}.md |
| CORRECTNESS | agents/06-answer-correctness.md | answers/correctness-{id}.md |
| INTENT | (skip—mark as needs-author) |
Run answering agents in parallel where possible.
After all complete, consolidate into 02-answers.md:
# Answered Questions
| ID | Type | Question | Answer Summary | Detail |
|----|------|----------|----------------|--------|
| Q1 | FACT | ... | ... | [answers/fact-Q1.md] |
## Needs Author
| ID | Question | Why We Can't Answer |
Agent: agents/07-holistic-pre.md
Files: PRINCIPLES.md, agent file, 01-questions.md, 02-answers.md
Data: workspace, PR description, commit messages
Output: 04-holistic-pre.md
Can run in parallel with Phase 5.
Agent: agents/08-commit-review.md (one per commit, parallel)
Files: PRINCIPLES.md, agent file, 01-questions.md, 02-answers.md
Data: workspace, repo_path, base_ref, commit_sha, commit_message, commit_number, total_commits, all_commit_messages
Output: 03-commit-NN.md
for each commit in PR:
spawn commit_reviewer(
commit_diff=commit.diff,
commit_number=N,
...
) → 03-commit-{N}.md
# One agent per commit - do not batch
Agent: agents/085-filter-implications.md
Files: PRINCIPLES.md, agent file, all 03-commit-*.md
Data: workspace
Output: filtered-implications.md
Agent parses implications and author questions directly from commit review files.
Binary surface decision (surface or don't) plus categorization:
spawn implication_filter(workspace=workspace) → filtered-implications.md
# Agent extracts implications from 03-commit-*.md files
Agent: agents/09-holistic-post.md
Files: PRINCIPLES.md, agent file, 01-questions.md, 02-answers.md, 04-holistic-pre.md, all 03-commit-*.md, filtered-implications.md
Data: workspace
Output: 05-holistic-post.md
Agent: agents/10-synthesize.md
Files: PRINCIPLES.md, agent file, all artifacts
Data: workspace
Output: REVIEW.md
Organizes surfaced concerns by category (correctness, assumption, type-system, intent), not by severity.
Present REVIEW.md to user.
⚠️ LOCAL ONLY: This skill produces local artifacts only. Do NOT offer to post comments to GitHub or interact with GitHub in any way beyond the initial gh pr checkout. The review output is for the user to act on manually.
You orchestrate; subagents analyze. Trust status responses.
Do not read intermediate artifacts except:
STATUS: problems → read notesAlways read: Status responses, REVIEW.md final output.
skills/review-code/
├── SKILL.md
├── PRINCIPLES.md
└── agents/
├── 01-scout.md
├── 02-refine-questions.md
├── 03-answer-fact.md
├── 04-answer-research.md
├── 05-answer-design.md
├── 06-answer-correctness.md
├── 07-holistic-pre.md
├── 08-commit-review.md
├── 085-filter-implications.md
├── 09-holistic-post.md
└── 10-synthesize.md