con un clic
create-skill
// Guide for creating new Claude Code skills. Use when you need to create a new skill to package expertise or workflow into a reusable capability that Claude can automatically invoke.
// Guide for creating new Claude Code skills. Use when you need to create a new skill to package expertise or workflow into a reusable capability that Claude can automatically invoke.
Guide for deprecating R functions/arguments. Use when a user asks to deprecate a function or parameter, including adding lifecycle warnings, updating documentation, adding NEWS entries, and updating tests.
Detect and list all metric functions in the yardstick package. Use when a user asks to find, list, or identify all metrics in the package.
| name | create-skill |
| description | Guide for creating new Claude Code skills. Use when you need to create a new skill to package expertise or workflow into a reusable capability that Claude can automatically invoke. |
Use this skill when creating new Claude Code skills that package expertise, workflows, or domain knowledge into reusable capabilities.
Skills are autonomous capabilities that Claude Code can invoke automatically based on the user's request. Each skill consists of a SKILL.md file with YAML frontmatter and markdown instructions, plus optional supporting files.
.claude/skills/
└── your-skill-name/
├── SKILL.md # Required: Main skill definition
├── reference.md # Optional: Additional documentation
├── examples.md # Optional: Example usage
├── templates/ # Optional: Template files
│ └── template.txt
└── scripts/ # Optional: Helper scripts
└── helper.py
Every SKILL.md file must have:
---
name: skill-name
description: Brief description of what the skill does and when to use it (max 1024 chars)
---
Requirements:
name: lowercase letters, numbers, and hyphens only (max 64 characters)description: Clear description for Claude to understand when to invoke this skill
Structure your skill instructions clearly:
# Skill Name
Brief introduction of when to use this skill.
## Overview
High-level explanation of what this skill does.
## Workflow
### Step 1: First step
- Details
- Instructions
### Step 2: Second step
- More details
## Key concepts
Important concepts the user needs to understand.
## Examples
Concrete examples showing how to use the skill.
## Checklist
- [ ] Verification steps
- [ ] Required actions
Create a skill when:
Plan your skill by answering:
YAML frontmatter:
name (kebab-case)description that helps Claude understand when to use itContent structure:
If your skill needs:
templates/ directoryscripts/ directoryreference.mdexamples.mdTest that Claude invokes your skill by:
Iterate on the description if Claude doesn't invoke it at the right times.
✅ Good descriptions:
❌ Bad descriptions:
sql-translation, create-skill, review-security, deploy-productionMost skills should be designed for automatic invocation.
---
name: format-code
description: Format code using air format. Use after writing or modifying R code files.
---
# Format Code
Run `air format .` to format all R code in the project.
## Checklist
- [ ] Run `air format .`
- [ ] Verify no formatting errors
---
name: add-test
description: Add tests for new R functions. Use when creating new functions in R/ directory.
---
# Add Test
Add tests for new R functions following dbplyr conventions.
## Workflow
### 1. Identify test file
- Tests for `R/{name}.R` go in `tests/testthat/test-{name}.R`
### 2. Write tests
- Place new tests next to similar existing tests
- Keep tests minimal with few comments
- Use `expect_snapshot()` for SQL translation tests
### 3. Run tests
```bash
Rscript -e "devtools::test(filter = '{name}', reporter = 'llm')"
For skills that require research before implementation:
See sql-translation skill for an example.
For complex workflows:
For packaging specialized knowledge:
Skill not being invoked:
Skill invoked at wrong times:
Instructions unclear:
Before completing a new skill:
.claude/skills/{skill-name}/ directorySKILL.md with YAML frontmattername field uses kebab-case (lowercase, hyphens only)description clearly explains what and when (max 1024 chars)