.cursor/skills/lyx-cli-expert/SKILL.md
Expert on the Lyx CLI commands: init, create, dev, build, deploy, login, view, aws. Use when modifying CLI commands, adding new commands, debugging CLI issues, or understanding the MFE publish flow.
npx skillsauth add imenesesl/lyx lyx-cli-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.
Entry: packages/cli/src/index.ts — Commander program lyx.
Commands: packages/cli/src/commands/*.ts
Build: esbuild → dist/index.js, bin: ./bin/lyx.mjs
init <project-name>apps/<name>/ with package.json, lyx.config.json, layouts/, mfes/, tsconfig.jsonpnpm-workspace.yaml if workspace exists and glob not already coveredmain (header + sidebar + main + footer)create <name> --slot <slot>mfes/)mfe.config.json, package.json, vite.config.ts, tsconfig.json, src/index.tsx, index.htmldeploy~/.lyxrc for server/token/accountIdGET /api/auth/me — session checkGET /api/mfes — find or create MFE by namegetNextVersion(localVersion, serverVersions) — patch bump from max server versionmfe.config.jsondist/, uploads multipartloginPOST /api/auth/login → saves { server, token, email, accountId } to ~/.lyxrcaccountId = account.alias || account.id from responseviewaccountId in ~/.lyxrcvite.preview.config.ts in packages/shell/awsSubcommand group for AWS credential management:
lyx aws login — prompts for ACCESS_KEY_ID, SECRET_ACCESS_KEY, optional SESSION_TOKEN. Validates with STS. Saves to ~/.lyx-aws.lyx aws status — checks if ~/.lyx-aws credentials are valid. Shows account and identity.lyx aws logout — removes ~/.lyx-aws content.Uses execSync("aws sts get-caller-identity") for validation. Auto-loads existing credentials before prompting.
deploy without --all prompts interactively — not scriptable without --allfindViteBin() walks up parents — may find wrong vite in nested node_modulesLYX_TOKEN works but accountId must come from ~/.lyxrcpublish vs deploy: publish = single MFE, deploy = multi with version bumpaws login requires aws CLI to be installed — used for STS validationlyx deploy does NOT need AWS credentials — it talks to Admin API via ~/.lyxrc tokendeploy-aws.sh, ensure-infra.sh)development
# 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