erb-to-squarekit-view-migration

Convert Rails ERB views into React/SquareKit components behind feature flags.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/dailydm/skills --skill erb-to-squarekit-view-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: erb-to-squarekit-view-migration
Source: https://github.com/dailydm/skills/tree/main/erb-to-squarekit-view-migration
Command: npx skills add https://github.com/dailydm/skills --skill erb-to-squarekit-view-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Systematically migrate Rails ERB views to React/SquareKit behind feature flags, enabling safe, incremental UI modernization.

Core Features & Use Cases

  • Deep ERB reconnaissance across templates and partials
  • Plan React component variants per resource type with shared and type-specific sub-components
  • Implement a phased PR strategy (flags, backend, frontend) to minimize risk
  • Align frontend with GraphQL view-models, i18n, and Packwerk boundaries for scalable migrations

Quick Start

Start by identifying the main ERB template and mapping all partials to plan the React migration.

Frequently Asked Questions about erb-to-squarekit-view-migration

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

FAQPage Schema
How do I migrate Rails ERB views to React safely?

Migrate Rails ERB views to React safely by converting templates into React components behind feature flags. This enables incremental UI modernization by using deep ERB reconnaissance and flag gating to minimize deployment risk.

What is the best way to plan a React component migration from ERB partials?

Plan a React component migration from ERB partials by mapping React component variants per resource type. This involves identifying shared and type-specific sub-components to ensure structured and scalable UI modernization.

Can I use feature flags for incremental Rails to React migration?

Yes, you can use feature flags for incremental Rails to React migration. The process implements a phased PR strategy including flags, backend, and frontend stages to systematically minimize risk during deployment.

How does GraphQL fit into migrating ERB views to React?

GraphQL fits into ERB to React migration by aligning frontend components with domain-driven GraphQL view-models and thin resolvers. This ensures the new React UI fetches data through structured endpoints.

Do I need Packwerk boundaries when modernizing Rails ERB to React?

You need Packwerk boundaries when modernizing Rails ERB to React to maintain modular architecture. Adhering to these boundaries alongside i18n requirements ensures scalable frontend migrations across domain-driven APIs.