Ingest

From arjunrajlaboratory/mycelium · View interactive version

Ingest is an AI agent skill from the GitHub repository arjunrajlaboratory/mycelium. Add or import files and datasets into a Mycelium project with metadata, provenance, validation, and DATA_MANIFEST updates. Use for collaborator or facility outputs and formats such as CSV, FASTQ, XLSX, TIFF, JSON, FCS, TSV, or images. Do not use for analyzing existing data, listing datasets, deletin

How to use this skill

Skill file

Mycelium — Ingest

Resolve bundled skills/ and network/ paths relative to the Mycelium plugin

root—the ancestor containing .codex-plugin/ and .claude-plugin/. Resolve

data and .living/ paths relative to the user's repository.

Pull a new dataset into the analytical framework, ensuring it is properly documented, validated, and registered.

Steps

  1. Read manifests to understand existing data:
  1. Consult ingestion conventions: Read skills/core/references/data-ingest-conventions.md for the full workflow, metadata requirements, large file handling, and manifest entry checklist.
  1. Check for domain-specific validation:
  1. Determine data type, source, and format:
  1. Place raw data in data/raw/[dataset-name]/:
  1. Generate metadata in data/metadata/[dataset-name]/:

python3 "$(cat .mycelium/plugin-root)/skills/core/scripts/data_contract_check.py" --ledger data/metadata/[dataset-name]/samples.ledger.json

The run checks unique sample ids, that each level nests in the one above it, at least two replication units per group, each batch variable against the group, and any declared pairing, including each batch variable against the within-unit contrast (a warning in this release). Fix a block in the ledger or the data, or record it as a known issue. Never loosen the spec to make it pass. A batch variable listed as a replication level at or below the unit is a spec error: nested preparation instances belong in nesting, and calendar batches belong in batch.

  1. Update data/DATA_MANIFEST.md with a new entry using skills/core/templates/dataset-manifest-entry.yaml.
  1. Log decisions: If any choices were made during ingestion (excluding records, choosing formats, handling encoding issues), append to .living/decisions.md.
  1. Run the post-action hook protocol after ingestion is complete (see /mycelium:core for the full protocol):
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.