.cursor/skills/lyx-deploy/SKILL.md
Deploy Lyx platform to AWS or manage local development environment. Use when the user wants to deploy to production, set up CI/CD, manage AWS infrastructure, or troubleshoot deployment issues.
npx skillsauth add imenesesl/lyx lyx-deployInstall 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.
CRITICAL: Before running ANY AWS command, always ensure credentials are loaded.
lyx aws status
lyx aws login
This saves credentials to ~/.lyx-aws (chmod 600). All Lyx scripts (deploy-aws.sh, ensure-infra.sh, etc.) auto-load this file.
| Type | Expires | Use for |
|------|---------|---------|
| IAM user access keys (AKIA...) | Never | Local dev, CI/CD |
| SSO session tokens (ASIA...) | 1–12 hours | Temporary access |
If the user gets ExpiredToken, run lyx aws login again.
| Location | Purpose |
|----------|---------|
| ~/.lyx-aws | Local machine — auto-loaded by all Lyx scripts |
| GitHub Secrets | CI/CD — used by GitHub Actions workflow |
| App Runner instance role | Production — automatic, no config needed |
bash scripts/platform.sh up # start everything
bash scripts/platform.sh down # stop everything
bash scripts/platform.sh logs # view logs
Services: Admin API (4000), Admin UI (4001), SSR (4002), Nginx (80). All services use cloud resources (MongoDB Atlas + AWS S3) — no local databases or storage.
lyx login -s https://YOUR-API-URL.awsapprunner.com
cd apps/my-project
lyx deploy # interactive: pick MFEs
lyx deploy --all # deploy everything
Note: lyx deploy talks to the Admin API, NOT directly to AWS. No AWS credentials needed for MFE deployment — only for platform infrastructure.
lyx aws login # set up credentials
export MONGO_URI="mongodb+srv://user:pass@cluster/lyx"
bash scripts/deploy-aws.sh deploy
Creates: 3 ECR repos, 2 IAM roles, 1 S3 bucket, 3 App Runner services.
bash scripts/deploy-aws.sh update # redeploy with latest code
bash scripts/deploy-aws.sh status # show service URLs and status
bash scripts/destroy-aws.sh # tear down everything
| Secret | Value |
|--------|-------|
| AWS_ACCESS_KEY_ID | IAM user access key (starts with AKIA) |
| AWS_SECRET_ACCESS_KEY | IAM user secret key |
| AWS_REGION | e.g. us-east-1 |
| MONGO_URI | MongoDB Atlas connection string |
| JWT_SECRET | Random string (openssl rand -base64 32) |
The CI user needs scripts/iam-policy.json attached. Covers: ECR, App Runner, IAM (for lyx-apprunner-* roles), S3, STS.
detect-changes — checks if infra exists + git diffsetup-infra — ensure-infra.sh (idempotent, creates missing resources)ensure-service.sh — creates App Runner if new, updates if existsjq to avoid JSON parsing errors.github/ or scripts/scripts/iam-policy.json to IAM userlyx aws login to refresh credentialsensure-infra.sh creates them automaticallyjq handles thisaws apprunner start-deployment --service-arn <arn>pnpm install --no-frozen-lockfile, commit, pushlyx aws statuslyx aws logindocs/errors.md with the resolutiondevelopment
# 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