AgentSkillsCN

dev

启动 Vite 开发服务器,用于前端开发。当用户说“启动前端”、“运行开发服务器”或“打开应用”时,可调用该技能。不适用于运行测试——若需进行 Playwright 测试,请使用 /test-e2e。

SKILL.md
--- frontmatter
name: dev
description: "Start the Vite dev server for frontend development. Use when user says 'start the frontend', 'run dev server', or 'open the app'. Not for running tests — use /test-e2e for Playwright."
disable-model-invocation: true
allowed-tools: Bash, Read

Start the Vite dev server for frontend development.

Steps

  1. Check if the frontend/ directory exists:
bash
test -d frontend && echo "Frontend found" || echo "ERROR: No frontend/ directory. Run npx wao create with frontend option to scaffold one."
  1. If frontend/ doesn't exist, stop and tell the user to re-scaffold with the frontend option.

  2. Install frontend dependencies if needed:

bash
cd frontend && npm install
  1. Start the Vite dev server:
bash
cd frontend && npm run dev
  1. Report the local URL (usually http://localhost:5173).