协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
ask-agents【开发与工程】Send a task or question to Claude Code and/or Gemini as external subagents and report back what they said. Use when the user asks to ask Claude, ask Gemini, ask both, get a second opinion, split reviewer roles, or compare external agents.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
When the user asks to ask Claude, ask Gemini, ask both, split work between them, or get an outside opinion, do it directly with the bundled runner. Do not turn it into an integration discussion.
Sending a task to Claude Code or Gemini sends the prompt, listed context files, and any quoted material to another AI service. Before every run, check whether the prompt or context includes confidential records, personal contact details, human-subjects or research-participant data, private transcripts, unpublished sensitive work, or anything the user would not paste into a public website. If so, do not run the external agent. Offer a local Codex-only answer or a redacted prompt for the user to approve first.
If the privacy check passes, ask for explicit send confirmation before every external run: "Send this prompt to Claude/Gemini as an outside opinion? (yes/no)" Proceed only if the user answers yes. If they answer no or do not answer clearly, stop and offer a Codex-only answer.
node on your PATH)--agent claude: the Claude Code CLI (claude) installed, signed in, and on your PATH--agent gemini: the Gemini CLI (gemini) installed, signed in, and on your PATHIf a required tool is missing, the runner stops with a plain-language message naming it. Never substitute your own answer while implying the external agent ran.
The runner is bundled inside this skill at scripts/run-external-agent.mjs:
node ~/.codex/skills/ask-agents/scripts/run-external-agent.mjs --agent claude --prompt "..."
node ~/.codex/skills/ask-agents/scripts/run-external-agent.mjs --agent gemini --prompt "..."
node ~/.codex/skills/ask-agents/scripts/run-external-agent.mjs --agent both --prompt "..."
(If your skills live somewhere other than ~/.codex/skills, adjust the path — the script is in this skill's own folder.)
Defaults:
cwd: the folder the command is run from (your current project)External runs are read-only: the runner snapshots the working folder before and after, reports any file changes, and instructs the external agent to propose patches rather than apply them.
Useful options:
--cwd /path/to/workspace
--context relative/path/under/cwd
--timeout 600
--max-output 100000
--max-turns 10
--max-budget 4
--claude-prompt "implementation/reliability role..."
--gemini-prompt "strategy/alternative role..."
Claude implementation review:
Review this as Claude Code. Focus on implementation risk, missing tests, operational failure modes, and the smallest robust next step.
Gemini outside view:
Review this as Gemini. Focus on alternative approaches, strategy/product tradeoffs, hidden assumptions, and what we may be overcomplicating.
If an external run fails, say it failed and include the details that matter (state, error, missing tool). If the command was blocked by sandboxing or approvals, ask the user to approve that specific command and rerun it.
External agents:
Claude:
Gemini:
Synthesis:
Next action: