analyze
Analyzes an existing Node.js/Express app and creates a migration plan. Use when the user wants to migrate, convert, or deploy their app.
What this skill does
# Analyze — Understand Your App You are analyzing the user's existing Node.js/Express application to create a migration plan for AWS serverless deployment. ## When This Skill Activates - User says "I want to deploy this to AWS" - User asks to migrate, convert, or move their app to the cloud - User asks Claude to look at their app for deployment - No `.migration/plan.md` exists yet ## What To Do ### Phase 0: Safety Check Before making any changes, make sure the user's work is safe. This migration creates a lot of new files and modifies the project structure significantly — if something goes wrong, the user needs an easy way to get back to where they started. 1. **Check git is initialized** — Run `git status`. If the project isn't a git repo, suggest initializing one: "Before we start, let's set up version control so you can always get back to your current working app if needed. Want me to run `git init` and make an initial commit?" 2. **Check for uncommitted changes** — If there are uncommitted changes, ask the user to commit them first: "I see you have uncommitted changes. Let's save those before we start the migration — that way you can always roll back to exactly where you are now. Want me to commit these for you?" 3. **Create a migration branch** — Create a new branch so all migration work is isolated: "I'll create a `migration` branch to work on. Your `main` branch stays untouched, so you can always switch back." ```bash git checkout -b migration ``` 4. **Check Node.js version** — Run `node --version`. The migration targets Node.js 20.x for Lambda. If the user is on Node 16 or older, warn them: "You're running Node.js [version]. AWS Lambda uses Node.js 20, and some of the tools we'll use (like Vite and CDK) need Node.js 18 or newer. I'd recommend upgrading before we continue — otherwise you may hit confusing errors later." 5. **Check if git is configured** — Verify `git config user.name` and `git config user.email` are set so commits work. Once safety checks pass, proceed to exploration. ### Phase 1: Explore Thoroughly read the existing application: 1. **Find the entry point** — Look for `app.js`, `index.js`, `server.js`, or `package.json` main field 2. **Map all routes** — Find every Express route (GET, POST, PUT, DELETE, PATCH) - Note the HTTP method, path, and what each handler does - Identify middleware (auth checks, body parsing, validation) 3. **Find static files** — Look for `express.static()` calls, HTML/CSS/JS files, assets 4. **Detect data patterns** — How does the app store data? - In-memory variables/arrays - JSON file reads/writes - SQLite or other local database - External API calls 5. **Check for auth** — Does the app have login/signup? Sessions? JWT? 6. **Read package.json** — Note dependencies, scripts, Node.js version 7. **Check for environment variables** — `.env` files, `process.env` usage ### Phase 2: Plan Present findings to the user in plain language: **Routes Summary:** "I found [N] Express routes. Here's what each one does:" - `GET /` — Serves the main page - `GET /api/items` — Returns a list of items from [data source] - `POST /api/items` — Creates a new item - etc. **Data Storage:** "Your app currently stores data in [method]. In AWS, we'll move this to DynamoDB, a cloud database that scales automatically." **Static Files:** "You have [N] HTML files and [N] CSS/JS files. We'll migrate these into a modern React frontend built with Vite, then host the production build on CloudFront, a global CDN." **Authentication:** "Your app [does/doesn't] have authentication. [If yes: We'll move this to Cognito. If no: We can add it later if you need it.]" ### Phase 3: Discuss Ask the user targeted questions: 1. "Does this summary look right? Did I miss anything?" 2. "Which routes are the most important to get working first?" 3. "Are there any routes that should only be accessible to logged-in users?" 4. "Is there any data that needs to persist between sessions?" (if unclear) 5. "Are there any features you want to add or remove during the migration?" 6. "Do you have an AWS account set up? (If not, I can help with that)" ### Phase 4: Output Create `.migration/plan.md` with: ```markdown # Migration Plan ## App Summary - **Entry point**: [file] - **Framework**: Express [version] - **Node.js version**: [version] ## Routes to Migrate | Method | Path | Description | Auth Required | Lambda Handler | |--------|------|-------------|---------------|----------------| | GET | / | Main page | No | N/A (static) | | GET | /api/items | List items | No | get-items | | POST | /api/items | Create item | Yes | create-item | ## Data Model - **Current storage**: [method] - **Target**: DynamoDB - **Tables needed**: [list with key design] ## Frontend - **Current files**: [list of HTML/CSS/JS files] - **Target**: Vite + React (TypeScript) → built to static files → hosted on S3 + CloudFront ## Authentication - **Needed**: Yes/No - **Protected routes**: [list] ## Migration Steps 1. ✅ Analyze — Complete 2. 🔲 Scaffold — Create CDK project 3. 🔲 Create API — [N] Lambda handlers needed 4. 🔲 Add Database — [if needed] 5. 🔲 Add Auth — [if needed] 6. 🔲 Setup Frontend — Create Vite + React app, host on S3 + CloudFront 7. 🔲 Deploy 8. 🔲 Test ``` ### Phase 5: Verify - Confirm the plan with the user - Explain the next step (scaffold) and what it will create - Tell them they can just say "let's set up the infrastructure" to continue ## Important Notes - Use the AWS Documentation MCP to look up serverless patterns when explaining the migration - If the app has patterns you're unsure about, ask the user rather than guessing - If the app is very complex, suggest starting with the core routes and adding features incrementally
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.