YouTip LogoYouTip

Skills First

Title: First Skill | Online Tutorial\n\nLet's temporarily forget about the complex creation process and start by **using an existing Skill** to experience the convenience it brings.\n\nThis demonstration is based on Claude Code. If you haven't installed it yet, you can refer to our (https://example.com/claude-code/claude-code-tutorial.html).\n\n### Create Skill Directory\n\nSkills are stored in ~/.claude/skills/ (globally for the user) or .claude/skills/ under the project directory (project-specific).\n\nIn this chapter, we test in the project directory. First, create a directory claude-test:\n\nmkdir claude-test\nEnter this directory, create the skills directory and files:\n\nmkdir -p .claude/skills/python-naming-standard\n### Write Configuration File SKILL.md\n\nCreate SKILL.md in the directory. This is the brain of the Skill, telling Claude when to use it.\n\n--- name: Python Description of the internal naming convention skill: When users request refactoring, reviewing, or writing Python code, refer to this specification. ---## Instructions1. All internal helper functions must be named with the `_internal_` prefix.2. If you find code that doesn't comply with this rule, please automatically suggest modifications.3. Before executing `claude commit`, you must check this specification.## Reference Examples- Correct: `def _internal_calculate_risk():`- Incorrect: `def _calculate_risk():`\nField requirements:\n\n* **name**: Must use only lowercase letters, numbers, and hyphens (maximum 64 characters)\n* **description**: A brief description of the Skill and when to use it (maximum 1024 characters)\n\nAfter creation, the file structure is as follows:\n\n!(https://example.com/wp-content/uploads/2026/01/7d0592b4-61f8-4170-a639-6e83f6740cb6.png)\n\nYour project should now look like this:\n\nmy-project/β”œβ”€ src/β”‚ └─ test.py # Project source codeβ”œβ”€ .claude/β”‚ β”œβ”€ skills/β”‚ β”‚ └─ hello-world/β”‚ β”‚ β”œβ”€ skill.md # Skill definition (YAML + Instructions, machine executable)β”‚ β”‚ └─ README.md # Skill description (human-readable, optional)β”‚ └─ config.yml # Claude project-level configuration (optional)β”œβ”€ .gitignore └─ README.md # Project overview\nNext, execute the following command in the terminal to start Claude Code:\n\nclaude\nEnter the task:\n\nHelp me write a function to calculate user discounts\nClaude will scan the installed Skills and find that your request involves "Python code writing", which matches python-naming-standard.\n\n!(https://example.com/wp-content/uploads/2026/01/1527ed0b-d1a9-420a-8f25-c71231e23c05.png)\n\nIt will generate code according to the requirements in SKILL.md:\n\ndef _internal_get_discount(user_score): # Calculation logic... return discount\n### Add Resource Files (Optional)\n\nAdditionally, we can add the following directories under .claude/skills/:\n\nIn the same folder add:\n\n* `examples/`: Store example files.\n* `references/`: Store reference documents.\n* `scripts/`: Store executable scripts (e.g., Python scripts for PDF processing).\n\nThen reference in SKILL.md:\n\nView example commit: ./examples/good-commit.txt Run script: Use tool to execute ./scripts/process.py\n\n* * *\n\n## Official Marketplace\n\nIn addition to writing your own, you can also use the Agent Skills open standard released in late 2025:\n\n* Official Marketplace: Visit the [https://github.com/anthropics/skills](https://github.com/anthropics/skills) repository to download preset skills (e.g., React optimizer, SQL tuning tool).\n* Skill Creator: You can say to Claude: "Help me summarize the Docker configuration logic I just taught you into a Skill", and it will automatically generate the files in the corresponding directory for you.\n\nWe can register this repository as a plugin marketplace for Claude Code. Simply execute the following command in Claude Code:\n\n/plugin marketplace add anthropics/skills\n!(https://example.com/wp-content/uploads/2026/01/780e9cce-ff89-4960-ab36-be41428a3899.png)\n\nThen you can view using /plugin:\n\n!(https://example.com/wp-content/uploads/2026/01/00814d49-4942-45b4-87e7-c14d682a7af5.png)\n\n**Steps to install a specific skill set:**\n\n* Browse and install plugins\n* Select anthropic-agent-skills as the plugin source\n\n* Select document-skills or example-skills\n\n!(https://example.com/wp-content/uploads/2026/01/8c5a3a09-2943-49e0-b073-aa5385826510.png)\n\n* Click Install now\n\n!(https://example.com/wp-content/uploads/2026/01/45288835-7200-48a8-90f0-b9ce408a059d.png)\n\nWe can also directly install these two types of plugins via command:\n\n/plugin install document-skills@anthropic-agent-skills /plugin install example-skills@anthropic-agent-skills\n**Note:** The skills directory installed via plugins is under ~/claude/plugins/marketplaces/.\n\nAfter the plugin is installed, you need to restart Claude Code.\n\nWhen using, just mention the skill name in the command. For example, after installing the document-skills plugin, you can give the following command to Claude Code:\n\nUse the PDF skill to extract path/to/some-file.pdf Form fields in the file\nOr create a PPT:\n\nCreate a presentation for an Agent Skill\nYou can see that **/document-skills:pptx** was invoked:\n\n!(https://example.com/wp-content/uploads/2026/01/74f0eea5-9416-4a27-a827-2378896805c5.png)\n\nStarting generation:\n\n!(https://example.com/wp-content/uploads/2026/01/f5a9c860-9291-4d
← Use Existing SkillsSkills Intro β†’