stacks-build

Automate Stacks framework compilation and packaging with Bun and Vite.

2|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/bughq/bughq --skill stacks-build-bughq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacks-build
Source: https://github.com/bughq/bughq/tree/main/.claude/skills/stacks-build
Command: npx skills add https://github.com/bughq/bughq --skill stacks-build-bughq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bun-plugin-dtsx, @babel/traverse.

What problem does it solve?

This Skill simplifies the complex, multi-stage build process for the Stacks framework, ensuring consistent compilation of component libraries, CLI binaries, server Docker images, and documentation.

Core Features & Use Cases

  • Unified Build Orchestration: Manage the entire framework build pipeline, including CLI, core packages, and server containers, through a single interface.
  • Automated Pipeline Stages: Handles complex tasks like import path mutation, export cleanup, and Docker image generation automatically.
  • Use Case: When preparing a new release of the framework, use this Skill to trigger a full build of all core packages and the CLI binary, ensuring all dependencies and types are correctly generated and validated.

Quick Start

Use the stacks-build skill to execute a full build of the framework core and CLI binary.

Frequently Asked Questions about stacks-build

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate TypeScript compilation and Docker image builds for a framework?

Automating TypeScript compilation and Docker builds requires orchestrating multi-stage pipelines for AST traversal, import path rewriting, and containerization. Using Bun and Vite streamlines environment-specific build configurations and declaration generation for component libraries and CLI binaries.

What's the best way to rewrite import paths during a TypeScript build process?

Rewriting import paths during a TypeScript build is handled through AST traversal and automated pipeline mutation. This process cleans up exports and rewrites paths automatically, ensuring consistent compilation across component libraries and CLI binaries without manual file edits.

Do I need Bun and Vite to manage TypeScript declaration generation?

Yes, Bun and Vite are required to manage TypeScript compilation and declaration generation. They provide the foundational environment for executing complex build pipelines and validating environment-specific build configurations for component libraries and CLI binaries.

Can I build component libraries and CLI binaries through a single interface?

Yes, unified build orchestration allows you to manage the entire framework build pipeline, including component libraries, CLI binaries, and server Docker images, through a single interface. This simplifies triggering full builds and validating all dependencies and types correctly.

How does multi-stage containerization work for server Docker images?

Multi-stage containerization for server Docker images is automated as part of the build pipeline. It handles Docker image generation alongside TypeScript compilation and import path mutation, ensuring server containers are correctly packaged with environment-specific build configurations.

Why does my framework build pipeline fail during export cleanup?

Build pipeline failures during export cleanup often stem from incorrect AST traversal or improperly configured import paths. Automating these pipeline stages ensures export cleanup and dependency generation occur correctly, preventing manual configuration errors during framework releases.