add-recipe-steplisted
Install: claude install-skill tidymodels/skills
# Add Recipe Step
Guide for developing new preprocessing steps that extend the recipes package.
This skill provides best practices, complete code templates, and testing
patterns for creating custom recipe steps.
--------------------------------------------------------------------------------
## Two Development Contexts
This skill supports **two distinct development contexts**:
### 🆕 Extension Development (Default)
**Creating a new R package** that extends recipes with custom steps.
- ✅ Use this for: New packages, standalone steps, CRAN submissions
- ⚠️ **Constraint**: Must use `recipes::` prefix for all functions
### 🔧 Source Development (Advanced)
**Contributing directly to recipes** via pull requests.
- ✅ Use this for: Contributing to tidymodels/recipes repository
- ✨ **Benefit**: Can use internal functions directly (no prefix needed)
--------------------------------------------------------------------------------
## Getting Started
**INSTRUCTIONS FOR CLAUDE:** Run the verification script first to determine the
development context:
```bash
Rscript -e 'source(Sys.glob(path.expand("~/.claude/plugins/cache/tidymodels-skills/tidymodels-dev/*/tidymodels/shared-references/scripts/verify-setup.R"))[1])'
```
**Then follow the appropriate path based on the output:**
- **Output: "All checks for source development complete."** → Go to [Source
Development Guide](references/source-guide.md)
- **Output: "All checks for extension development complete." (no warnings)