원클릭으로
source-command-ccg-spec-review
双模型交叉审查(独立工具,随时可用)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
双模型交叉审查(独立工具,随时可用)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
REST API design patterns including resource naming, status codes, pagination, filtering, error responses, versioning, and rate limiting for production APIs.
Django testing strategies with pytest-django, TDD methodology, factory_boy, mocking, coverage, and testing Django REST Framework APIs.
Spring Security best practices for authn/authz, validation, CSRF, secrets, headers, rate limiting, and dependency security in Java Spring Boot services.
为网页应用快速接入 OpenClaw 通道配置,自动输出可直接复制的 Webhook URL 与 Token。用于用户说“帮我配置 OpenClaw 通道”“给我 Webhook 和 Token”“一键生成接入参数”“OpenClaw 对话接入配置”这类场景,支持外部网页与本地网页两种模式,减少手工查配置和复制错误。
基于 AI 自动生成高质量 PPT 图片和视频,支持智能转场和交互式播放。
Enforce TDD workflow for Kotlin. Write Kotest tests first, then implement. Verify 80%+ coverage with Kover.
| name | source-command-ccg-spec-review |
| description | 双模型交叉审查(独立工具,随时可用) |
Use this skill when the user asks to run the migrated source command ccg-spec-review.
Core Philosophy
Guardrails
openspec/AGENTS.md for spec conventions if reviewing OpenSpec proposals.Steps
Select Proposal
openspec list --json to display Active Changes.openspec status --change "<proposal_id>" --json to load spec and tasks.Collect Implementation Artifacts
git diff to get change summary.openspec/changes/<id>/specs/.Multi-Model Review (PARALLEL)
run_in_background: true.Step 3.1: In ONE message, make TWO parallel Bash calls:
FIRST Bash call (Codex):
Bash({
command: "/Users/tangchunwu/.Codex/bin/codeagent-wrapper --backend codex - \"$PWD\" <<'EOF'\nReview proposal <proposal_id> implementation:\n\n## Codex Review Dimensions\n1. **Spec Compliance**: Verify ALL constraints from spec are satisfied\n2. **PBT Properties**: Check invariants, idempotency, bounds are correctly implemented\n3. **Logic Correctness**: Edge cases, error handling, algorithm correctness\n4. **Backend Security**: Injection vulnerabilities, auth checks, input validation\n5. **Regression Risk**: Interface compatibility, type safety, breaking changes\n\n## Output Format (JSON)\n{\n \"findings\": [\n {\n \"severity\": \"Critical|Warning|Info\",\n \"dimension\": \"spec_compliance|pbt|logic|security|regression\",\n \"file\": \"path/to/file.ts\",\n \"line\": 42,\n \"description\": \"What is wrong\",\n \"constraint_violated\": \"Constraint ID from spec (if applicable)\",\n \"fix_suggestion\": \"How to fix\"\n }\n ],\n \"passed_checks\": [\"List of verified constraints/properties\"],\n \"summary\": \"Overall assessment\"\n}\nEOF",
run_in_background: true,
timeout: 300000,
description: "Codex: backend/logic review"
})
SECOND Bash call (Gemini) - IN THE SAME MESSAGE:
Bash({
command: "/Users/tangchunwu/.Codex/bin/codeagent-wrapper --backend gemini - \"$PWD\" <<'EOF'\nReview proposal <proposal_id> implementation:\n\n## Gemini Review Dimensions\n1. **Pattern Consistency**: Naming conventions, code style, project patterns\n2. **Maintainability**: Readability, complexity, documentation adequacy\n3. **Integration Risk**: Dependency changes, cross-module impacts\n4. **Frontend Security**: XSS, CSRF, sensitive data exposure\n5. **Spec Alignment**: Implementation matches spec intent (not just letter)\n\n## Output Format (JSON)\n{\n \"findings\": [\n {\n \"severity\": \"Critical|Warning|Info\",\n \"dimension\": \"patterns|maintainability|integration|security|alignment\",\n \"file\": \"path/to/file.ts\",\n \"line\": 42,\n \"description\": \"What is wrong\",\n \"spec_reference\": \"Spec section (if applicable)\",\n \"fix_suggestion\": \"How to fix\"\n }\n ],\n \"passed_checks\": [\"List of verified aspects\"],\n \"summary\": \"Overall assessment\"\n}\nEOF",
run_in_background: true,
timeout: 300000,
description: "Gemini: patterns/integration review"
})
Step 3.2: After BOTH Bash calls return task IDs, wait for results with TWO TaskOutput calls:
TaskOutput({ task_id: "<codex_task_id>", block: true, timeout: 600000 })
TaskOutput({ task_id: "<gemini_task_id>", block: true, timeout: 600000 })
Synthesize Findings
Present Review Report
## Review Report: <proposal_id>
### Critical (X issues) - MUST FIX
- [ ] [SPEC] file.ts:42 - Constraint X violated: description
- [ ] [SEC] api.ts:15 - SQL injection vulnerability
### Warning (Y issues) - SHOULD FIX
- [ ] [PATTERN] utils.ts:88 - Inconsistent naming convention
### Info (Z issues) - MAY FIX
- [ ] [MAINT] helper.ts:20 - Consider extracting to separate function
### Passed Checks
- ✅ PBT: Idempotency property verified
- ✅ Security: No XSS vulnerabilities found
Decision Gate
If Critical > 0:
/ccg:spec-impl to address?"If Critical = 0:
Optional: Inline Fix Mode
Context Checkpoint
/clear and continue with /ccg:spec-review or /ccg:spec-impl"Exit Criteria Review is complete when:
Reference
openspec status --change "<id>" --jsonrg -n "CONSTRAINT:|MUST|INVARIANT:" openspec/changes/<id>/specs/git diff/ccg:spec-impl → Step 10