一键导入
gsd-code-review
Review source files changed during a phase for bugs, security issues, and code quality problems
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review source files changed during a phase for bugs, security issues, and code quality problems
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate tests for a completed phase based on UAT criteria and implementation
Generate an AI-SPEC.md design contract for phases that involve building AI systems.
Autonomous audit-to-fix pipeline — find issues, classify, fix, test, commit
Audit milestone completion against original intent before archiving
Cross-phase audit of all outstanding UAT and verification items
Run all remaining phases autonomously — discuss→plan→execute per phase
| name | gsd-code-review |
| description | Review source files changed during a phase for bugs, security issues, and code quality problems |
<cursor_skill_adapter>
gsd-code-review or describes a task matching this skill.{{GSD_ARGS}}.{{GSD_ARGS}} as empty.When the workflow needs user input, prompt the user conversationally:
Use these Cursor tools when executing GSD workflows:
Shell for running commands (terminal operations)StrReplace for editing existing filesRead, Write, Glob, Grep, Task, WebSearch, WebFetch, TodoWrite as neededWhen the workflow needs to spawn a subagent:
Task(subagent_type="generalPurpose", ...)model parameter maps to Cursor's model options (e.g., "fast")
</cursor_skill_adapter>Spawns the gsd-code-reviewer agent to analyze code at the specified depth level. Produces REVIEW.md artifact in the phase directory with severity-classified findings.
Arguments:
--depth=quick|standard|deep (optional) — review depth level, overrides workflow.code_review_depth config
--files file1,file2,... (optional) — explicit comma-separated file list, skips SUMMARY/git scoping (highest precedence for scoping)--fix (optional) — after review completes (or if REVIEW.md already exists), auto-apply fixes found. Spawns gsd-code-fixer agent. Accepts sub-flags:
--all — include Info findings in fix scope (default: Critical + Warning only)--auto — enable fix + re-review iteration loop, capped at 3 iterationsOutput: {padded_phase}-REVIEW.md in phase directory + inline summary of findings
<execution_context> @/Users/zaneliu/Projects/open-source/cloud-cli-proxy/.cursor/get-shit-done/workflows/code-review.md </execution_context>
Phase: {{GSD_ARGS}} (first positional argument is phase number)Optional flags parsed from {{GSD_ARGS}}:
--depth=VALUE — Depth override (quick|standard|deep). If provided, overrides workflow.code_review_depth config.--files=file1,file2,... — Explicit file list override. Has highest precedence for file scoping per D-08. When provided, workflow skips SUMMARY.md extraction and git diff fallback entirely.Context files (.cursor/rules/, SUMMARY.md, phase state) are resolved inside the workflow via gsd-sdk query init.phase-op and delegated to agent via <files_to_read> blocks.
Execute end-to-end.
The workflow (not this command) enforces these gates: