Agent skill
sc-build
Build, compile, and package projects with intelligent error handling and optimization. Use when building projects, creating artifacts, debugging build failures, or preparing deployments.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/sc-build
SKILL.md
Build & Package Skill
Project building and packaging with optimization and error handling.
Quick Start
# Standard build
/sc:build [target]
# Production with optimization
/sc:build --type prod --clean --optimize
# Verbose development build
/sc:build frontend --type dev --verbose
Behavioral Flow
- Analyze - Project structure, configs, dependencies
- Validate - Build environment, toolchain components
- Execute - Build process with real-time monitoring
- Optimize - Apply optimizations, minimize bundles
- Package - Generate artifacts and build reports
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--type |
string | dev | dev, prod, test |
--clean |
bool | false | Clean build (remove previous artifacts) |
--optimize |
bool | false | Enable advanced optimizations |
--verbose |
bool | false | Detailed build output |
--validate |
bool | false | Include validation steps |
Personas Activated
- devops-engineer - Build optimization and deployment preparation
Evidence Requirements
This skill requires evidence. You MUST:
- Show build command output and exit codes
- Reference generated artifacts
- Report timing metrics and optimization results
Build Types
Development (--type dev)
- Fast compilation
- Source maps enabled
- Debug symbols included
- No minification
Production (--type prod)
- Full optimization
- Minification enabled
- Tree-shaking applied
- Dead code elimination
Test (--type test)
- Test coverage instrumentation
- Mock configurations
- Test-specific environment
Examples
Clean Production Build
/sc:build --type prod --clean --optimize
# Minification, tree-shaking, deployment prep
Component Build
/sc:build frontend --verbose
# Targeted build with detailed output
Validation Build
/sc:build --type dev --validate
# Development build with quality gates
Error Handling
Build failures trigger:
- Error log analysis
- Dependency verification
- Configuration validation
- Actionable resolution guidance
Tool Coordination
- Bash - Build system execution
- Read - Configuration analysis
- Grep - Error parsing and log analysis
- Glob - Artifact discovery
- Write - Build reports
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?