主代理与子代理进行结构化辩论,发现盲点、探索多角度视角。用于重要决策、设计评估或挑战假设。
Facilitates structured debates between main and sub-agents to challenge assumptions and explore alternative perspectives for better decisions.
npx claudepluginhub cuipengfei/promptsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
启动辩证式辩论,让你(主代理)与子代理作为批判性思考伙伴进行对话:
目标:共同发现更好的答案,而非赢得争论。
使用 AskUserQuestion 确认:
根据辩论主题从可用 subagent_type 中选择最合适的。如不确定或选择的代理不可用,回退到 general-purpose。
记录选择:在辩论记录中注明选了哪个代理及原因。
关键:子代理无法访问你的对话历史。必须提供:
告知子代理:在 Task prompt 中说明:
Task prompt 示例:
## 🚨 铁律:单工具调用 🚨
每次 invoke 一个 function,等待 function_results 返回后再 invoke 下一个。
禁止中途停下来,自主完成所有步骤后再汇报。
---
作为辩证伙伴,请质疑这个设计决策。
需审查的文件:
- /path/to/design.md
- /path/to/implementation.ts
如需查看代码变更,请运行:
- `git diff` 查看未暂存变更
- `git diff --staged` 查看已暂存变更
背景:[决策及理由的简要说明]
请:质疑假设、提出替代方案、识别风险。
若上下文不足,请自主寻找相关文件并报告。
使用 Task + resume 进行多轮辩论:
# 首轮
Task(prompt: "...", subagent_type: "...", description: "辩论第 1 轮")
→ 返回 agentId
# 后续轮次
# 注意:resume 时仍需提供 subagent_type,但可选择不同类型
# 例如:首轮用 backend-architect,后续可换 security-auditor 获取不同视角
Task(prompt: "...", resume: agentId, subagent_type: "...", description: "辩论第 2 轮")
每轮操作:
.debates/YYYY-MM-DD-topic.md 记录本轮内容在关键时刻使用 AskUserQuestion,选项如:
辩论开始时创建 .debates/YYYY-MM-DD-topic-slug.md,并提示用户辩论将记录到该文件。
创建目录时:同时创建 .debates/.gitignore(内容 * + !.gitignore),确保辩论记录不污染 git 仓库。
# Debate: [主题]
**Date**: YYYY-MM-DD
**Status**: in-progress
**AgentIds**: [记录使用过的 agentId,用于 resume]
**Participants**: Main Agent ↔ Sub Agent ([代理类型])
**Selection Rationale**: [选择该代理的原因]
---
## Round 1
> 📝 **记录原则**:每轮只记录核心论点和关键质疑,不需逐字记录。
**Main**: [核心观点,1-2 句]
**Sub**: [关键质疑,1-2 句]
**User**: [如有]
---
每轮结束后追加内容。
辩论结束时:
completed,填写 Outcome(consensus | partial | disagreement)Soft Limit:10 轮后建议总结。
结束时呈现:
主代理不得在用户同意前根据子代理建议修改代码或文件。
这是防止主代理被子代理"污染"或"感染"的关键规则:
正确流程:
resume: agentId 继续对话,仍必须提供 subagent_type 参数.debates/*.md 文件头部记录 AgentIds,每次使用新子代理时追加。若 resume 失败,可尝试列表中的其他 agentIdExpert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.