AgentSkillsCN

build-check

验证项目的所有服务(API 和 Web)是否成功构建。检查编译错误、类型错误以及 lint 警告。在运行测试前、部署前、代码变更后以及恢复时使用。在需要进行构建验证、编译检查或测试前校验时触发。

SKILL.md
--- frontmatter
name: build-check
description: Verify that all project services (API and Web) build successfully. Check compilation errors, type errors, and lint warnings. Use before running tests, before deployment, after code changes, and on resume. Trigger when build verification, compilation check, or pre-test validation is needed.

Build Check

Verify builds succeed before proceeding with tests or deployment.

Build Commands

ServiceSource BuildDocker Build
API (.NET)cd src/api && dotnet builddocker build -f src/api/Dockerfile .
Web (Next.js)cd src/web && npm run builddocker build -f src/web/Dockerfile .

Steps

  1. Identify services — Read azure.yaml or scan src/ for service directories
  2. Build each service — Run the source build command for each service
  3. Capture errors — Collect compilation errors, type errors, and warnings
  4. Docker build (if preparing for deployment) — Run Docker build for each Dockerfile
  5. Report — Summarize build status per service

Output Format

code
Service: <name>
Status: PASS | FAIL
Errors: <count>
Warnings: <count>

Details:
- <file>:<line> <error message>

Notes

  • Web (Next.js) requires output: 'standalone' in next.config.ts
  • API uses .NET 10 Minimal API