xiaohongshu
xiaohongshu
io-utilities
Guide for using IO utilities in speedy_utils, including fast JSONL reading, multi-format loading, and file serialization.
Full skill instructions
This skill provides comprehensive guidance for using the IO utilities in speedy_utils.
Use this skill when you need to:
speedy_utils installed.orjson: For faster JSON parsing.zstandard: For .zst file support.pandas: For CSV/TSV loading.pyarrow: For faster CSV reading with pandas.fast_load_jsonl)orjson if available for speed.tqdm.load_by_ext)data/*.json) and lists of files.do_memoize=True.dump_json_or_pickle, load_json_or_pickle)Read a large compressed JSONL file line by line.
from speedy_utils import fast_load_jsonl
# Iterates lazily, low memory usage
for item in fast_load_jsonl('large_data.jsonl.gz', progress=True):
process(item)
Load a file without worrying about the format.
from speedy_utils import load_by_ext
data = load_by_ext('config.json')
df = load_by_ext('data.csv')
items = load_by_ext('dataset.pkl')
Load multiple files in parallel.
from speedy_utils import load_by_ext
# Returns a list of results, one for each file
all_data = load_by_ext('logs/*.jsonl')
Save data to disk, creating directories as needed.
from speedy_utils import dump_json_or_pickle
data = {"key": "value"}
dump_json_or_pickle(data, 'output/processed/result.json')
Prefer JSONL for Large Datasets:
fast_load_jsonl for datasets that don't fit in memory..jsonl.gz or .jsonl.zst) to save space.Use load_by_ext for Scripts:
load_by_ext to be flexible.Error Handling:
fast_load_jsonl has an on_error parameter (raise, warn, skip) to handle malformed lines gracefully.Performance:
orjson for significantly faster JSON operations.load_by_ext uses pyarrow engine for CSVs if available, which is much faster.load_by_ext loads the entire file into memory. Use fast_load_jsonl for streaming.load_by_ext with glob patterns loads all matching files into memory at once (in a list). Be careful with massive datasets.xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience