Automate skill building and packing in CI/CD pipeline

Summary

Automatically build and pack skills into dist/*.skill files on every push to the main branch using the existing GitLab CI/CD pipeline.

Background

Currently, skills need to be manually built and packaged. This should be automated as part of the CI/CD pipeline to ensure:

  • Skills are always built with the latest code changes
  • Consistent build process across all environments
  • Reduced manual effort and potential for human error
  • Skills are ready for distribution immediately after merge

Requirements

  • Add a build job to .gitlab-ci.yml that triggers on push to main
  • Build all skills in the repository
  • Package skills into .skill files in the dist/ directory
  • Ensure the build job runs after tests pass
  • Consider caching dependencies to speed up builds
  • Add artifacts configuration to preserve built .skill files

Acceptance Criteria

  • Pipeline automatically builds skills on every push to main
  • Built .skill files are available in dist/ directory
  • Build artifacts are accessible from the pipeline UI
  • Build process is documented in the pipeline configuration
  • Pipeline fails if skill building fails

Technical Notes

The pipeline should:

  1. Install necessary dependencies
  2. Run the skill build/pack command
  3. Store the resulting .skill files as artifacts
  4. Make artifacts available for download or deployment

This automation will improve the development workflow and ensure skills are always up-to-date with the latest code changes.