stacks-objects

Merge, pick, and transform TypeScript objects with strict key checking.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @stacksjs/types, @stacksjs/utils, @stacksjs/validation.

What problem does it solve?

This Skill addresses the complexity and runtime risks associated with manual object manipulation in TypeScript, providing a suite of robust, type-safe utilities for merging, filtering, and transforming data structures.

Core Features & Use Cases

  • Deep Merging: Safely combine nested objects while maintaining type integrity.
  • Data Transformation: Efficiently map, pick, and clean object properties to sanitize data before processing.
  • Use Case: When handling complex configuration objects or API responses, use these utilities to merge default settings with user overrides or to strip undefined values from payloads before sending them to a database.

Quick Start

Use the stacks-objects skill to deep merge the userConfig object into the defaultSettings object and then remove any undefined properties from the result.

Frequently Asked Questions about stacks-objects

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

FAQPage Schema
How do I deep merge nested objects in TypeScript without losing type safety?

Deep merging nested objects in TypeScript is handled by safely combining structures while maintaining strict type integrity. This prevents runtime risks by ensuring merged configurations, such as default settings with user overrides, remain fully typed throughout the operation.

What is the best way to remove undefined values from an object before sending it to a database?

Removing undefined values from an object sanitizes the payload by cleaning properties before database processing. This data transformation ensures reliable state management by stripping invalid entries and mapping the remaining keys to valid values.

How do I pick specific properties from a configuration object with strict key checking?

Picking specific properties from a configuration object uses strict key checking to safely extract only the required fields. This utility facilitates clean data handling by ensuring the selected keys exist and match the expected TypeScript types.

Does this object manipulation utility work within the Stacks framework?

This object manipulation utility works within the Stacks framework by providing type-safe transformation functions. It integrates directly with the Stacks ecosystem to offer reliable state management and strict data handling for application logic.

Why should I use a dedicated utility for object transformation instead of manual merging?

Using a dedicated utility for object transformation prevents the complexity and runtime risks associated with manual merging. It provides robust type-safe utilities for filtering and transforming data structures, satisfying requirements for reliable application logic.