reshard-c4-data

Implement reversible data resharding with hierarchical constraints and round-trip reconstruction.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/Zurybr/lefarma-skills --skill reshard-c4-data-zurybr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reshard-c4-data
Source: https://github.com/Zurybr/lefarma-skills/tree/main/letta/benchmarks/trajectory-only/reshard-c4-data
Command: npx skills add https://github.com/Zurybr/lefarma-skills --skill reshard-c4-data-zurybr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of reorganizing large datasets into smaller, manageable shards while strictly adhering to constraints like maximum files per directory and maximum file size, ensuring perfect data reconstruction.

Core Features & Use Cases

  • Hierarchical Sharding: Implements nested directory structures to meet item count limits at every level.
  • Size Constraint Handling: Splits large files into manageable chunks, tracking them via metadata.
  • Reversible Transformation: Guarantees that compressed data can be perfectly decompressed back to its original state.
  • Use Case: When preparing a massive dataset for distributed training, you need to ensure no single directory exceeds 1000 files and no individual file is larger than 100MB. This Skill provides the logic to achieve this while maintaining a full audit trail for reconstruction.

Quick Start

Use the reshard-c4-data skill to reorganize the dataset located at '/data/raw' into a new structure at '/data/processed' ensuring no directory has more than 30 files and no file exceeds 15MB.

Frequently Asked Questions about reshard-c4-data

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

FAQPage Schema
How do I split a large dataset into smaller shards with directory and file size limits?

Dataset sharding with constraints uses a hierarchical directory structure to enforce maximum file counts per folder, while large files are split into chunks tracked via metadata. This methodology reorganizes datasets while maintaining perfect reconstruction capability.

How does reversible data resharding guarantee perfect round-trip reconstruction?

Reversible data resharding guarantees perfect round-trip reconstruction by using paired compress and decompress operations. The compress phase records hierarchical structure and file splitting metadata, which the decompress phase reads to accurately rebuild the original dataset.

What is the best way to prepare a massive dataset for distributed training with file size constraints?

The best way to prepare a massive dataset for distributed training with file size constraints is applying a resharding methodology that creates nested directories and splits large files. This enforces limits like 1000 files per directory or 100MB maximum file size while preserving a full audit trail.

Can I use this data decompression methodology to rebuild datasets without data loss?

Yes, you can use this data decompression methodology to rebuild datasets without data loss. The system requires paired compress and decompress scripts that preserve data integrity through perfect round-trip reconstruction using tracked hierarchical metadata.

What are the limitations of hierarchical data sharding for reorganizing datasets?

A limitation of hierarchical data sharding is the strict requirement for paired compress and decompress operations. You must maintain the associated metadata audit trail generated during compression to successfully reconstruct the original dataset structure without loss.