AgentSkillsCN

dev

启动 Next.js 开发服务器。

SKILL.md
--- frontmatter
name: dev
description: Start the Next.js development server
allowed-tools:
  - Bash(pnpm dev:*)
  - Bash(lsof:*)
  - Bash(pkill:*)
user-invocable: true

Development Server

Start the Next.js development server with Turbopack.

Steps

  1. Check for existing server on port 3000:

    bash
    lsof -i :3000
    
  2. If port is in use, ask user if they want to kill it

  3. Start dev server:

    bash
    pnpm dev
    

The server runs at http://localhost:3000

Notes

  • Uses Turbopack for faster hot reloading
  • Run in background if user wants to continue working
  • Ctrl+C or pkill -f "next dev" to stop