add-parsnip-engine — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited add-parsnip-engine (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Guide for adding new engines to existing parsnip models. This skill covers registering engines (like adding "spark" to linear_reg()) without creating entirely new model types.
Use this skill when: Adding a new engine to an existing parsnip model type.
For creating new models: See add-parsnip-model skill instead.
--------------------------------------------------------------------------------
This skill supports two distinct development contexts:
Creating a new R package that adds engines to existing parsnip models.
parsnip in DESCRIPTION's Package: field:::)Contributing directly to parsnip via pull requests.
Package: parsnip in DESCRIPTIONThis main guide shows extension development patterns. If you're contributing to parsnip itself, see the Source Development Guide for package-specific details.
--------------------------------------------------------------------------------
INSTRUCTIONS FOR CLAUDE: Run the verification script first to determine the development context:
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:
Development Guide](references/source-guide.md)
Go to Extension Development Guide
Prerequisites](references/package-extension-prerequisites.md) to resolve warnings first
--------------------------------------------------------------------------------
Adding an engine to an existing parsnip model provides:
What this skill covers:
--------------------------------------------------------------------------------
INSTRUCTIONS FOR CLAUDE: Check if repos/parsnip/ exists in the current working directory. Use this to guide development:
If `repos/parsnip/` exists:
repos/parsnip/R/linear_reg_data.R) to study engineregistration patterns
repos/parsnip/tests/testthat/test-linear_reg.R) fortesting patterns
If `repos/parsnip/` does NOT exist:
Guide](references/package-repository-access.md)
https://github.com/tidymodels/parsnip/blob/main/R/[file-name].RWhen to use repository references:
engines?")
See Repository Access Guide for setup instructions.
--------------------------------------------------------------------------------
Development Guides:
packages that add engines
parsnip itself
Core Implementation References:
registration sequence, examples, patterns
details for fit/predict
conversion
Model-Specific Guides:
parsnip models work
Shared References (Extension Development):
Package setup
iteration cycle
Complete guide:
Practices](references/package-extension-requirements.md#best-practices)
Patterns](references/package-extension-requirements.md#testing-requirements)
Source Development Specific:
--------------------------------------------------------------------------------
⚠️ IMPORTANT: Before implementing engines, complete the extension prerequisites sequence:
👉 [Extension Prerequisites Guide](references/package-extension-prerequisites.md)
This guide includes critical steps like use_claude_code() (if available) that must run BEFORE adding dependencies. Following the complete sequence ensures proper package initialization and Claude Code integration.
After completing extension prerequisites, return here to implement your engine.
Parsnip Fundamentals:
Before adding an engine, understand:
System](references/model-specification-system.md)
Methods](references/fit-predict-methods.md)
--------------------------------------------------------------------------------
INSTRUCTIONS FOR CLAUDE: Assess complexity first, then choose approach:
→ Use streamlined approach:
reach 4-6 if needed
Single-Mode](references/extension-guide.md#simple-single-mode-2-files-rzzzr-teststest-r)
→ Reference detailed guides:
4-6 if implementation requires it
--------------------------------------------------------------------------------
Core registration steps:
set_model_engine()set_dependency()set_model_arg()set_fit()set_encoding() (if needed)set_pred()File Discipline:
README.md); acceptable to reach 4-6 files if implementation requires it
tests/testthat/test-*.R); acceptable to reach 3-7 files if implementation requires it
See [Engine Implementation Guide](references/engine-implementation.md) for complete details and examples.
--------------------------------------------------------------------------------
The registration process differs slightly by context:
Extension Development:
.onLoad() functionparsnip:: prefix for all functionsSource Development:
R/[model]_data.R fileSee respective guides for detailed registration patterns.
--------------------------------------------------------------------------------
Essential tests to include:
See testing guides:
(Extension)](references/package-extension-requirements.md#testing-requirements)
--------------------------------------------------------------------------------
Add an engine when:
Don't add an engine when:
--------------------------------------------------------------------------------
specifications (if model doesn't exist yet)
parameters for engine arguments
fitting
predictions with custom metrics
--------------------------------------------------------------------------------
For Extension Development (creating new packages):
Prerequisites](references/package-extension-prerequisites.md)
Guide](references/engine-implementation.md)
Patterns](references/package-extension-requirements.md#testing-requirements)
For Source Development (contributing to parsnip):
R/[model]_data.R file(Source)](references/testing-patterns-source.md)
--------------------------------------------------------------------------------
For questions or contributions, see:
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.