Getting Started
Tidymodels skills are specialized Claude Code skills that guide you through machine learning and package development tasks using the Tidymodels ecosystem. Each skill contains step-by-step guidance for your specific task, best practices from the Tidymodels community, complete working examples, and reference documentation for deeper learning.
Installation
Install Claude Code
Claude Code is Anthropic’s official CLI for Claude. It brings Claude’s capabilities directly to your terminal, allowing you to work with AI assistance in your development environment. Installation is quick and works across macOS, Linux, and Windows.
curl -fsSL https://claude.ai/install.sh | shAfter installation, verify it’s working:
claude --versionirm https://claude.ai/install.ps1 | iexAfter installation, verify it’s working:
claude --versionFor detailed installation instructions, troubleshooting, and alternative methods, visit the official Claude Code documentation.
Authentication
On first use, Claude Code will prompt you to authenticate with your Anthropic account. For more information about authentication, see the Claude Code authentication guide.
Installing Skills
To use Tidymodels skills in Claude Code, first add the Tidymodels skills marketplace:
/plugin marketplace add tidymodels/skills
Then install the skill collection you need:
Install user skills for building predictive models:
/plugin install tidymodels-users@tidymodels-skills
Available skills:
- Tabular Data Machine Learning: Build predictive models with proper validation practices
- Data splitting and spending
- Cross-validation and resampling
- Feature engineering
- Model tuning and selection
- Performance evaluation
Install developer skills for creating Tidymodels extensions:
/plugin install tidymodels-developers@tidymodels-skills
Available skills:
- Add Yardstick Metric: Create custom performance metrics
- Add Recipe Step: Create custom preprocessing steps
- Add Dials Parameter: Create custom tuning parameters
Once installed, skills are available in your conversation and Claude Code is ready to assist with your task.
Using Tidymodels skills
Let’s walk through using the Tabular Data ML skill for a typical modeling workflow:
Start Claude Code in your project directory:
cd my-analysis-project claudeInstall the user skills (one-time setup):
/plugin marketplace add tidymodels/skills /plugin install tidymodels-users@tidymodels-skillsDescribe your task:
I have a CSV file with customer data and want to predict churn. The dataset has 15 features including demographics, usage patterns, and service history.Claude Code will guide you through:
- Creating an appropriate train/test split
- Setting up cross-validation for model tuning
- Building and comparing multiple models
- Evaluating performance with proper metrics
- Only touching the test set when you explicitly approve
Iterate and refine: Ask questions, request visualizations, tune hyperparameters, and explore feature engineering—all following Tidymodels best practices.
Learn More
Key Principles
When working with Tidymodels skills, Claude Code follows these principles:
- Test set protection: Development happens on training data. Test sets are only evaluated with explicit user permission.
- Proper validation: Uses cross-validation and resampling for honest performance estimates.
- Tidymodels conventions: Follows ecosystem patterns for consistency and reproducibility.
- Best practices: Implements approaches recommended by the Tidymodels team.
Tips for Success
- Be specific about your data: Describe your features, outcome variable, and any domain constraints
- Ask questions: If you’re unsure about an approach, ask Claude Code to explain the reasoning
- Review outputs: Always examine generated code and results before making decisions
- Iterate: Start with a simple baseline, then refine based on results
- Use visualizations: Request plots to understand model performance and data patterns
Getting Help
- Skill documentation: Each skill has detailed reference materials for deeper learning
- Skills issues: Report issues with Tidymodels skills at github.com/tidymodels/skills/issues
- Claude Code issues: Report problems with Claude Code at github.com/anthropics/claude-code/issues
- Tidymodels resources: tidymodels.org for package documentation and tutorials