r2-dev-page

Generate frontend page code from design specifications.

2|1|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/silentbalanceyh/r2mo-lain --skill r2-dev-page
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r2-dev-page
Source: https://github.com/silentbalanceyh/r2mo-lain/tree/main/skills/r2-dev-page
Command: npx skills add https://github.com/silentbalanceyh/r2mo-lain --skill r2-dev-page

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes scripts (resource) components.

What problem does it solve?

Automates translating design specifications into production-ready frontend pages, reducing manual coding effort and ensuring consistent implementation across projects.

Core Features & Use Cases

  • Generates UI components (framework-agnostic) plus state management hooks/composables and API client integrations from page requirements.
  • Produces type definitions and frontend validation scaffolding aligned with API schemas, enabling end-to-end type-safety.
  • Use Case: A designer provides a page spec; the skill scaffolds a working frontend module with API calls and data models ready for integration.

Quick Start

Run the generator in your module after placing requirement.page.md to scaffold frontend code.

Frequently Asked Questions about r2-dev-page

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

FAQPage Schema
How do I generate frontend pages from design specifications automatically?

Generating frontend pages from design specifications is done by placing a requirement.page.md file in your module and running the generator. It scaffolds UI components, state management, API clients, types, styles, and tests while preserving existing API contracts and project structure.

Can I scaffold type-safe API clients and UI components from a single page spec?

Yes, scaffolding type-safe API clients and UI components from a single page spec is supported. The skill produces type definitions and frontend validation scaffolding aligned with API schemas, ensuring end-to-end type-safety across the generated components and data models.

What's the best way to automate rapid prototyping for modern web apps?

Automating rapid prototyping for modern web apps is handled by translating page requirements into working frontend modules. The skill generates framework-agnostic UI components plus API integrations and data models, enabling designers to turn specs into production-ready code systematically.

Does frontend code generation work across different web frameworks?

Frontend code generation works across modern web frameworks by producing framework-agnostic UI components and state management hooks or composables. It systematically scaffolds frontend code while preserving your existing API contracts and project structure during the design-to-code workflow.

Do I need pyyaml installed to scaffold frontend code from page requirements?

Yes, pyyaml is required as a dependency to scaffold frontend code from page requirements. You need it installed in your environment before running the generator to ensure the specification parsing and code generation processes execute correctly.

Why does frontend scaffolding preserve existing API contracts during code generation?

Frontend scaffolding preserves existing API contracts during code generation to ensure the generated API client integrations and type definitions remain aligned with your current backend schemas. This prevents breaking changes and maintains end-to-end type-safety across the project structure.