协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
codex-claude-pm【开发与工程】Codex as product manager and reviewer for delegating coding implementation to Claude Code. Use when the user wants Codex to split software work into precise Task Packages, call or hand off to Claude Code for implementation, review Completion Reports, inspect diffs, run verification, and issue acceptance or change requests. Trigger for requests mentio…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill to make Codex the planner, reviewer, and final owner while Claude Code performs the implementation work. Treat the workflow as an engineering ticket system, not an open-ended chat.
Codex owns correctness. Claude Code may write code, but Codex must still inspect scope, compare against acceptance criteria, and independently verify the result before accepting it.
Orient in the repository.
rg and targeted file reads. Avoid broad rewrites before understanding local patterns.Decide whether to dispatch.
references/dependencies.md when the task depends on external tools, credentials, project services, generated assets, or multi-step task ordering.Write a Task Package.
references/task-package-template.md.references/completion-report-template.md.Quality-check the Task Package before sending.
references/review-checklist.md when the task has meaningful risk.Dispatch to Claude Code.
scripts/Invoke-ClaudeDispatch.ps1.claude -p.-Background for long-running implementation, broad investigation, or unclear runtime.Verify the result.
scripts/Get-ClaudeDispatchRun.ps1 to check status and fetch the result.git diff --stat and targeted git diff for modified files.Decide.
references/change-request-template.md.references/evaluation.md when judging whether this skill itself worked well on the task.Use the bundled script from the repository root or target project root:
powershell -ExecutionPolicy Bypass -File .\codex-claude-pm\scripts\Invoke-ClaudeDispatch.ps1 `
-TaskPackagePath .\.codex-claude-pm\tasks\TASK-APP-001.md `
-WorkingDirectory . `
-PermissionMode acceptEdits `
-OutputFormat text
Useful modes:
# Preview command and write logs without calling Claude Code
powershell -ExecutionPolicy Bypass -File .\codex-claude-pm\scripts\Invoke-ClaudeDispatch.ps1 `
-TaskPackagePath .\.codex-claude-pm\tasks\TASK-APP-001.md `
-DryRun
# More autonomous local execution in a trusted sandbox or disposable worktree
powershell -ExecutionPolicy Bypass -File .\codex-claude-pm\scripts\Invoke-ClaudeDispatch.ps1 `
-TaskPackagePath .\.codex-claude-pm\tasks\TASK-APP-001.md `
-PermissionMode auto
# Constrain Claude Code to specific tools
powershell -ExecutionPolicy Bypass -File .\codex-claude-pm\scripts\Invoke-ClaudeDispatch.ps1 `
-TaskPackagePath .\.codex-claude-pm\tasks\TASK-APP-001.md `
-AllowedTools "Read","Edit","Bash(npm test*)","Bash(git diff*)"
The script writes each run under .codex-claude-pm/runs/<timestamp>/ with the task package, command metadata, stdout, and stderr.
Each run now also writes status.json and has a stable Job ID.
Background execution:
powershell -ExecutionPolicy Bypass -File .\codex-claude-pm\scripts\Invoke-ClaudeDispatch.ps1 `
-TaskPackagePath .\.codex-claude-pm\tasks\TASK-APP-001.md `
-WorkingDirectory . `
-Background
Inspect runs:
# List recent runs
powershell -ExecutionPolicy Bypass -File .\codex-claude-pm\scripts\Get-ClaudeDispatchRun.ps1 -WorkingDirectory .
# Show one run result
powershell -ExecutionPolicy Bypass -File .\codex-claude-pm\scripts\Get-ClaudeDispatchRun.ps1 `
-WorkingDirectory . `
-JobId cc-20260706-120000-abc123 `
-Result
# Best-effort cancellation of a background run
powershell -ExecutionPolicy Bypass -File .\codex-claude-pm\scripts\Stop-ClaudeDispatchRun.ps1 `
-WorkingDirectory . `
-JobId cc-20260706-120000-abc123
This mirrors the useful part of openai/codex-plugin-cc: setup/status/result/cancel are first-class operations, while Codex remains responsible for the final review.
Before the first real dispatch in a project, run:
powershell -ExecutionPolicy Bypass -File .\codex-claude-pm\scripts\Test-ClaudeDispatchPrereqs.ps1 `
-WorkingDirectory .
This checks whether claude is available, whether the working directory and git state are readable, and whether non-interactive Claude Code can be invoked for basic CLI metadata.
acceptEdits or auto over bypassPermissions unless the project is isolated and trusted.Use references/evaluation.md to score the skill after real tasks. A good run produces a specific Task Package, a bounded diff, a structured Completion Report, independently verified tests, and either a clear ACCEPT or focused Change Request.
Read references/codex-plugin-cc-study.md when changing the dispatcher architecture.
When automatic CLI dispatch is not appropriate, respond with:
references/task-package-template.md - canonical Task Package format.references/completion-report-template.md - required Claude Code response format.references/change-request-template.md - format for follow-up fixes.references/review-checklist.md - pre-dispatch and post-dispatch quality gates.references/dependencies.md - dependency taxonomy and dependency map format.references/evaluation.md - how to judge whether the skill is useful and accurate.references/codex-plugin-cc-study.md - implementation lessons adopted from openai/codex-plugin-cc.