OEM Code Generation Skill

Generate type-safe OEM components using State and Template patterns.

6|Updated Jul 22, 2022
One-click install
npx skills add https://github.com/linttrapmedia/oem --skill oem-code-generation-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: OEM Code Generation Skill
Source: https://github.com/linttrapmedia/oem/tree/main
Command: npx skills add https://github.com/linttrapmedia/oem --skill oem-code-generation-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OEM code generation reduces manual boilerplate by providing a blueprint to create reactive, type-safe UI components with State and Template, enabling AI-assisted development without sacrificing clarity or control.

Core Features & Use Cases

  • State-driven UI: Generate components that rely on State for reactive data flows and automatic updates.
  • Template-based composition: Build elements and apply behaviors with a minimal Proxy-based Template API and ready-made Traits.
  • Pattern library: Access a library of ready-made traits and state utilities, plus practical examples for common UI patterns (counters, forms, lists, conditional rendering).

Quick Start

Instantiate a small OEM app by creating a State counter, configure Template with style and event traits, build a simple component using tag and trait, and mount it to the DOM.

Frequently Asked Questions about OEM Code Generation Skill

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

FAQPage Schema
How do I generate type-safe UI components with minimal boilerplate?

Template-based composition uses a minimal Proxy-based Template API to build elements and apply behaviors. You configure components with ready-made traits for common UI patterns like counters, forms, lists, and conditional rendering across HTML and SVG.

Can I build reactive forms and lists using state-driven UI patterns?

Yes, state-driven UI patterns let you build reactive forms and lists by relying on State for reactive data flows. The Skill includes a pattern library with practical examples for these common UI tasks, ensuring automatic updates and type safety.

Does the code generation approach work with HTML and SVG?

The code generation approach works with both HTML and SVG, applying reactive patterns to common UI tasks across both formats. You use minimal trait configuration and the Dollar Pattern for event handlers to build components across these rendering targets.

What is the Dollar Pattern for event handlers in component design?

The Dollar Pattern is an enforced event handler convention used in component-first design. It provides a consistent way to wire up reactive behaviors while ensuring automatic cleanup, reducing boilerplate, and maintaining type safety across your generated UI components.

How do I get started building a reactive UI app from scratch?

Instantiate a small OEM app by creating a State counter, configuring Template with style and event traits, building a simple component using tag and trait, and mounting it to the DOM. This quick start process reproduces core reactive patterns in your projects.