The First Skill
Let's forget the complicated creation process for now and start first with using a ready-made Skill to begin, and feel the convenience it brings.
The demos in this article are based on Claude Code; if you haven't installed it yet, you can refer to our Claude Code Tutorial。
Create the Skill directory
Skills are stored in ~/.claude/skills/ (personal global) or in .claude/skills/ under the project directory (project-specific).
This section tests under the project directory; first create a directory claude-test:
mkdir claude-test
Enter that directory and create the skills directory and files:
mkdir -p .claude/skills/python-naming-standard
Write the configuration file SKILL.md
Create SKILL.md in the directory; this is the brain of the Skill, telling Claude when to use it.
---
name: Python 内部命名规范技能
description: 当用户要求重构、审查或编写 Python 代码时,请参考此规范。
---
## 指令
1. 所有的内部辅助函数必须以 `_internal_` 前缀命名。
2. 如果发现不符合此规则的代码,请自动提出修改建议。
3. 在执行 `claude commit` 前,必须检查此规范。
## Reference Example
- 正确:`def _internal_calculate_risk():`
- 错误:`def _calculate_risk():`
Field requirements:
- name: must use only lowercase letters, digits and hyphens (up to 64 characters)
- description: a brief description of the Skill and when to use it (up to 1024 characters)
After creation, the file structure is as follows:

Your project should now look like this:
my-project/
├─ src/
│ └─ test.py # 项目源码
├─ .claude/
│ ├─ skills/
│ │ └─ hello-world/
│ │ ├─ skill.md # Skill 定义(YAML + Instructions,机器可执行)
│ │ └─ README.md # Skill 说明(人类阅读,可选)
│ └─ config.yml # Claude 项目级配置(可选)
├─ .gitignore
└─ README.md # 项目整体说明
Next, run the following command in the terminal to start Claude Code:
claude
Enter the task:
帮我写一个计算用户折扣的函数
Claude will then scan the installed Skills, find that your request involves "Python code writing", and match python-naming-standard.

It will generate the following code according to the requirements in SKILL.md:
def _internal_get_discount(user_score):
# Calculate logic...
return discount
Add resource files (optional)
We can also add the following directories under .claude/skills/:
Add in the same folder:
examples/: stores example files.references/: stores reference documents.scripts/: stores executable scripts (e.g., Python processing PDFs).
Then reference them in SKILL.md:
查看示例 commit:./examples/good-commit.txt
运行脚本:使用工具执行 ./scripts/process.py
Official marketplace
Besides writing your own, you can also leverage the Agent Skills open standard released in late 2025:
- Official marketplace: visit https://github.com/anthropics/skills a repository to download preset skills (such as React optimizers and SQL tuning tools).
- Skill Creator: you can tell Claude, "Summarize the Docker configuration logic I just taught you into a Skill," and it will automatically generate the files in the appropriate directory.
We can register this repository as a Claude Code plugin marketplace simply by running the following command in Claude Code:
/plugin marketplace add anthropics/skills

Then you can use /plugin to view it:

Steps to install a specific skill set:
- Browse and install plugins
-
Select the anthropic-agent-skills plugin source
-
Select document-skills or example-skills

-
Click Install now

We can also install both types of plugins directly via commands:
/plugin install document-skills@anthropic-agent-skills
/plugin install example-skills@anthropic-agent-skills
**Note:** skills installed via plugins are located under ~/claude/plugins/marketplaces/.
After plugin installation, you need to restart Claude Code.
To use a skill, simply mention its name in your instruction. For example, after installing the document-skills plugin, you can give Claude Code an instruction like:
使用 PDF 技能提取 path/to/some-file.pdf 文件中的表单字段
Or create a PPT:
创建一个 Agent Skill 的演示文稿
You can see that it called /document-skills:pptx:

and started generating:

Then it will tell you the location of the generated file:
