.cursor/skills/lyx-debug/SKILL.md
Debug and resolve Lyx framework errors. Use when the user encounters build failures, deployment errors, runtime issues, CI failures, or MFE loading problems. Consults the error knowledge base for known solutions.
npx skillsauth add imenesesl/lyx lyx-debugInstall 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.
Before debugging, always verify:
AWS credentials (if AWS-related):
lyx aws status
If expired → lyx aws login
CLI is linked:
which lyx
If not found → cd packages/cli && pnpm build && pnpm link --global
Lockfile is current (if install fails):
pnpm install --no-frozen-lockfile
Then commit pnpm-lock.yaml if changed.
| Category | Symptoms |
|----------|----------|
| Build | tsc errors, Vite failures, Module Federation issues |
| Deploy | lyx deploy failures, S3 upload errors, version conflicts |
| CI | GitHub Actions failures, ECR push errors, App Runner issues |
| Runtime | MFE not loading, wrong version rendered, blank page |
| Auth | Login failures, JWT errors, Unexpected token '<' |
| Infra | IAM permission denied, ECR repo not found, S3 access denied, ExpiredToken |
Read docs/errors.md for previously resolved issues with exact solutions.
loadRemote type error: Cast result — mf.loadRemote(...) as { default: ComponentType } | null(...args: [any, string, string?])pnpm.onlyBuiltDependencies: Remove from sub-packages, only keep at rootpnpm install --no-frozen-lockfile, commit pnpm-lock.yamlbash scripts/ensure-infra.sh firstscripts/iam-policy.json to the CI userjq -nc to build JSON, never string interpolationlyx aws login — credentials saved to ~/.lyx-awsNEEDS_INSTANCE_ROLE=truemfeName_v0_0_2)app-config.ts resolves remoteEntryUrl from MFEVersion record, not client-sent dataUnexpected token '<': API requests hitting static server — ensure serve.cjs proxy is workingjq --arg to pass secrets safely@lyx/shell: Check MFESlot.tsx and LyxDevtools.tsx for TS errorsaws apprunner start-deployment --service-arn <arn>CRITICAL: After fixing ANY error, update docs/errors.md following this format:
### [Error Title]
**Category**: Build | Deploy | CI | Runtime | Auth | Infra
**Symptom**: What the user sees
**Cause**: Root cause
**Fix**: Step-by-step solution
**Prevention**: How to avoid in the future
This creates a feedback loop — future agents will find the solution immediately.
docs/errors.md firstdocs/errors.md.cursor/rules/*.mdc.cursor/skills/*/SKILL.mddevelopment
# 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