Agent skill
prepare-app
Starts development server for E2E testing. Detects package manager and verifies server startup. Triggers on keywords: prepare app, start server, dev server, start app
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/prepare-app
SKILL.md
Prepare App Command
Start the development server for E2E testing.
Pre-Flight Checks
-
Check for package.json
- If missing: STOP with "No package.json found"
-
Check node_modules
- If missing: Run package manager install first (npm/pnpm/yarn install)
Execution
-
Start Development Server
- Run in background:
${DEV_SERVER_CMD:-pnpm dev} - Wait 5 seconds for server startup
- Run in background:
-
Verify Server Running
- Check if port ${DEFAULT_PORT:-5173} is responding
- If not responding after 10s: Report error
-
Report Status
- Confirm server is running
- Display URL:
http://localhost:${DEFAULT_PORT:-5173}/
Notes
- Server runs in background
- Use Ctrl+C in terminal to stop server
- Default port: 5173 (Vite default)
- Override with DEFAULT_PORT environment variable
- Override dev command with DEV_SERVER_CMD environment variable (e.g., "npm run dev")
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?