sc-build

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Project Building

项目构建

Build, compile, and package projects with comprehensive error handling and optimization.
具备全面错误处理与优化功能的项目构建、编译及打包工具。

When to use

适用场景

  • User needs to build or compile a project
  • Build errors need diagnosis and resolution
  • Production build or optimization required
  • Clean build or rebuild needed
  • Build configuration analysis requested
  • 用户需要构建或编译项目
  • 需要诊断并解决构建错误
  • 需要生产环境构建或优化
  • 需要清理构建产物后重新构建
  • 需要分析构建配置

Instructions

使用说明

Usage

使用方式

/sc:build [target] [--type dev|prod|test] [--clean] [--optimize]
/sc:build [target] [--type dev|prod|test] [--clean] [--optimize]

Arguments

参数说明

  • target
    - Project or specific component to build
  • --type
    - Build type (dev, prod, test)
  • --clean
    - Clean build artifacts before building
  • --optimize
    - Enable build optimizations
  • --verbose
    - Enable detailed build output
  • target
    - 要构建的项目或特定组件
  • --type
    - 构建类型(dev、prod、test)
  • --clean
    - 构建前清理构建产物
  • --optimize
    - 启用构建优化
  • --verbose
    - 启用详细构建输出

Execution

执行流程

  1. Analyze project structure and build configuration
  2. Validate dependencies and environment setup
  3. Execute build process with error monitoring
  4. Handle build errors and provide diagnostic information
  5. Optimize build output and report results
  1. 分析项目结构与构建配置
  2. 验证依赖项与环境设置
  3. 执行构建流程并监控错误
  4. 处理构建错误并提供诊断信息
  5. 优化构建输出并报告结果

Claude Code Integration

Claude Code 集成

  • Uses Bash for build command execution
  • Leverages Read for build configuration analysis
  • Applies TodoWrite for build progress tracking
  • Maintains comprehensive error handling and reporting
  • 使用 Bash 执行构建命令
  • 利用 Read 分析构建配置
  • 通过 TodoWrite 跟踪构建进度
  • 保持全面的错误处理与报告机制