stacks-utils

Provide utility functions for Stacks framework development in TypeScript and Bun.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @stacksjs/utils, @stacksjs/config, @stacksjs/browser, @stacksjs/storage.

What problem does it solve?

This Skill provides a unified, high-performance library of utility functions that eliminate the need for fragmented dependencies, ensuring consistency across Stacks-based development environments.

Core Features & Use Cases

  • Data Transformation: Includes a powerful Pipeline class for chaining operations and deep object merging capabilities.
  • System & Terminal Tools: Offers robust ANSI color output, byte formatting, and project initialization helpers.
  • Development Utilities: Provides native Bun-based YAML parsing, semver version comparison, and dynamic method registration via Macroable.

Quick Start

Use the stacks-utils skill to perform a deep merge on two configuration objects or to format a byte size for display in your terminal output.

Frequently Asked Questions about stacks-utils

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

FAQPage Schema
How do I perform a deep merge of configuration objects in a TypeScript project?

Deep merge of configuration objects in TypeScript is handled by stacking utility functions that recursively combine nested properties, ensuring consistent project initialization and configuration building across Stacks environments without fragmented dependencies.

Can I chain data transformation operations using a pipeline in Bun?

Chaining data transformation operations in Bun is supported through a dedicated Pipeline class that sequences operations, enabling structured pipeline chaining for complex data processing tasks within TypeScript development environments.

What is the best way to format terminal output with ANSI colors in a Stacks project?

Formatting terminal output with ANSI colors in a Stacks project is achieved using built-in system and terminal tools that provide robust color output and byte formatting, ensuring consistent command-line presentation across platforms.

Does the stacks-utils library support native YAML parsing for Bun environments?

Native YAML parsing for Bun environments is fully supported within the development utilities, offering high-performance configuration parsing alongside semver version comparison and dynamic method registration via Macroable.

How do I compare semantic versions in TypeScript without adding extra dependencies?

Comparing semantic versions in TypeScript is accomplished using built-in semver version comparison utilities, eliminating the need for extra dependencies and ensuring consistent version evaluation across Stacks-based development environments.

When should I use deep object merging instead of shallow copying for project initialization?

Deep object merging should be used during project initialization when you need to recursively combine nested configuration objects, ensuring no default settings are lost, whereas shallow copying only merges top-level properties.