用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/diegosouzapw/awesome-omni-skill --skill workflows-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | workflows-review |
| description | Perform exhaustive code reviews using multi-agent analysis, ultra-thinking, and worktrees |
[PR number, GitHub URL, branch name, or latest]
<command_purpose> Perform exhaustive code reviews using multi-agent analysis, ultra-thinking, and Git worktrees for deep local inspection. </command_purpose>
Senior Code Review Architect with expertise in security, performance, architecture, and quality assurance
<review_target> #$ARGUMENTS </review_target>
First, I need to determine the review target type and set up the code for analysis.<task_list>
/git-worktree skill with branch namegh pr view --json for title, body, files, linked issuesEnsure that the code is ready for analysis (either in worktree or on current branch). ONLY then proceed to the next step.
</task_list>
<protected_artifacts> The following paths are compound-engineering pipeline artifacts and must never be flagged for deletion, removal, or gitignore by any review agent:
docs/plans/*.md — Plan files created by /workflows-plan. These are living documents that track implementation progress (checkboxes are checked off by /workflows-work).docs/solutions/*.md — Solution documents created during the pipeline.If a review agent flags any file in these directories for cleanup or removal, discard that finding during synthesis. Do not create a task for it. </protected_artifacts>
<parallel_tasks>
Run ALL or most of these as subagents in parallel:
</parallel_tasks>
<conditional_skills>
These skills are run ONLY when the PR matches specific criteria. Check the PR files list to determine if they apply:
If PR contains database migrations or data backfills:
When to run migration skills:
db/migrate/*.rbWhat these skills check:
review-data-migrations: Verifies hard-coded mappings match production reality (prevents swapped IDs), checks for orphaned associations, validates dual-write patternsverify-deployment: Produces executable pre/post-deploy checklists with SQL queries, rollback procedures, and monitoring plans</conditional_skills>
For each phase below, spend maximum cognitive effort. Think step by step. Consider all angles. Question assumptions. And bring all reviews in a synthesis to the user.
Complete system context map with component interactions<thinking_prompt>Put yourself in each stakeholder's shoes. What matters to them? What are their pain points? </thinking_prompt>
<stakeholder_perspectives>
Developer Perspective
Operations Perspective
End User Perspective
Security Team Perspective
Business Perspective
<thinking_prompt> Explore edge cases and failure scenarios. What could go wrong? How does the system behave under stress? </thinking_prompt>
<scenario_checklist>
</scenario_checklist>
Run the Task review-code-simplicity() to see if we can simplify the code.
<critical_requirement> ALL findings MUST be stored using the tasks-core skill via /tasks operations. It auto-detects and validates the backend. Create tasks immediately after synthesis - do NOT present findings for user approval first. </critical_requirement>
<synthesis_tasks>
docs/plans/ or ~/docs/solutions/ (see Protected Artifacts above)</synthesis_tasks>
/tasks<critical_instruction> Use /tasks (backed by tasks-core) to create tasks for ALL findings immediately. Do NOT present findings one-by-one asking for user approval. Create all tasks in parallel, then summarize results to user. </critical_instruction>
Implementation Options:
Option A: Direct Creation (Fast)
tasks-core contract and normalized output.Option B: Subagents in Parallel (Recommended for Scale) For large PRs with 15+ findings, use subagents to create finding files in parallel:
# Launch multiple tasks in parallel
- Create tasks for first finding
- Create tasks for second finding
- Create tasks for third finding
etc. for each finding.
Subagents can:
Execution Strategy:
/tasksProcess (Using /tasks):
For each finding:
Use /tasks for structured task management:
/tasks detect
/tasks create --title "..." --priority "P1|P2|P3" --type "bug|feature|task|docs|question|epic" --description "..."
/tasks update --id <id> --notes "Findings and technical details" --acceptance-criteria "- [ ] ..."
tasks-core provides routing, naming/field mapping, and backend-specific persistence.
Create tasks in parallel and capture returned IDs in your summary.
Follow tasks-core for backend-specific template structure and field mapping.
Task Structure (normalized across backends):
Each task must include:
Use backend-specific field mapping through tasks-core and its backend guides.
Status values:
pending - New findings, needs triage/decisionready - Approved by manager, ready to workcomplete - Work finishedPriority values:
P1/P2/P3 at input level; tasks-core maps to backend-specific values.Tagging: Always add code-review tag, plus: security, performance, architecture, rails, quality, etc.
After creating all tasks, present comprehensive summary:
## ✅ Code Review Complete
**Review Target:** PR #XXXX - [PR Title] **Branch:** [branch-name]
### Findings Summary:
- **Total Findings:** [X]
- **🔴 CRITICAL (P1):** [count] - BLOCKS MERGE
- **🟡 IMPORTANT (P2):** [count] - Should Fix
- **🔵 NICE-TO-HAVE (P3):** [count] - Enhancements
### Created Tasks (via `/tasks`):
**P1 - Critical (BLOCKS MERGE):**
- `{task-id}` - {description}
**P2 - Important:**
- `{task-id}` - {description}
**P3 - Nice-to-Have:**
- `{task-id}` - {description}
### Review Agents Used:
- review-security
- analyze-performance
- analyze-architecture
- review-agent-native
- review-code-simplicity
- [other agents]
### Next Steps:
1. **Address P1 Findings**: CRITICAL - must be fixed before merge
- Review each P1 task in detail
- Implement fixes or request exemption
- Verify fixes before merging PR
2. **Triage All Tasks**:
```bash
/triage # Uses /tasks operations through tasks-core routing
```
Work on Approved Tasks:
/resolve_task_parallel # Fix all approved items efficiently
Track Progress:
/tasks claim --id <id> before implementation/tasks update --id <id> ... for work-log notes and status details/tasks close --id <id> --reason "Completed" to resolve🔴 P1 (Critical - Blocks Merge):
🟡 P2 (Important - Should Fix):
🔵 P3 (Nice-to-Have):
### 7. End-to-End Testing (Optional)
<detect_project_type>
**First, detect the project type from PR files:**
| Indicator (examples in changed files) | Project Type |
|-----------|--------------|
| `package.json`, `bun.lockb`, `pnpm-lock.yaml`, `yarn.lock`, frontend paths (`app/views/*`, `src/pages/*`, `app/*`, `public/*`), UI files (`*.tsx`, `*.jsx`, `*.html.*`, `*.css`, `*.scss`) | Web |
| iOS app signals such as `*.xcodeproj`, `*.xcworkspace`, iOS simulator/build changes, UIKit/SwiftUI mobile flows | iOS |
| Native macOS desktop app signals such as AppKit/NSWindow menu/window interactions, desktop app targets, macOS UI flows | macOS Native |
| `go.mod`, `pyproject.toml`, `requirements*.txt`, `Cargo.toml`, backend paths (`api/*`, `server/*`, `services/*`, `internal/*`, `cmd/*`), files (`*.go`, `*.py`, `*.rs`, `*.rb`) | Backend/API |
| `scripts/*.sh`, `Makefile`, `.github/workflows/*`, infra/config-heavy PRs with no UI/mobile indicators | CLI/Infra |
| Signals from 2+ types above (for example Web + Backend, iOS + Backend, Web + iOS, macOS + Backend) | Hybrid |
If multiple categories are touched, treat it as `Hybrid` and offer each relevant test path.
</detect_project_type>
<offer_testing>
After presenting the Summary Report, offer appropriate testing based on project type:
**For Web Projects:**
```markdown
**"Want to run browser tests on the affected pages?"**
1. Yes - run `/test-browser`
2. No - skip
For iOS Projects:
**"Want to run Xcode simulator tests on the app?"**
1. Yes - run `/test-xcode`
2. No - skip
For macOS Native Projects:
**"Want to run native macOS UI tests on the desktop app?"**
1. Yes - run `/test-mac`
2. No - skip
For Backend/API Projects:
**"Want to run backend verification for the affected services?"**
1. Yes - run repo-native targeted tests/checks for changed language areas (Python/Go/Rust/Ruby/TS) or `/prove-it`
2. No - skip
For CLI/Infra Projects:
**"Want to run CLI/infra verification on changed commands and automation?"**
1. Yes - run command smoke tests (and `/prove-it` when useful)
2. No - skip
For Hybrid Projects (choose based on touched combination):
**"Want to run end-to-end tests?"**
1. Web only - run `/test-browser`
2. iOS only - run `/test-xcode`
3. macOS only - run `/test-mac`
4. Backend/CLI only - run repo-native tests/checks or `/prove-it`
5. All relevant paths - run all applicable options
6. No - skip
</offer_testing>
Spawn a subagent to run browser tests (preserves main context):
Task general-purpose("Run /test-browser for PR #[number]. Test all affected pages, check for console errors, handle failures by creating tasks and fixing.")
The subagent will:
Standalone: /test-browser [PR number]
Spawn a subagent to run Xcode tests (preserves main context):
Task general-purpose("Run /test-xcode for scheme [name]. Build for simulator, install, launch, take screenshots, check for crashes.")
The subagent will:
Standalone: /test-xcode [scheme]
Spawn a subagent to run native macOS tests (preserves main context):
Task general-purpose("Run /test-mac for the affected desktop app flows. Use Peekaboo to validate windows/menus/interactions, capture artifacts, and create tasks for failures.")
The subagent will:
Standalone: /test-mac [app name|bundle id|frontmost]
Spawn a subagent to run backend verification (preserves main context):
Task general-purpose("Run backend verification for PR #[number]. Detect changed backend languages and modules, run targeted tests/checks, inspect failures, create tasks for issues, and re-run until passing.")
The subagent will:
/prove-it when command selection is ambiguous or cross-service validation is neededStandalone: /prove-it [feature-or-change]
Spawn a subagent to run CLI/infra verification (preserves main context):
Task general-purpose("Run CLI/infra verification for PR #[number]. Smoke test changed commands/scripts, validate CI/workflow-impacting changes, capture failures, and iterate to green.")
The subagent will:
Standalone: /prove-it [feature-or-change]
Any 🔴 P1 (CRITICAL) findings must be addressed before merging the PR. Present these prominently and ensure they're resolved before accepting the PR.