aibdd-pen-to-storybook

Parse Pencil .pen files into Tailwind 4 tokens and component candidate tables.

77|15|Updated May 12, 2026
One-click install
npx skills add https://github.com/Waterball-Software-Academy/aixbdd --skill aibdd-pen-to-storybook
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aibdd-pen-to-storybook
Source: https://github.com/Waterball-Software-Academy/aixbdd/tree/main/.agents/skills/aibdd-pen-to-storybook
Command: npx skills add https://github.com/Waterball-Software-Academy/aixbdd --skill aibdd-pen-to-storybook

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It converts a frozen Pencil design (.pen) into normalized Tailwind 4 tokens and component candidate tables, so downstream Storybook generation can proceed without guessing.

Core Features & Use Cases

  • Read-only .pen adapter: parses Pencil .pen JSON, extracts Tailwind 4 token inputs, and never writes files or scaffolds projects.
  • Screen-scoped extraction: selects and processes exactly one top-level screen subtree per run to keep component boundaries clean.
  • Heuristic component detection: produces a table of component candidates (with derived props and observed story states) for downstream planning and Storybook authoring.
  • Failure-safe dispatch: validates input schema/version and returns structured failure kinds/messages to the caller.

Quick Start

Ask the workflow to run aibdd-pen-to-storybook on your absolute .pen path and a specific screen id to get component_table and Tailwind 4 tokens.

Frequently Asked Questions about aibdd-pen-to-storybook

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

FAQPage Schema
How do I extract Tailwind tokens from a Pencil .pen design file?

To extract Tailwind tokens from a Pencil .pen file, parse the .pen v2.x JSON schema and map the design elements to normalized Tailwind 4 token namespaces. This read-only process isolates design tokens for downstream Storybook generation without writing files.

What is the best way to detect component candidates from a Pencil design for Storybook planning?

Detecting component candidates from a Pencil design involves applying heuristic component detection to a selected screen subtree. This generates a stable component table with derived props and observed story states, providing structured inputs for Storybook planning.

Can I process multiple Pencil screens at once to generate component tables?

No, you cannot process multiple Pencil screens at once. The extraction is screen-scoped, requiring you to select exactly one top-level screen subtree per run to maintain clean component boundaries and produce an accurate component table.

Does the pen-to-storybook adapter modify or scaffold my project files during ingestion?

No, the pen-to-storybook adapter does not modify or scaffold project files. It performs read-only parsing of the .pen JSON to extract Tailwind 4 tokens and component candidates, strictly returning data to the caller without writing anything to disk.

Why does my Pencil design extraction fail when parsing the .pen file?

Pencil design extraction fails when the input schema or version is invalid. The adapter validates the .pen v2.x schema upfront and returns structured failure kinds and messages to the caller, ensuring safe dispatch during the ingestion process.

When do I need to convert a .pen file into Tailwind tokens and component candidates?

You need to convert a .pen file into Tailwind tokens and component candidates when you have a frozen Pencil design and want to transition to Storybook authoring. This adapter-only ingestion normalizes design data during the discovery and planning phase.