review
8
总安装量
6
周安装量
#33760
全站排名
安装命令
npx skills add https://github.com/doodledood/codex-workflow --skill review
Agent 安装分布
claude-code
5
gemini-cli
4
antigravity
4
opencode
4
windsurf
3
codex
3
Skill 文档
User request: $ARGUMENTS
Orchestrate comprehensive code review by running specialized review skills and consolidating findings.
Flags:
--autonomousâ no user prompts, run all applicable reviews, return consolidated report--skip <types>â skip specific review types (comma-separated: bugs, types, maintainability, simplicity, testability, coverage, docs, agents-md)--only <types>â run only specific review types
Output: Consolidated review report to user.
Phase 1: Setup
1.1 Determine Scope
Priority order for scope:
- User specifies files/directories in $ARGUMENTS â use those
- Otherwise â diff against
origin/mainororigin/master - No changes found â ask user what to review
1.2 Select Reviews
Determine which reviews to run based on scope and arguments:
| Review Type | Skill | When to Include |
|---|---|---|
| Bugs | $review-bugs |
Always (unless skipped) |
| Type Safety | $review-type-safety |
TypeScript/typed Python detected |
| Maintainability | $review-maintainability |
Always (unless skipped) |
| Simplicity | $review-simplicity |
Always (unless skipped) |
| Testability | $review-testability |
Always (unless skipped) |
| Coverage | $review-coverage |
Test files exist in project |
| Docs | $review-docs |
Always (unless skipped) |
| AGENTS.md | $review-agents-md-adherence |
AGENTS.md file exists |
Detection logic:
- TypeScript:
tsconfig.jsonexists - Typed Python:
pyproject.tomlwith mypy config ORpy.typedmarker - Test files:
*.test.*,*.spec.*,__tests__/,tests/exist - AGENTS.md: file exists in project root or parent directories
1.3 Create Todo List
- [ ] Run bug review
- [ ] Run type safety review (if applicable)
- [ ] Run maintainability review
- [ ] Run simplicity review
- [ ] Run testability review
- [ ] Run coverage review (if applicable)
- [ ] Run docs review
- [ ] Run AGENTS.md review (if applicable)
- [ ] Consolidate findings
Phase 2: Execute Reviews
2.1 Review Loop
For each selected review type:
- Mark todo
in_progress - Execute the review skill
- Capture findings (severity, location, description, suggested fix)
- Mark todo
completed - Continue to next review
2.2 Individual Review Execution
Run each review against the same scope:
Bug Review:
$review-bugs {scope}
Type Safety Review (if TypeScript/typed Python):
$review-type-safety {scope}
Maintainability Review:
$review-maintainability {scope}
Simplicity Review:
$review-simplicity {scope}
Testability Review:
$review-testability {scope}
Coverage Review (if tests exist):
$review-coverage {scope}
Docs Review:
$review-docs {scope}
AGENTS.md Review (if AGENTS.md exists):
$review-agents-md-adherence {scope}
2.3 Capture Findings
From each review, extract issues with:
- Category: bugs | type-safety | maintainability | simplicity | testability | coverage | docs | agents-md
- Severity: Critical | High | Medium | Low
- Location: file:line
- Description: What the issue is
- Suggested Fix: How to resolve
Phase 3: Consolidate
3.1 Merge and Deduplicate
Combine all findings:
- Group by severity (Critical â High â Medium â Low)
- Within severity, group by category
- Deduplicate: same file:line with similar description â merge, keep highest severity
3.2 Generate Report
# Code Review Report
**Scope**: {files/changes reviewed}
**Reviews run**: {list of review types executed}
## Summary
| Category | Critical | High | Medium | Low |
|----------|----------|------|--------|-----|
| Bugs | N | N | N | N |
| Type Safety | N | N | N | N |
| Maintainability | N | N | N | N |
| Simplicity | N | N | N | N |
| Testability | N | N | N | N |
| Coverage | N | N | N | N |
| Docs | N | N | N | N |
| AGENTS.md | N | N | N | N |
| **Total** | N | N | N | N |
## Critical Issues
### [BUG] {Title}
**Location**: `file.ts:line`
**Description**: {issue}
**Suggested Fix**: {fix}
### [TYPE] {Title}
...
## High Issues
{Same format}
## Medium Issues
{Same format}
## Low Issues
{Same format}
## Review Status
| Review | Status | Issues Found |
|--------|--------|--------------|
| Bugs | â Complete | N |
| Type Safety | â Complete | N |
| Maintainability | â Complete | N |
| Simplicity | â Complete | N |
| Testability | â Complete | N |
| Coverage | â Complete | N |
| Docs | â Complete | N |
| AGENTS.md | â Complete | N |
## Recommendations
### Priority Fixes (do first)
1. {Critical/High issue with highest impact}
2. {Second priority}
3. {Third priority}
### Quick Wins (easy fixes)
- {Low-effort issues that can be fixed quickly}
### Deferred (consider later)
- {Low-severity issues that don't block merge}
3.3 Clean Report
If no issues found:
# Code Review Report
**Scope**: {files/changes reviewed}
**Reviews run**: {list}
**Status**: ALL CLEAR
No issues found. Code is ready for merge.
## Review Status
| Review | Status | Issues Found |
|--------|--------|--------------|
| Bugs | â Complete | 0 |
| Type Safety | â Complete | 0 |
...
Phase 4: Present Results
4.1 If --autonomous
Return consolidated report without prompts.
4.2 If Interactive
Present summary and ask:
## Review Complete
Found {N} issues across {M} categories.
Critical: {N} | High: {N} | Medium: {N} | Low: {N}
### Top Priority Fixes
1. {Issue 1}
2. {Issue 2}
3. {Issue 3}
What would you like to do?
Options:
- Fix issues - run $fix-review-issues (Recommended if Critical/High exist)
- Show full report - see all findings
- Done - I'll address manually
Edge Cases
| Case | Action |
|---|---|
| No scope (no changes, no files specified) | Ask user what to review |
| No applicable reviews (e.g., no TS, no tests, no AGENTS.md) | Run only applicable reviews, note skipped |
| Review skill errors | Note error in report, continue with other reviews |
| All reviews clean | Report “ALL CLEAR” |
| Very large scope | Warn user, proceed (reviews handle internally) |
Guidelines
- Comprehensive: Run all applicable reviews unless explicitly skipped
- Consolidated: Single unified report, not multiple separate outputs
- Actionable: Prioritize findings, suggest fix order
- Efficient: Skip inapplicable reviews (no TypeScript = skip type review)
- Autonomous: Support
--autonomousfor CI/automation use