stacks-arrays

Perform statistical analysis and array manipulation in TypeScript.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the complexity of performing robust array operations, statistical analysis, and data manipulation in TypeScript environments without reinventing standard utility logic.

Core Features & Use Cases

  • Statistical Analysis: Perform population-based calculations like average, median, mode, variance, and z-scores.
  • Array Manipulation: Simplify complex tasks such as flattening nested arrays, partitioning data based on filters, and performing safe reordering or deduplication.
  • Use Case: When processing a dataset of user metrics, use this Skill to quickly calculate the standard deviation and partition the data into specific segments for reporting.

Quick Start

Use the stacks-arrays skill to calculate the average and standard deviation of the provided numeric array.

Frequently Asked Questions about stacks-arrays

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

FAQPage Schema
How do I calculate median and standard deviation for numeric arrays in TypeScript?

To calculate median and standard deviation for numeric arrays in TypeScript, you can use statistical analysis functions that compute population-based aggregations like average, variance, and z-scores directly on your dataset. This avoids writing manual mathematical logic.

What's the best way to flatten nested arrays and partition data in TypeScript?

The best way to flatten nested arrays and partition data is to use utility functions that perform recursive flattening and conditional partitioning based on your specific filters, simplifying complex data manipulation tasks.

Does this array manipulation utility work within the Stacks framework?

Yes, this array manipulation utility works within the Stacks framework, satisfying requirements for high-performance array processing and mathematical computation in TypeScript environments without external dependencies.

Can I partition a dataset of user metrics into specific segments for reporting?

You can partition a dataset of user metrics into specific segments for reporting by applying conditional partitioning logic to filter and segment the data after performing initial statistical aggregations.

Why should I use a dedicated array utility skill instead of writing custom data manipulation logic?

You should use a dedicated array utility skill to avoid the complexity of reinventing standard utility logic for robust array operations and statistical analysis, ensuring high-performance data manipulation in your TypeScript environment.

What statistical functions are available for processing numeric datasets?

Available statistical functions for processing numeric datasets include average, median, mode, variance, and z-scores, providing a comprehensive suite for population-based calculations and mathematical computation.