[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AVV462VPSM49BSEHK3JMFJ":3,"skill-same:01M7AVV462VPSM49BSEHK3JMFJ":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7AVV462VPSM49BSEHK3JMFJ","hf-datasets-engineer",null,"Architect, load, stream, slice, and transform high-scale datasets using Hugging Face Datasets with Arrow zero-copy memory mapping, lazy streaming iterators, and multi-format lakehouse pipelines. Do not use for raw SQL database administration, low-level socket programming, or model weight training.","SpectreDeath\u002FBrain-Harness","SpectreDeath","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F207463416?v=4","01M7AVGR1D4X8ADT47APKGVH2Z","JL","01M7AVGR2HSGD23BA5DBTJJTVN",0,"MIT","https:\u002F\u002Fgithub.com\u002FSpectreDeath\u002FBrain-Harness\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhf-datasets-engineer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: hf-datasets-engineer\ndescription: Architect, load, stream, slice, and transform high-scale datasets using Hugging Face Datasets with Arrow zero-copy memory mapping, lazy streaming iterators, and multi-format lakehouse pipelines. Do not use for raw SQL database administration, low-level socket programming, or model weight training.\n---\n\n# Hugging Face Datasets Engineer\n\n`hf-datasets-engineer` is the authoritative agent skill for orchestrating datasets in Brain Harness. It leverages Apache Arrow zero-copy memory-mapped tables, lazy generator streams (`IterableDataset`), deterministic transformation caching (`xxhash`), and multi-format lakehouse converters (Parquet, Arrow, JSON, CSV, Lance, Iceberg) to handle terabyte-scale data pipelines without physical memory exhaustion.\n\nSee [CARD.md](CARD.md) for the companion summary card, stage progression table, and invariants checklist.\nConsult [config.default.yaml](config.default.yaml) for baseline operational budgets and timeout thresholds.\n\n---\n\n## The 5-Stage Shu-Ha-Ri Pipeline Progression\n\n```\n[1. Manifest & Schema Discovery]\n              │\n              ▼\n[2. Storage Strategy Selection (Arrow vs. Streaming)]\n              │\n              ▼\n[3. Zero-Copy Execution & Lazy Transformation]\n              │\n              ▼\n[4. Lakehouse Columnar Serialization (Parquet\u002FArrow)]\n              │\n              ▼\n[5. Deterministic xxhash Verification & Vault Commit]\n```\n\n---\n\n## 1. Manifest & Schema Discovery\n\nProbe remote hub endpoints or local dataset files to determine schema and partition boundaries without pulling raw payloads:\n\n1. **Invoke Inspection**:\n   - Inspect dataset formats, splits (`train`, `test`, `validation`), and total rows using `hf_inspect_dataset(path_or_name)`.\n   - If payload size $> 500\\text{ MB}$ or source is an unbounded web stream, flag for streaming execution mode.\n2. **Profile Column Types**:\n   - Run `hf_profile_schema(path_or_name)` to determine Arrow data types (`int64`, `double`, `string`, `struct`, `list`).\n\n> **Completion criterion**: Target dataset schema mapped, split boundaries resolved, and physical footprint evaluated.\n\n---\n\n## 2. Storage Strategy Selection\n\nSelect between memory-mapped tabular execution and lazy streaming iterators based on data topology:\n\n1. **Strategy A: Memory-Mapped Arrow (`Dataset`)**:\n   - Select when data fits on local NVMe storage and random access indexing or multi-pass training is required.\n   - Leverages zero-copy OS virtual memory paging via PyArrow.\n2. **Strategy B: Lazy Generator Streaming (`IterableDataset`)**:\n   - Select when data exceeds physical disk capacity, comes from remote HTTP streams, or requires real-time shard interleaving.\n   - Consumes $O(1)$ memory by evaluating items row-by-row or in bounded batches.\n\n> **Completion criterion**: Storage paradigm chosen and operational batch size configured.\n\n---\n\n## 3. Zero-Copy Execution & Lazy Transformation\n\nApply high-throughput transformations with bounded memory utilization:\n\n1. **Lazy Sampling**:\n   - Test transformation logic on bounded records using `hf_stream_sample(path_or_name, max_samples=100)`.\n2. **Batched Mapping & Projection**:\n   - Execute vectorized `.map()` operations with batch sizes matching operational budgets (`config.default.yaml`).\n   - Filter rows and prune unnecessary columns early to minimize Arrow buffer allocations.\n\n> **Completion criterion**: Sample batch processed and transformation pipeline verified.\n\n---\n\n## 4. Lakehouse Columnar Serialization\n\nPersist processed records into modern columnar formats:\n\n1. **Format Conversion**:\n   - Invoke `hf_convert_format(input_path, output_path, target_format=\"parquet\")` to serialize JSON\u002FCSV inputs into optimized columnar Parquet or Arrow tables.\n2. **Partitioning & Sharding**:\n   - For multi-worker distributed training, partition output into balanced shards with zero data skew.\n\n> **Completion criterion**: Columnar dataset serialized to target path with valid header and metadata.\n\n---\n\n## 5. Deterministic xxhash Verification & Vault Commit\n\nVerify transformation integrity and record epistemic provenance:\n\n1. **Cache Fingerprinting**:\n   - Compute transformation cache fingerprint to guarantee idempotency across re-runs.\n2. **Knowledge Vault Logging**:\n   - Record dataset metadata and transformation hashes to persistent state.\n\n> **Completion criterion**: 100% verification checks passed; transform execution logged with valid cache fingerprint.\n\n---\n\n## In-File Reference & Vocabulary\n\n- **Arrow Zero-Copy**: Accessing memory-mapped binary tabular data buffers directly without deserializing into Python object representations.\n- **IterableDataset**: Generator-backed lazy dataset stream evaluated on-demand with minimal memory footprint.\n- **Cache Fingerprint**: Deterministic xxhash identifying parent state, transform function bytecode, and execution arguments.\n\n---\n\n## The Visual Brief Pillar\n\nWhen completing large-scale dataset ingestion pipelines or Arrow memory-mapping operations, synthesize shard coverage, memory footprint per split, and streaming iterator throughput into a standalone interactive HTML visual brief written to `%TEMP%\\hf-datasets-\u003Ctimestamp>.html`. Render per-split memory usage as a horizontal bar chart with Arrow zero-copy annotations.\n\n## Mandatory Checkpoint Gates\n\nBefore finalizing any dataset pipeline or publishing transformed splits:\n1. **Gate 1 (Memory Mapping)**: Assert Arrow zero-copy memory mapping is active (confirm no fallback to in-memory pandas loading) for datasets > 1GB.\n2. **Gate 2 (Slice Bounds)**: Assert all `select()` and `take()` slice indices are within declared split bounds (zero index out of range errors).\n3. **Gate 3 (Streaming Correctness)**: Assert lazy streaming iterator produces correct sample count on a held-out shard before full ingestion.\n\n---\n\n## Anti-Patterns\n\n- **Eager Memory Blowout** — Calling `list(iterable_dataset)` or `to_pandas()` on multi-gigabyte datasets, causing out-of-memory kernel kills.\n- **Unsharded Stream Thrashing** — Deploying multi-worker agent swarms on a single streaming dataset without calling `.shard(num_shards, rank)`.\n- **Blind Cache Invalidation** — Using non-deterministic lambdas or timestamped closures inside `.map()` that continuously invalidate xxhash cache fingerprints.\n- **Unchecked String Casting** — Treating numerical or biological features as untyped strings instead of declaring typed Arrow\u002FFeatures schemas.\n- **Monolithic Ingestion Bottlenecks** — Downloading full remote multi-gigabyte archives before inspecting schema or testing sample batches.\n","# Hugging Face Datasets Engineer\n\n`hf-datasets-engineer` is the authoritative agent skill for orchestrating datasets in Brain Harness. It leverages Apache Arrow zero-copy memory-mapped tables, lazy generator streams (`IterableDataset`), deterministic transformation caching (`xxhash`), and multi-format lakehouse converters (Parquet, Arrow, JSON, CSV, Lance, Iceberg) to handle terabyte-scale data pipelines without physical memory exhaustion.\n\nSee [CARD.md](CARD.md) for the companion summary card, stage progression table, and invariants checklist.\nConsult [config.default.yaml](config.default.yaml) for baseline operational budgets and timeout thresholds.\n\n---\n\n## The 5-Stage Shu-Ha-Ri Pipeline Progression\n\n```\n[1. Manifest & Schema Discovery]\n              │\n              ▼\n[2. Storage Strategy Selection (Arrow vs. Streaming)]\n              │\n              ▼\n[3. Zero-Copy Execution & Lazy Transformation]\n              │\n              ▼\n[4. Lakehouse Columnar Serialization (Parquet\u002FArrow)]\n              │\n              ▼\n[5. Deterministic xxhash Verification & Vault Commit]\n```\n\n---\n\n## 1. Manifest & Schema Discovery\n\nProbe remote hub endpoints or local dataset files to determine schema and partition boundaries without pulling raw payloads:\n\n1. **Invoke Inspection**:\n   - Inspect dataset formats, splits (`train`, `test`, `validation`), and total rows using `hf_inspect_dataset(path_or_name)`.\n   - If payload size $> 500\\text{ MB}$ or source is an unbounded web stream, flag for streaming execution mode.\n2. **Profile Column Types**:\n   - Run `hf_profile_schema(path_or_name)` to determine Arrow data types (`int64`, `double`, `string`, `struct`, `list`).\n\n> **Completion criterion**: Target dataset schema mapped, split boundaries resolved, and physical footprint evaluated.\n\n---\n\n## 2. Storage Strategy Selection\n\nSelect between memory-mapped tabular execution and lazy streaming iterators based on data topology:\n\n1. **Strategy A: Memory-Mapped Arrow (`Dataset`)**:\n   - Select when data fits on local NVMe storage and random access indexing or multi-pass training is required.\n   - Leverages zero-copy OS virtual memory paging via PyArrow.\n2. **Strategy B: Lazy Generator Streaming (`IterableDataset`)**:\n   - Select when data exceeds physical disk capacity, comes from remote HTTP streams, or requires real-time shard interleaving.\n   - Consumes $O(1)$ memory by evaluating items row-by-row or in bounded batches.\n\n> **Completion criterion**: Storage paradigm chosen and operational batch size configured.\n\n---\n\n## 3. Zero-Copy Execution & Lazy Transformation\n\nApply high-throughput transformations with bounded memory utilization:\n\n1. **Lazy Sampling**:\n   - Test transformation logic on bounded records using `hf_stream_sample(path_or_name, max_samples=100)`.\n2. **Batched Mapping & Projection**:\n   - Execute vectorized `.map()` operations with batch sizes matching operational budgets (`config.default.yaml`).\n   - Filter rows and prune unnecessary columns early to minimize Arrow buffer allocations.\n\n> **Completion criterion**: Sample batch processed and transformation pipeline verified.\n\n---\n\n## 4. Lakehouse Columnar Serialization\n\nPersist processed records into modern columnar formats:\n\n1. **Format Conversion**:\n   - Invoke `hf_convert_format(input_path, output_path, target_format=\"parquet\")` to serialize JSON\u002FCSV inputs into optimized columnar Parquet or Arrow tables.\n2. **Partitioning & Sharding**:\n   - For multi-worker distributed training, partition output into balanced shards with zero data skew.\n\n> **Completion criterion**: Columnar dataset serialized to target path with valid header and metadata.\n\n---\n\n## 5. Deterministic xxhash Verification & Vault Commit\n\nVerify transformation integrity and record epistemic provenance:\n\n1. **Cache Fingerprinting**:\n   - Compute transformation cache fingerprint to guarantee idempotency across re-runs.\n2. **Knowledge Vault Logging**:\n   - Record dataset metadata and transformation hashes to persistent state.\n\n> **Completion criterion**: 100% verification checks passed; transform execution logged with valid cache fingerprint.\n\n---\n\n## In-File Reference & Vocabulary\n\n- **Arrow Zero-Copy**: Accessing memory-mapped binary tabular data buffers directly without deserializing into Python object representations.\n- **IterableDataset**: Generator-backed lazy dataset stream evaluated on-demand with minimal memory footprint.\n- **Cache Fingerprint**: Deterministic xxhash identifying parent state, transform function bytecode, and execution arguments.\n\n---\n\n## The Visual Brief Pillar\n\nWhen completing large-scale dataset ingestion pipelines or Arrow memory-mapping operations, synthesize shard coverage, memory footprint per split, and streaming iterator throughput into a standalone interactive HTML visual brief written to `%TEMP%\\hf-datasets-\u003Ctimestamp>.html`. Render per-split memory usage as a horizontal bar chart with Arrow zero-copy annotations.\n\n## Mandatory Checkpoint Gates\n\nBefore finalizing any dataset pipeline or publishing transformed splits:\n1. **Gate 1 (Memory Mapping)**: Assert Arrow zero-copy memory mapping is active (confirm no fallback to in-memory pandas loading) for datasets > 1GB.\n2. **Gate 2 (Slice Bounds)**: Assert all `select()` and `take()` slice indices are within declared split bounds (zero index out of range errors).\n3. **Gate 3 (Streaming Correctness)**: Assert lazy streaming iterator produces correct sample count on a held-out shard before full ingestion.\n\n---\n\n## Anti-Patterns\n\n- **Eager Memory Blowout** — Calling `list(iterable_dataset)` or `to_pandas()` on multi-gigabyte datasets, causing out-of-memory kernel kills.\n- **Unsharded Stream Thrashing** — Deploying multi-worker agent swarms on a single streaming dataset without calling `.shard(num_shards, rank)`.\n- **Blind Cache Invalidation** — Using non-deterministic lambdas or timestamped closures inside `.map()` that continuously invalidate xxhash cache fingerprints.\n- **Unchecked String Casting** — Treating numerical or biological features as untyped strings instead of declaring typed Arrow\u002FFeatures schemas.\n- **Monolithic Ingestion Bottlenecks** — Downloading full remote multi-gigabyte archives before inspecting schema or testing sample batches.\n",{"name":5,"description":7},"main","eff3b00e36d1d233ad4a4389605c82fbfa0326d3",".agents\u002Fskills\u002Fhf-datasets-engineer","https:\u002F\u002Fgithub.com\u002FSpectreDeath\u002FBrain-Harness","https:\u002F\u002Fgithub.com\u002FSpectreDeath","I'm here to manage stress so I wouldn't expect earth shattering break throughs I'm just an enthusiast that likes making stuff. ","2026-11-15 05:32:58",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add SpectreDeath\u002FBrain-Harness --skill hf-datasets-engineer",{"tool":37,"command":38},"bunx","bunx skills add SpectreDeath\u002FBrain-Harness --skill hf-datasets-engineer",{"tool":40,"command":41},"pnpm","pnpm dlx skills add SpectreDeath\u002FBrain-Harness --skill hf-datasets-engineer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSpectreDeath\u002FBrain-Harness\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhf-datasets-engineer\u002FSKILL.md",true,[45,51,55],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"CARD.md","REFERENCE","参考文档",3264,"https:\u002F\u002Fgithub.com\u002FSpectreDeath\u002FBrain-Harness\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhf-datasets-engineer\u002FCARD.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"config.default.yaml",501,"https:\u002F\u002Fgithub.com\u002FSpectreDeath\u002FBrain-Harness\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhf-datasets-engineer\u002Fconfig.default.yaml",{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"scripts\u002Fdatasets_engine.py","SCRIPT","脚本",7229,"https:\u002F\u002Fgithub.com\u002FSpectreDeath\u002FBrain-Harness\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhf-datasets-engineer\u002Fscripts\u002Fdatasets_engine.py",[62,69,76,83,90,97],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7E0W6FR68J2N9CXCZTAQJFX","ui-behavior-primitive-architect","Architect, audit, and verify zero-dependency headless UI behavior primitives, WebMCP agent bridges, WAI-ARIA\u002FSSR\u002FRTL tri-modal checks, and framework expert routing. Do not use for static CSS theme styling or backend database migrations.","https:\u002F\u002Fgithub.com\u002FSpectreDeath\u002FBrain-Harness\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-behavior-primitive-architect\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7E0VZ7JQNW34G271DENFGYP","trustgraph-ontology-governor","Govern knowledge graphs, SHACL-AF triple policies, OntologyRAG subclass validation, PROV-O dual named graphs, and Laya entropy decision scoring. Do not use for relational SQL queries or generic web scraping.","https:\u002F\u002Fgithub.com\u002FSpectreDeath\u002FBrain-Harness\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftrustgraph-ontology-governor\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7E0VQ6Z7R45Q8QAZ4MT39EK","shim-harness-governor","Govern universal CLI agent loops, 4-tier tool permissions, ancestor-symlink workspace sandboxes, deterministic-first command routing, collision-safe MCP namespacing, and layered skill loading. Do not use for static UI styling or external SQL analytics.","https:\u002F\u002Fgithub.com\u002FSpectreDeath\u002FBrain-Harness\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fshim-harness-governor\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7E0VC18NMP1QBSRJ3TPQ7MB","graphiti-zep-memory-governor","Govern bi-temporal knowledge graphs with Graphiti future-edge clamping, MinHash\u002FLSH entity dedup, RRF\u002FMMR reranking, and Zep typed ontologies. Do not use for static SQL joins or generic web crawling.","https:\u002F\u002Fgithub.com\u002FSpectreDeath\u002FBrain-Harness\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgraphiti-zep-memory-governor\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7E0V12ABE1RW3ZRCST8VH5Z","agora-mcp-workbench-architect","Architect, audit, and orchestrate Agora Workbench MCP servers, loopback sidecars, unified state graphs, gateway\u002Fdispatcher connectors, and policy-enforced data lakes. Do not use for static frontend CSS styling or non-MCP desktop GUI automation.","https:\u002F\u002Fgithub.com\u002FSpectreDeath\u002FBrain-Harness\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagora-mcp-workbench-architect\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7BFYG6QT3484VC57TZ19V7P","skill-eval-assurance-runner","Evaluate and assure agent skills using small-N Wilson confidence intervals, unbiased pass^k reliability, deterministic trajectory graders, preflight boundary honesty, and sealed digest verification. Do not use for subjective prose review or unconstrained production deployment.","https:\u002F\u002Fgithub.com\u002FSpectreDeath\u002FBrain-Harness\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fskill-eval-assurance-runner\u002FSKILL.md",[],[]]