.cursor/skills/lyx-sdk-expert/SKILL.md
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.
npx skillsauth add imenesesl/lyx lyx-sdk-expertInstall 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.
events/event-bus.ts)window.CustomEvent with prefix lyx: → emit("cart:add", data) dispatches lyx:cart:addon() wraps the handler — the returned unsubscribe is the ONLY way to remove. off() with the original handler does NOT worknavigate() uses event name "lyx:navigate" → actual DOM event is lyx:lyx:navigate (double prefix)windowstore.ts)globalThis.__lyx_zustand_store__ with Redux DevToolsuseSharedState(key, initial) — first writer wins; if key already has a value, initial is ignoredcreateSharedStore(name, initial) — namespaced object state; shallow merge only on set()undefined, returns initialValue (can mask intentional undefined)navigation.ts)navigate(mfeName, targetSlot, params) → emits event + pushes history stategetAppBase() reads from pathname: matches /apps/<slug>/ or / — legacy patternonNavigate() subscribes to both lyx:navigate events AND popstategoBack() has no typeof window guard — crashes on serverloader.ts)window[name] exists, skips loading (uses existing container)container.init() then container.get("./default")mod.default ?? mod — handles both named and default exportsFor complete list see docs/errors.md
src/index.ts@lyx/types if sharedtypeof window !== "undefined"docs/features.md SDK sectiondevelopment
# 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
# 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
development
Act as Project Manager for the Lyx framework. Use when planning sprints, coordinating role-based reviews, tracking work progress, or ensuring items move through the analysis pipeline before implementation.