关于 anthropic-claude-code-extend
此技能是 Claude Code CLI 扩展功能的参考指南,面向配置和扩展 CLI 的用户。它按任务分类介绍 Agent Skills、hooks、插件、MCP 配置、子 Agent、工作流和内置工具。
主要功能
- 01Agent Skills 与 slash commands
- 02子 Agent、agent teams 与工作流
- 03生命周期 hooks 配置
- 04插件及 marketplace 管理
- 05MCP 服务连接配置
- 06内置工具参考
适用场景
- 01为 Claude Code 定义技能和命令
- 02配置会话生命周期 hooks
- 03管理插件与 marketplace
- 04设置 Claude Code 的 MCP 服务连接
MCP 相关
说明如何让 Claude Code CLI 连接 MCP 服务,并介绍 .mcp.json、`claude mcp add` 和组织级访问控制。
安装
复制下面的命令,在终端中运行。
npx skills add https:/ / github.com/ fandhe-ai/ agent-reference-skills --skill anthropic-claude-code-extend安装后在 Claude Code 中输入/anthropic-claude-code-extend确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/channels/channels-reference.mdchannels.mdREADME.mdreferences/hooks/hooks-guide.mdhooks.mdREADME.mdreferences/mcp/managed-mcp.mdmcp-quickstart.mdmcp.mdREADME.mdreferences/mods/admin.mdapi.mdcreate.mdevents.mdinterface-gallery.mdinterface.mdoverview.mdREADME.mdreference.mdtest.mdtroubleshoot.mdreferences/plugins/anthropic-marketplaces.mdcode-intelligence.mddiscover-plugins.mdhost-marketplace.mdmarketplace-reference.mdmeasure-plugin.mdplugin-cli-reference.mdplugin-components.mdplugin-dependencies.md详细介绍
anthropic-claude-code-extend
Claude Code(code.claude.com)— 扩展 CLI 本体的功能参考。涵盖 Agent Skills(SKILL.md)、slash commands、output styles、subagents / agent teams / agent view / workflows / routines / scheduled tasks、hooks、plugins / plugin marketplace、MCP 配置、channels(--channels / claude/channel push events)、built-in tools(包括 advisor / ultrareview)。
CLI 本体(安装、配置、会话)请参阅 anthropic-claude-code;Agent SDK 的 Skills / MCP / subagents / hooks 请参阅 anthropic-agent-sdk;Claude API 侧的 Agent Skills / Skills API / MCP connector 请参阅 anthropic-api-tools-mcp(本技能负责 Claude Code CLI 扩展功能的配置和规范)。
注意:mods 的“hooks”(JS 模块中的事件函数)与 settings.json 中的 hooks(references/hooks/)是不同的。mods 请参阅 references/mods/,settings.json hooks 请参阅 references/hooks/。
目录结构
skills/anthropic-claude-code-extend/
SKILL.md
references/
skills-commands/
README.md
commands.md
output-styles.md
prompt-library.md
skills.md
subagents/
README.md
agent-teams.md
agent-view.md
agents.md
cross-session-messaging.md
desktop-scheduled-tasks.md
routines.md
routines-fire.md
scheduled-tasks.md
sub-agents.md
workflows.md
hooks/
README.md
hooks.md
hooks-guide.md
plugins/
README.md
anthropic-marketplaces.md
code-intelligence.md
discover-plugins.md
host-marketplace.md
marketplace-reference.md
measure-plugin.md
plugin-cli-reference.md
plugin-components.md
plugin-dependencies.md
plugin-evals.md
plugin-hints.md
plugin-loading.md
plugin-marketplaces.md
plugin-relevance.md
plugin-security.md
plugins.md
plugins-org.md
plugins-overview.md
plugins-reference.md
plugins-troubleshooting.md
publish-plugin.md
mods/
README.md
admin.md
api.md
create.md
events.md
interface.md
interface-gallery.md
overview.md
reference.md
test.md
troubleshoot.md
mcp/
README.md
managed-mcp.md
mcp.md
mcp-quickstart.md
channels/
README.md
channels.md
channels-reference.md
tools/
README.md
advisor.md
tools-reference.md
ultrareview.md
samples/
README.md
skill-definition.md
slash-command.md
hook-config.md
subagent-definition.md
plugin-manifest.md
plugin-marketplace.md
mcp-config.md
mod-first-mod.md
output-style.md
plugin-eval-case.md
探索步骤
根据任务查找对应类别,并在类别的 README.md 中确定目标页面:
- 在下方映射表中查找与任务对应的类别
- 参阅该类别的
references/{category}/README.md(samples/使用其下一级的 README.md),确定目标页面 - Read 对应的
.md文件以查看详情
任务 → 类别映射
| 任务 | 类别 | 参考 README |
|---|---|---|
| 想要定义 Agent Skills(SKILL.md)、创建 slash command、使用 output style 或 SDLC prompt library | skills-commands | references/skills-commands/README.md |
想要定义 subagent、通过 agent teams 协调多个实例、使用 agent view 管理后台 session、比较 4 种并行执行方法、通过 routines / scheduled tasks(/loop、/fire)实现自动化、从 Desktop 应用的 Routines 页面设置本地定期任务、通过 workflows 构建大型 orchestration,或在 Claude Code session 之间发送消息(ListAgents / SendMessage / /list-agents) | subagents | references/subagents/README.md |
| 想要通过会话 lifecycle 事件(SessionStart / PreToolUse / PostToolUse / PermissionRequest 等)设置或实现 hook | hooks | references/hooks/README.md |
想要安装或管理 plugin、使用 Anthropic 官方 marketplace、启用 LSP code intelligence、检查 plugin 安全性和可信度、编写 plugin eval(claude plugin eval)、发布 plugin、衡量成本和使用情况、托管或重命名 marketplace、设置 organization 的 plugin policy、了解故障排查或加载机制、查看 plugin.json / marketplace.json / claude plugin 命令参考,或检查 dependency constraint | plugins | references/plugins/README.md |
| 想要通过 JavaScript / TypeScript mod 在 Claude Code 中添加 pane / band / button / command / tool-call rule,或查看 mods API / events / 测试 / organization 管理 | mods | references/mods/README.md |
想要从 Claude Code 连接到 MCP 服务(.mcp.json / claude mcp add),或按 organization 控制 managed MCP access | mcp | references/mcp/README.md |
想要向运行中的 session 推送 webhook / 警报 / 聊天消息、通过 --channels 启用 channel plugin(telegram / discord / imessage),或实现自定义 channel MCP 服务(claude/channel capability) | channels | references/channels/README.md |
| 想要查看 built-in tool(Agent / Bash / Read / Edit / Skill 等)的完整参考,或使用 advisor tool 或 ultrareview | tools | references/tools/README.md |
| 想要了解典型用法(SKILL.md 定义、slash command、hook 配置、subagent 定义、plugin manifest / marketplace、.mcp.json、output style、mod、plugin eval case) | samples | samples/README.md |