跳到正文
cccskills
免费在 GitHub 公开

my-first-skill

Learn how to organize an AI agent skill using a sample SKILL.md file. It covers basic metadata, procedural instructions, supporting folders, and relative paths, and serves as an example for testing the OpenSkills loader.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Example skill demonstrating Anthropic SKILL.md format. Load when learning to create skills or testing the OpenSkills loader.

查看安装方法

适用场景

  • Learning the basic structure of an agent skill
  • Drafting a SKILL.md file
  • Organizing references, scripts, and templates
  • Testing the OpenSkills loader

包含的文件(2)

  • SKILL.md1.5 KB
  • references/skill-format.md1.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

My First Skill

This is an example skill demonstrating the Anthropic SKILL.md format.

Purpose

This skill shows how to structure procedural guidance for AI coding agents using progressive disclosure.

When to Use

Load this skill when:

  • Learning how skills work
  • Testing the OpenSkills loader
  • Understanding the SKILL.md format

Instructions

To create a skill:

  1. Create a directory: mkdir my-skill/
  2. Add SKILL.md with YAML frontmatter:
    ---
    name: my-skill
    description: When to use this skill
    ---
    
  3. Write instructions in imperative form (not second person)
  4. Reference bundled resources as needed

Bundled Resources

For detailed information about the SKILL.md specification:

See references/skill-format.md

Best Practices

  • Write in imperative/infinitive form: "To do X, execute Y"
  • NOT second person: avoid "You should..."
  • Keep SKILL.md under 5,000 words
  • Move detailed content to references/
  • Use scripts/ for executable code
  • Use assets/ for templates and output files

Resource Resolution

When this skill is loaded, the base directory is provided:

Base directory: /path/to/my-first-skill

Relative paths resolve from base directory:

  • references/skill-format.md → /path/to/my-first-skill/references/skill-format.md
  • scripts/helper.sh → /path/to/my-first-skill/scripts/helper.sh

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

报告此技能的问题