
3 Claude 代码技能与命令:多模型理事会、子代理委托与网络研究
概览
克劳德代码有三个强化道具,使其极大实用。 - (.claude/commands/) — 手动调用的斜杠命令(例如 /consult-the-council)。它们是提示文件,告诉 Claude 该做什么。- (.claude/skills/) — Claude 在必要时自动激活的行为。它们包含触发条件、允许的工具和参考文档。你也可以手动调用。 两者都存放在你项目的 .claude/ 目录中。 让Claude同时咨询GPT、Gemini和Grok,综合他们的答案。非常适合做艰难决策、架构辩论或摆脱困境。 更新脚本路径 consult-the-council.md(第31行)以匹配你放置consult_council.py的位置。 脚本会从项目根目录中的 .env 文件或环境变量加载密钥。 编辑consult_council.py以更改模型、推理层级,或添加/移除提供者。 强制Claude将你的请求拆分成子任务,并通过并行子代理执行。
概述(AI 翻译)
克劳德代码有三个强化道具,使其极大实用。
| 技能 | 它的作用 | 类型 | 先决条件 |
|---|---|---|---|
/consult-the-council |
问GPT、Gemini和Grok同一个问题——一次获得三种视角 | 命令 | OpenAI、Google、xAI API 密钥 |
/spin-up |
强制克劳德将工作委派给并行的子代理,而不是在一个线程中完成所有工作 | 命令 | 无 |
/web-research |
升级的网络研究,支持Tavily搜索+Firecrawl抓取 | 技能 | Tavily MCP服务器,Firecrawl CLI |
快速概念:技能与指令
Claude Code 有两种扩展类型:
- 命令 (
.claude/commands/)——你手动调用的斜杠命令(例如,/consult-the-council)。它们是提示文件,告诉克劳德该做什么。 - 技能(
.claude/skills/)——Claude在相关时自动激活的行为。包括触发条件、允许的工具和参考文档。你也可以手动调用。
它们都存放在你项目的.claude/目录中。
安装
1./consult-the-council — 多模式理事会
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
CC4PMs Mastery Bonus: Claude Code Skills & Commands
Three power-ups for Claude Code that make it dramatically more useful.
| Skill | What It Does | Type | Prerequisites |
|---|---|---|---|
/consult-the-council |
Ask GPT, Gemini, and Grok the same question — get 3 perspectives at once | Command | API keys for OpenAI, Google, xAI |
/spin-up |
Force Claude to delegate work to parallel subagents instead of doing everything in one thread | Command | None |
/web-research |
Upgraded web research with Tavily search + Firecrawl scraping | Skill | Tavily MCP server, Firecrawl CLI |
Quick Concepts: Skills vs Commands
Claude Code has two extension types:
- Commands (
.claude/commands/) — Slash commands you invoke manually (e.g.,/consult-the-council). They’re prompt files that tell Claude what to do. - Skills (
.claude/skills/) — Automatic behaviors Claude activates when relevant. They include trigger conditions, allowed tools, and reference docs. You can also invoke them manually.
Both live in your project’s .claude/ directory.
Installation
1. /consult-the-council — Multi-Model Council
Ask Claude to consult GPT, Gemini, and Grok simultaneously and synthesize their answers. Great for hard decisions, architecture debates, or getting unstuck.
Install:
# Copy the command file
cp consult-the-council/consult-the-council.md YOUR_PROJECT/.claude/commands/
# Copy the Python script (put it wherever makes sense for your project)
cp consult-the-council/consult_council.py YOUR_PROJECT/scripts/
Important: Update the script path in
consult-the-council.md(line 31) to match where you putconsult_council.py.
Prerequisites:
# Install Python dependencies
pip3 install openai google-genai
# Set API keys (add to your .env or export them)
OPENAI_API_KEY=sk-... # https://platform.openai.com/api-keys
GEMINI_API_KEY=... # https://aistudio.google.com/apikey
GROK_API_KEY=xai-... # https://console.x.ai
The script loads keys from a .env file in your project root, or from environment variables.
Usage:
/consult-the-council Should I use a monorepo or polyrepo for my microservices?
Customization: Edit consult_council.py to change models, reasoning levels, or add/remove providers.
2. /spin-up — Subagent Delegation
Forces Claude to break your request into subtasks and run them through parallel subagents. The main conversation stays clean — only the plan, dispatches, and final summary appear. All the heavy lifting happens in background agents.
This is especially useful for:
- Tasks that touch many files
- Research-heavy requests
- Anything you’d rather not watch Claude do step-by-step
Install:
cp spin-up/spin-up.md YOUR_PROJECT/.claude/commands/
Prerequisites: None. This is just a prompt.
Usage:
/spin-up
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add carlvellotti/cc4pms-mastery-bonus