hardhat

Standardize R preprocessing with mold() and forge() for modeling packages.

13|2|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/jsperger/llm-r-skills --skill hardhat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hardhat
Source: https://github.com/jsperger/llm-r-skills/tree/main/skills/hardhat
Command: npx skills add https://github.com/jsperger/llm-r-skills --skill hardhat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes preprocessing workflows for R modeling packages, ensuring consistent handling of formula, XY, and recipe inputs during training and prediction.

Core Features & Use Cases

  • Standardized preprocessing with mold() for training data and forge() for prediction data.
  • Support for formula, XY, and recipe interfaces with interchangeable blueprints for consistent interfaces.
  • Tools for creating model constructors, spruce formatting for outputs, and validation hooks to ensure data integrity.
  • Use Case: Develop a modeling package that requires reproducible preprocessing across training and deployment pipelines.

Quick Start

Install and attach the hardhat package, then run a basic mold() workflow to preprocess training data and a subsequent forge() call for new data using a blueprint.

Frequently Asked Questions about hardhat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize R preprocessing workflows for both training and prediction data?

Standardize R preprocessing workflows by using mold() for training data and forge() for prediction data, ensuring consistent inputs and outputs across formula, XY, and recipe interfaces.

What is the best way to build modeling packages with reproducible preprocessing pipelines in R?

Build reproducible preprocessing pipelines in R by implementing interchangeable blueprints, model constructors, and validation hooks that enforce consistent data handling during training and deployment.

Does tidymodels support mold() and forge() for creating consistent modeling package interfaces?

Yes, mold() and forge() support tidymodels by providing interchangeable blueprints for formula, XY, and recipe interfaces, ensuring consistent data handling across training and prediction.

How do blueprint handlers work when preprocessing data with mold() and forge() in R?

Blueprint handlers in R work by applying specific preprocessing rules to training data with mold() and new data with forge(), ensuring consistent input and output shapes.

Can I use spruce formatting to ensure data integrity when creating R model constructors?

Yes, use spruce formatting alongside model constructors and validation hooks to ensure data integrity and consistent output formatting across different preprocessing interfaces.

When do I need to use validation hooks with mold() and forge() for R modeling pipelines?

Use validation hooks with mold() and forge() when you need to enforce data integrity and consistent inputs across end-to-end R modeling pipelines during training and prediction.