implement-recipe

Convert design.md files into TypeScript recipe implementations, barrel indices, and tests.

91|4|Updated Jun 20, 2025
One-click install
npx skills add https://github.com/styleframe-dev/styleframe --skill implement-recipe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement-recipe
Source: https://github.com/styleframe-dev/styleframe/tree/main/.claude/skills/implement-recipe
Command: npx skills add https://github.com/styleframe-dev/styleframe --skill implement-recipe

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turn approved design specs into working Styleframe recipe code, ensuring tests and barrel exports are generated and kept in sync with design decisions.

Core Features & Use Cases

  • Automates generation of recipe TypeScript files, unit tests, barrel indices, and implementation docs from a design.md.
  • Guarantees consistent structure across recipes (base, variants, compoundVariants, defaultVariants) and correctly updates root barrels.
  • Useful when converting design artifacts into production-ready code for style systems and design tokens.

Quick Start

Follow the steps to generate the recipe code from an existing design.md and run tests to verify compilation.

Frequently Asked Questions about implement-recipe

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

FAQPage Schema
How do I convert a design spec into TypeScript recipe files?

To convert a design spec into TypeScript recipe files, this Skill automates generating type-safe recipe implementations, barrel indices, and unit tests from an approved design.md. It produces structured TS files under theme/src/recipes.

How do I generate unit tests for design token recipes?

Generating unit tests for design token recipes happens automatically alongside the recipe implementation. The process creates a .test.ts file within theme/src/recipes/<name>/ to verify compilation and maintain consistent recipe behavior.

What is the best way to keep barrel exports in sync with recipe variants?

The best way to keep barrel exports in sync with recipe variants is to automatically update the root barrel index when generating recipe files. This ensures base, variants, compoundVariants, and defaultVariants are consistently exported.

Does this recipe generation tool work without external dependencies?

Yes, this recipe generation tool works without external dependencies. It operates independently to parse design.md files and output the required TypeScript recipe structures, tests, and context implementation summaries.

What file structure is generated when creating Styleframe recipes?

Creating Styleframe recipes generates a structured directory under theme/src/recipes/<name>/ containing use<Name>Recipe.ts, .test.ts, index.ts, optional sub-recipes, and an implementation.md summary in the .context folder.