AgentSkillsCN

dev

启动完整的开发环境(数据库、开发服务器、工作节点)。

SKILL.md
--- frontmatter
name: dev
description: Start the full development environment (database, dev server, worker)
disable-model-invocation: true

Start all required services for local development of this Next.js theater ticket app.

Steps

  1. Start PostgreSQL via Docker (if not already running):

    bash
    docker-compose up -d db
    
  2. Start the Next.js dev server in the background:

    bash
    npm run dev
    
  3. Start the background worker (handles PDF generation, payment webhooks, orphaned order cleanup):

    bash
    npm run worker:watch
    

Steps 2 and 3 should run in separate terminals or as background processes — they are both long-running.

Verify

If migrations haven't been applied yet, run /migrate first.