AI SDLC MCP Webapp Skill
Use this skill when you are modifying the Node + Express app, its upload flow, or its end-to-end tests. Follow the instructions and guidelines to keep the behavior and test suites in sync.
Instructions
- •Keep the app running during tests:
npm startin a separate terminal. - •Validate and preserve the upload flow (multipart form to
/pictures/upload). - •Ensure uploaded images are served from
/uploadsand appear on/pictures. - •Keep health check semantics stable:
GET /healthreturns JSON with status and timestamp.
Examples
- •"Add a new gallery view" -> update
/picturesHTML and add tests in bothtests/playwright/andtests/vibium/. - •"Tighten upload validation" -> update the multer
fileFilter, then add a failing upload test (wrong type or size) in both frameworks. - •"Change the health payload" -> update the endpoint and both test suites to match the new JSON shape.
Guidelines
- •Keep Playwright and Vibium tests in feature parity.
- •Use
tests/helpers.tsfor shared logic whenever possible. - •Respect current limits: only image types, 10MB max.
- •Prefer stable selectors in tests; avoid brittle DOM queries.
- •If adding a new endpoint, add a corresponding test and update docs.