AgentSkillsCN

Task Commands

适用于开发、构建、测试与部署的所有 Taskfile 命令

SKILL.md
--- frontmatter
description: All Taskfile commands for dev, build, test, and deployment
category: Reference
boundary: Monorepo (root)
version: 2.2

Task Commands

All commands use Taskfile.yml. Run from project root.

Development

CommandDescription
task fullstackStart BE + FE in parallel
task beStart backend only (Bun)
task feStart frontend only (Vite)

Docker

CommandDescription
task docker-localStart Postgres, Redis, MinIO
task docker-downStop all containers
task docker-restartRestart containers
task docker-logsView container logs

Database (Prisma)

CommandDescription
task prisma-generateGenerate Prisma client
task prisma-pushPush schema to database
task prisma-allGenerate + push (use after schema changes)

Code Generation

CommandDescription
task gen -- <pkg>Generate API code from proto
npm run gen -- <pkg>Same (npm alternative)

Example: task gen -- product generates:

  • fe/src/services/product/api.ts
  • fe/src/services/product/useQuery.ts
  • be/core/api/product/product.routes.ts
  • be/core/dto/product/*.dto.ts (once only)

Linting & Build

CommandDescription
task lintLint all workspaces
cd be && bun run buildBuild backend
cd fe && npm run buildBuild frontend

Testing

CommandDescription
task test-integrationRun BE integration tests
cd be && bunx vitest runRun BE unit tests
task e2eRun E2E tests (sequential)
task e2e:headedRun E2E with browser visible
task e2e:parallelRun E2E with 4 workers
task e2e:reportShow E2E test report

E2E Docker

CommandDescription
task e2e:docker-buildBuild E2E Docker images
task e2e:docker-runRun E2E Docker stack

Full Stack Commands

CommandDescription
task iflash:fullStart infra + fullstack + E2E Docker
task iflash:with-e2eStart BE+FE with E2E in background
task iflash:stop-allStop all services

Install

CommandDescription
npm installInstall all workspace dependencies

Quick Reference

mermaid
flowchart LR
    subgraph Dev
        A[task fullstack]
        B[task docker-local]
    end
    subgraph Build
        C[task lint]
        D[task gen -- pkg]
    end
    subgraph Test
        E[task test-integration]
        F[task e2e]
    end
    A --> C --> E
    B --> A
    D --> C