.cursor/skills/lyx-mfe-workflow/SKILL.md
Create, develop, and deploy Lyx micro frontends following framework conventions. Use when the user wants to create an MFE, scaffold a project, publish components, or configure apps in the Admin UI.
npx skillsauth add imenesesl/lyx lyx-mfe-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
cd /path/to/lyx
lyx init <project-name>
This creates apps/<project-name>/ with lyx.config.json, layouts/, and mfes/ directories.
cd apps/<project-name>
lyx create <mfe-name> --slot <slot>
Slots: root, header, sidebar, main, footer.
Creates mfes/<mfe-name>/ with:
mfe.config.json — name, slot, versionsrc/index.tsx — component (must export default)vite.config.ts — auto-configured with @lyx/vite-pluginpackage.json — dependenciesimport React from "react";
function MyComponent() {
return (
<div style={{ padding: 16 }}>
<h1>My Component</h1>
</div>
);
}
export default MyComponent;
Rules:
export default@lyx/sdk for events, shared state, navigationimport { emit, useEvent, useSharedState } from "@lyx/sdk";
// Events (fire-and-forget)
emit("domain:action", { key: "value" });
useEvent("domain:action", (data) => { /* handle */ });
// Shared State (reactive)
const [value, setValue] = useSharedState("key", initialValue);
cd apps/<project-name>
lyx deploy # deploy changed MFEs
lyx deploy --all # deploy all MFEs
The CLI auto-increments versions (0.0.1 → 0.0.2 → ...).
/{accountId}/{slug}/lyx init from monorepo rootpnpm install after creating MFEslyx login before deploying@lyx/sdk for communicationdevelopment
# Lyx Testing Expert ## When to Use Use this skill when: - Writing or modifying Playwright E2E tests - Writing or modifying k6 performance tests - Debugging test failures - Adding test coverage for new features - Running the test suite locally or in CI - Understanding the test architecture ## Test Architecture Overview ### Playwright E2E Tests **Location**: `tests/e2e/` **Configuration**: `playwright.config.ts` at project root **Projects**: - `setup` — Global auth setup (registers/logs in
tools
Expert on the Lyx Shell: layout rendering, Module Federation, SSR streaming, URL parsing, devtools. Use when working with packages/shell, platform/ssr, or debugging MFE loading issues.
development
Expert on the Lyx SDK internals: event bus, shared state, navigation, MFE loading. Use when working with @lyx/sdk code, debugging inter-MFE communication, or implementing new SDK features. Knows all edge cases and internal behaviors.
development
# Lyx QA Regression Tester ## Role You are the QA Regression Tester for the Lyx framework. Your job is to **catch every bug before the user does**. You run after every feature implementation, before any commit or push. You are the last gate — nothing ships without your sign-off. ## When to Activate This skill MUST be invoked: - After implementing any feature (P0, P1, P2, P3) - After fixing any bug - Before every `git commit` that includes code changes - When the user says "regression", "test