flatten
Data flatten reference — nested-to-flat conversion, JSON/array flattening, dot-notation keys, depth control. Use when transforming hierarchical data into flat structures or normalizing nested records.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bytesagain/flattenFlatten — Data Flattening Reference
Quick-reference skill for flattening nested data structures into flat key-value pairs or single-level arrays.
When to Use
- Converting deeply nested JSON into flat dot-notation objects
- Flattening multi-dimensional arrays into single-level lists
- Normalizing hierarchical API responses for tabular storage
- Preparing nested data for CSV export or database insertion
- Controlling flatten depth for partial flattening
Commands
intro
scripts/script.sh intro
Overview of data flattening — what it means, why it matters, core concepts.
json
scripts/script.sh json
JSON object flattening — dot-notation keys, bracket notation, separator options.
array
scripts/script.sh array
Array flattening — multi-dimensional to single-level, depth-limited flatten.
algorithms
scripts/script.sh algorithms
Flattening algorithms — recursive vs iterative, stack-based, BFS approaches.
languages
scripts/script.sh languages
Flatten implementations across languages — JavaScript, Python, Go, Bash, SQL.
edgecases
scripts/script.sh edgecases
Edge cases — circular references, null values, mixed types, empty containers.
unflatten
scripts/script.sh unflatten
Reverse operation — reconstructing nested structures from flat key-value pairs.
patterns
scripts/script.sh patterns
Real-world patterns — ETL pipelines, log normalization, config merging.
help
scripts/script.sh help
version
scripts/script.sh version
Configuration
| Variable | Description |
|---|---|
FLATTEN_DIR | Data directory (default: ~/.flatten/) |
Powered by BytesAgain | bytesagain.com | [email protected]
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bytesagain-flatten": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
scrapebadger
Web scraping platform — Twitter/X data, Vinted marketplace, and general web scraping API
aethercore
AetherCore v3.3.4 - Security-focused final release. High-performance JSON optimization with universal smart indexing for all file types. All security review issues fixed, ready for production.
Spreadsheet & Data Wrangling Master
Complete spreadsheet methodology — data cleanup, transformation, analysis, dashboards, automation, and reporting. Works with CSV, Excel, Google Sheets, or any tabular data. Use when the user needs to clean messy data, build reports, create dashboards, automate recurring spreadsheet tasks, or transform data between formats.
dataset-intake-auditor
在新数据集接入前检查字段、单位、缺失率、异常值与可用性。;use for data, dataset, audit workflows;do not use for 伪造统计结果, 替代正式数据治理平台.
supermetrics
Official Supermetrics skill. Query marketing data from 100+ platforms including Google Analytics, Meta Ads, Google Ads, and LinkedIn. Requires API key.