xiaohongshu
xiaohongshu
Creates new Agent Skills for Claude Code following best practices and documentation. Use when the user wants to create a new skill, extend Claude's capabilities, or package domain expertise into a reusable skill.
Full skill instructions
This skill helps you create new Agent Skills for Claude Code. Before starting, read the comprehensive documentation files in the docs/ directory for complete context.
Required Reading - Read these files in order before creating a skill:
What is a Skill?
SKILL.md file with YAML frontmatterProgressive Disclosure (3 Levels):
name and description in YAML frontmatterKey Principle: Only relevant content enters the context window at any time.
Multiple File Types: Skills can use multiple file types (.md, .yaml, .json, .sh, .py, .ts, .js, .sql, etc.) - see docs/multi_file_skill_patterns.md for complete guidance.
Ask the user these questions:
Document the answers for reference.
Create skills in the project's .claude/skills/ directory for team sharing:
mkdir -p .claude/skills/<skill-name>
Naming conventions:
pdf-processing, data-analysis)Note: Project skills (.claude/skills/) are automatically shared with your team via git. For personal skills only you use, create in ~/.claude/skills/ instead.
Every skill must have:
---
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 for Claude]
## Examples
[Concrete examples of using this Skill]
Frontmatter Requirements:
name: Required, max 64 charactersdescription: Required, max 1024 characters
Optional Frontmatter (Claude Code only):
allowed-tools: Restrict which tools Claude can use (e.g., Read, Grep, Glob)Structure the instructions as:
Best Practices:
[reference.md](reference.md)Example workflow format:
### Workflow
1. **First step description**:
```bash
command to run
Second step description:
Third step...
#### Step 5: Write the Examples Section
Provide 2-4 concrete examples showing:
- Different use cases
- Various input formats
- Step-by-step execution
- Expected outcomes
**Example format:**
```markdown
### Example 1: Descriptive Title
User request:
User's exact request text
You would:
1. First action
2. Second action with command:
```bash
actual command
#### Step 6: Add Supporting Files (Required for Complex Skills)
**CRITICAL**: Skills can and should use multiple file types. This is a key strength of the skill system.
**Read the complete guide**: [docs/multi_file_skill_patterns.md](docs/multi_file_skill_patterns.md)
**Common supporting file types:**
- **Markdown** (`.md`, `.mdx`) - Documentation, examples, troubleshooting
- **YAML/JSON** (`.yaml`, `.yml`, `.json`) - Configuration, schemas, data
- **Scripts** (`.sh`, `.py`, `.ts`, `.js`) - Executable utilities
- **Templates** (`.txt`, `.md`, `.ts`, `.yaml`) - Reusable templates
- **SQL** (`.sql`) - Database queries and migrations
- **Data** (`.csv`, `.json`) - Reference data and examples
**Recommended structure:**
skill-name/ ├── SKILL.md # Main instructions (REQUIRED) ├── REFERENCE.md # Detailed reference ├── EXAMPLES.md # Usage examples ├── TROUBLESHOOTING.md # Common issues ├── config/ │ └── schema.yaml # Configuration schemas ├── scripts/ │ ├── validate.sh # Shell scripts │ └── process.py # Python/TS utilities └── templates/ └── template.md # Reusable templates
**Key principles:**
1. **Use multiple file types** - Match file type to purpose
2. **Progressive disclosure** - Load only what's needed
3. **Reference files** - Link instead of duplicating: `[REFERENCE.md](REFERENCE.md)`
4. **Make scripts executable**: `chmod +x scripts/*.sh scripts/*.py`
5. **Document file purposes** - Explain relationships in SKILL.md
**Script guidelines:**
- Make executable: `chmod +x scripts/*.py scripts/*.sh`
- Add PEP 723 inline dependencies for Python scripts
- Include usage instructions in SKILL.md
- Return clear output for Claude to parse
- Use full paths from skill root: `bash scripts/validate.sh`
#### Step 7: Test the Skill
1. Verify file structure:
```bash
ls -la .claude/skills/<skill-name>/
Check YAML frontmatter is valid:
head -10 .claude/skills/<skill-name>/SKILL.md
Test with relevant queries:
Iterate based on testing:
Since project skills are automatically shared with your team, commit them to git:
git add .claude/skills/<skill-name>
git commit -m "Add <skill-name> skill"
git push
Note: Team members will get the skill automatically when they pull the latest changes.
Description writing:
Instruction organization:
Skill scope:
File references:
[file.md](file.md) not absolute pathsQuick Checklist:
Pattern 1: Transcription skill
Pattern 2: Morning debrief skill
Pattern 3: Meta-skill (this one)
User request:
Create a skill that reviews Python code for best practices
You would:
mkdir -p .claude/skills/python-code-review
---
name: Python Code Review
description: Reviews Python code for PEP 8 compliance, security issues, and performance. Use when reviewing Python code, checking code quality, or analyzing Python files.
allowed-tools: Read, Grep, Glob
---
User request:
Build a skill for analyzing CSV data with statistics and visualizations
You would:
mkdir -p .claude/skills/csv-analysis/scripts
mkdir -p .claude/skills/csv-analysis/templates
scripts/analyze.py - Statistical analysis scriptscripts/visualize.py - Chart generation scripttemplates/report_template.md - Output template# /// script
# requires-python = ">=3.10"
# dependencies = ["pandas", "matplotlib", "seaborn"]
# ///
User request:
Create a skill for writing technical documentation with our company's style guide
You would:
mkdir -p .claude/skills/tech-docs/{templates,examples,guidelines,scripts,config}
SKILL.md - Overview and workflow (markdown)REFERENCE.md - Complete API reference (markdown)EXAMPLES.md - Usage examples (markdown)guidelines/style_guide.md - Company style rules (markdown)guidelines/api_docs.md - API documentation specifics (markdown)guidelines/user_guides.md - User guide standards (markdown)config/schema.yaml - Documentation schema (YAML)templates/api_template.md - API doc template (markdown)templates/guide_template.md - User guide template (markdown)scripts/validate.sh - Validation script (shell)scripts/lint-docs.py - Documentation linter (Python)examples/ - Sample documentation (markdown)bash scripts/validate.sh doc.mdSee [config/schema.yaml](config/schema.yaml)chmod +x scripts/*.sh scripts/*.py
User request:
Add spell correction to our transcribe skill
You would:
cat .claude/skills/transcribe/SKILL.md
touch .claude/skills/transcribe/spell_corrections.md
# Spell Corrections
- "cloud code" → "claude code"
- "API" → "API" (ensure caps)
...
Creating skills is about packaging expertise into discoverable, composable capabilities. Follow these principles:
Skills transform general-purpose Claude into a specialist for your domain. Start small, test early, and expand as needed.
xiaohongshu
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