Claude-skill-registry build-run-local
Run local builds with proper environment setup. Use when building code locally to verify changes before pushing.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/build-run-local" ~/.claude/skills/majiayu000-claude-skill-registry-build-run-local && rm -rf "$T"
manifest:
skills/data/build-run-local/SKILL.mdsource content
Build and Run Local
Execute local builds with environment setup matching CI pipeline.
When to Use
- Building code locally before pushing
- Testing individual components locally
- Verifying changes work before creating PR
- Running tests in local environment
- Debugging build issues in isolation
Quick Reference
# Activate environment eval "$(pixi shell-hook)" pixi run mojo --version # Build project pixi run mojo build -I . shared/core/extensor.mojo # Run tests pixi run mojo test -I . tests/shared/core/ # Run specific test pixi run mojo test -I . tests/shared/core/test_extensor.mojo # Format code pixi run mojo format .
Workflow
- Activate environment: Use pixi to setup environment
- Verify environment: Check mojo version and dependencies
- Build locally: Run mojo build with proper flags
- Run tests: Execute test suite locally
- Check warnings: Verify zero-warnings policy compliance
- Run pre-commit: Validate formatting and linting
- Commit changes: Only after local verification passes
Build Configuration
Environment Setup:
activates the pixi environmentpixi shell-hook- Sets MOJO_PATH and compiler flags
- Matches CI environment configuration
Build Flags:
includes current directory in path-I .
enables optimizations for release builds-O
suppresses specific warnings (use sparingly)--no-warn-unused
Test Flags:
for module resolution-I .
for verbose output-v
to run specific tests-k "pattern"
Output Format
Report build results with:
- Status - Success or failure
- Warnings - Any compiler warnings found (must be zero)
- Test Results - Passed/failed counts
- Build Time - Performance metrics
- Issues - Any errors encountered
Error Handling
| Problem | Solution |
|---|---|
| Environment not found | Run to activate |
| Module not found | Verify flag and correct paths |
| Permission denied | Check file permissions and ownership |
| Out of memory | Reduce parallel jobs or simplify test |
| Timeout | Check for infinite loops or long operations |
References
- See pixi.toml for available tasks and configuration
- See CLAUDE.md for zero-warnings policy
- See mojo-test-runner skill for advanced testing