example-command

GitHub

展示用户调用的斜杠命令技能的标准布局与前置元数据选项,用于演示如何定义参数、指令及工具权限。

plugins/example-plugin/skills/example-command/SKILL.md anthropics/claude-plugins-official

触发场景

用户发起示例命令调用

安装

npx skills add anthropics/claude-plugins-official --skill example-command -g -y
更多选项

非标准路径

npx skills add https://github.com/anthropics/claude-plugins-official/tree/main/plugins/example-plugin/skills/example-command -g -y

不安装直接使用

npx skills use anthropics/claude-plugins-official@example-command

指定 Agent (Claude Code)

npx skills add anthropics/claude-plugins-official --skill example-command -a claude-code -g -y

安装 repo 全部 skill

npx skills add anthropics/claude-plugins-official --all -g -y

预览 repo 内 skill

npx skills add anthropics/claude-plugins-official --list

SKILL.md

Frontmatter
{
    "name": "example-command",
    "description": "An example user-invoked skill that demonstrates frontmatter options and the skills\/<name>\/SKILL.md layout",
    "allowed-tools": [
        "Read",
        "Glob",
        "Grep",
        "Bash"
    ],
    "argument-hint": "<required-arg> [optional-arg]"
}

Example Command (Skill Format)

This demonstrates the skills/<name>/SKILL.md layout for user-invoked slash commands. It is functionally identical to the legacy commands/example-command.md format — both are loaded the same way; only the file layout differs.

Arguments

The user invoked this with: $ARGUMENTS

Instructions

When this skill is invoked:

  1. Parse the arguments provided by the user
  2. Perform the requested action using allowed tools
  3. Report results back to the user

Frontmatter Options Reference

Skills in this layout support these frontmatter fields:

  • name: Skill identifier (matches directory name)
  • description: Short description shown in /help
  • argument-hint: Hints for command arguments shown to user
  • allowed-tools: Pre-approved tools for this skill (reduces permission prompts)
  • model: Override the model (e.g., "haiku", "sonnet", "opus")

Example Usage

/example-command my-argument
/example-command arg1 arg2

版本历史

  • f6a8253 当前 2026-07-25 09:48

同 Skill 集合

external_plugins/discord/skills/access/SKILL.md
external_plugins/discord/skills/configure/SKILL.md
external_plugins/imessage/skills/access/SKILL.md
external_plugins/imessage/skills/configure/SKILL.md
external_plugins/telegram/skills/access/SKILL.md
external_plugins/telegram/skills/configure/SKILL.md
plugins/claude-code-setup/skills/claude-automation-recommender/SKILL.md
plugins/claude-md-management/skills/claude-md-improver/SKILL.md
plugins/claude-security/skills/claude-security/SKILL.md
plugins/cwc-makers/skills/cardputer-buddy/SKILL.md
plugins/cwc-makers/skills/m5-onboard/SKILL.md
plugins/example-plugin/skills/example-skill/SKILL.md
plugins/frontend-design/skills/frontend-design/SKILL.md
plugins/hookify/skills/writing-rules/SKILL.md
plugins/mcp-server-dev/skills/build-mcp-app/SKILL.md
plugins/mcp-server-dev/skills/build-mcp-server/SKILL.md
plugins/mcp-server-dev/skills/build-mcpb/SKILL.md
plugins/playground/skills/playground/SKILL.md
plugins/plugin-dev/skills/agent-development/SKILL.md
plugins/plugin-dev/skills/command-development/SKILL.md
plugins/plugin-dev/skills/mcp-integration/SKILL.md
plugins/plugin-dev/skills/plugin-settings/SKILL.md
plugins/plugin-dev/skills/plugin-structure/SKILL.md
plugins/plugin-dev/skills/skill-development/SKILL.md
plugins/session-report/skills/session-report/SKILL.md
plugins/skill-creator/skills/skill-creator/SKILL.md
plugins/math-olympiad/skills/math-olympiad/SKILL.md
plugins/plugin-dev/skills/hook-development/SKILL.md
plugins/project-artifact/skills/project-artifact/SKILL.md
plugins/receipts/skills/receipts/SKILL.md

元信息

文件数
0
版本
c447c32
Hash
d5619816
收录时间
2026-07-25 09:48

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-22 17:45
浙ICP备14020137号-1