xiaohongshu
xiaohongshu
agent-skills
Create, use, and manage Agent Skills for Claude. Use when working with Skills, creating custom capabilities, or understanding how Skills extend Claude's functionality. Covers Skill architecture, file structure, and best practices.
Full skill instructions
Agent Skills are modular capabilities that extend Claude's functionality. Each Skill packages instructions, metadata, and optional resources that Claude uses automatically when relevant.
# A basic skill structure
---
name: my-skill
description: Brief description of what this Skill does
---
# My Skill
## Instructions
Clear, step-by-step guidance for Claude to follow
## Examples
Concrete examples of using this Skill
Skills provide domain-specific expertise that transforms general-purpose agents into specialists. Unlike prompts, Skills load on-demand and eliminate repetitive guidance.
Key benefits:
Skills leverage Claude's VM environment with filesystem access. They exist as directories containing instructions, executable code, and reference materials.
| Level | When Loaded | Token Cost | Content |
|---|---|---|---|
| Level 1: Metadata | Always (startup) | ~100 tokens | name and description from YAML frontmatter |
| Level 2: Instructions | When triggered | Under 5k tokens | SKILL.md body with guidance |
| Level 3+: Resources | As needed | Unlimited | Bundled files executed via bash |
Progressive disclosure ensures only relevant content occupies the context window.
my-skill/
├── SKILL.md # Main instructions
├── GUIDE.md # Additional guidance
├── REFERENCE.md # API reference
└── scripts/
└── helper.py # Utility scripts
Instructions: Additional markdown files with specialized guidance Code: Executable scripts that Claude runs via bash Resources: Reference materials like schemas, templates, examples
Every Skill requires a SKILL.md file with YAML frontmatter:
---
name: your-skill-name
description: Brief description of what this Skill does and when to use it
---
# Your Skill Name
## Instructions
[Clear, step-by-step guidance]
## Examples
[Concrete examples]
name:
description:
.claude/skills/SKILL.md file with YAML frontmatter.claude/skills/
├── my-skill/
│ ├── SKILL.md
│ └── scripts/
│ └── helper.sh
└── another-skill/
└── SKILL.md
SKILL.md/v1/skills endpoints)skill_id in the container parametercode-execution-2025-08-25skills-2025-10-02files-api-2025-04-14SKILL.mdBe specific about when to use:
description: Extract text from PDF files using pdfplumber. Use when user mentions PDFs, text extraction, or document processing.
Include concrete examples:
## Examples
To extract text from a PDF:
```python
import pdfplumber
with pdfplumber.open("document.pdf") as pdf:
text = pdf.pages[0].extract_text()
Organize progressively:
Use scripts for reliability:
# Scripts execute without loading code into context
$ bash validate.sh
Validation passed
Include reference materials:
Use Skills from trusted sources only:
| Surface | Custom Skills | Pre-built Skills |
|---|---|---|
| Claude API | Yes | Yes (pptx, xlsx, docx, pdf) |
| Claude Code | Yes (filesystem-based) | No |
| Claude.ai | Yes (uploaded) | Yes (pptx, xlsx, docx, pdf) |
Custom Skills do not sync across surfaces - manage separately for each.
Claude API:
Claude Code:
Claude.ai:
Available immediately:
| Surface | Scope |
|---|---|
| Claude.ai | Individual user only |
| Claude API | Workspace-wide |
| Claude Code | Personal (~/.claude/skills/) or project-based (.claude/skills/) |
Combine Skills to build complex workflows:
Design Skills to adapt to runtime:
## Runtime Notes
- Claude API: Use pre-installed packages only
- Claude Code: Can install packages locally
- Adjust behavior based on available tools
Structure Skills so Claude loads only what's needed:
# Main Skill
## Quick Start
Essential information for common tasks
## Advanced Usage
Detailed guidance when needed
See [REFERENCE.md](REFERENCE.md) for complete API documentation.
SKILL.md exists in skill directoryname uses only lowercase letters, numbers, hyphensdescription is non-empty.claude/skills/ directory permissionsxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience