AGENT SKILL

ingest

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, deleting data, downloading URLs, or editing code.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 72
Forks
2

01 前言 Front Matter

name
ingest
description
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, deleting data, downloading URLs, or editing code.

02 资源文件 2

03 SKILL.md 正文

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:

    • data/DATA_MANIFEST.md — existing datasets
    • data/raw/ — current raw data directories
  2. Consult ingestion conventions: Read skills/core/references/data-ingest-conventions.md for the full workflow, metadata requirements, large file handling, and manifest entry checklist.

  3. Check for domain-specific validation:

    • Read .living/conventions/ACTIVE_CONVENTIONS.yaml to see what's installed.
    • If a domain convention is installed (e.g., bioinformatics, image-analysis), consult its conventions for domain-specific validation requirements (e.g., QC metrics for sequencing data, format validation for images).
    • Domain conventions may add required metadata fields or validation steps beyond the standard workflow.
  4. Determine data type, source, and format:

    • Ask the user if not already clear: What is the data? Where did it come from? What format is it in?
    • For large files (too large for git), plan for .gitignore + download documentation.
  5. Place raw data in data/raw/[dataset-name]/:

    • Each dataset gets its own subdirectory.
    • Include a documentation file named in UPPER_SNAKE_CASE of the folder name (e.g., PATIENT_COHORT_2024.md).
    • Raw data is immutable — never modify files after initial placement.
  6. Generate metadata in data/metadata/[dataset-name]/:

    • schema.yaml — column descriptions, types, units
    • provenance.md — full source details, acquisition method, contact
    • summary_stats.md — row counts, column distributions, missing data summary
    • Use the templates at skills/core/templates/schema.yaml, skills/core/templates/provenance.md, and skills/core/templates/summary_stats.md as starting points.
    • Required fields: source, date acquired, schema/column descriptions, known issues, access restrictions.
  7. Update data/DATA_MANIFEST.md with a new entry using skills/core/templates/dataset-manifest-entry.yaml.

  8. Log decisions: If any choices were made during ingestion (excluding records, choosing formats, handling encoding issues), append to .living/decisions.md.

  9. Run the post-action hook protocol after ingestion is complete (see /mycelium:core for the full protocol):

    • Update data/DATA_MANIFEST.md (done in step 7)
    • Update the dataset documentation file
    • Log decisions to .living/decisions.md
    • Log learnings to .living/learnings.md. Derive mitigation_type by the rule in skills/core/templates/learning-entry.md: structural if a shipped test, assertion, type constraint, frozenset, or schema validation enforces it; otherwise convention if a .living/conventions.md entry covers it; otherwise ambient-awareness.
    • Run skills/core/scripts/validate_structure.py

04 同仓库更多 Skills

arjunrajlaboratory
arjunrajlaboratory/mycelium

transfer

Cross-pollinate learnings across Science subprojects by scanning recent .living/learnings.md entries and identifying actionable knowledge transfers. Use when user says "transfer knowledge", "cross-pollinate", "sync learnings", or "knowledge transfer".

★ 72
arjunrajlaboratory
arjunrajlaboratory/mycelium

review

Review or audit analytical code and scientific changes in statistics, ML, bioinformatics, or data pipelines. Use for PRs, commits, diffs, sanity checks, correctness questions, pre-merge review, tripwire testing, or conversational grill mode. Consult the bundled statistical, leakage, bioinformatics, documentation, LLM-failure, and code-quality checklists; synthesize prioritized findings. Do not use for writing new analysis, reports, brainstorming, project initialization, or pure software review with no analytical component.

★ 72
arjunrajlaboratory
arjunrajlaboratory/mycelium

report

Create a shareable report — a PDF, or a self-contained HTML report with a companion slide deck — a manuscript section, or a structured writeup from completed Mycelium analyses. Load the project's report templates, provenance, section guidance, and QC checklist. Use when the user wants a document artifact for collaborators or publication. Do not use for conversational explanation, standalone figures, performing analysis, ingestion, setup, or brainstorming.

★ 72
arjunrajlaboratory
arjunrajlaboratory/mycelium

lifecycle-audit

Run a black-box Mycelium lifecycle smoke test through a real Claude Code or Codex CLI task. Use after plugin installation, hook, SessionStart, PostToolUse, Stop, activity tracking, handoff, or data-lineage changes; when automatic hooks appear not to fire; or before merging cross-host lifecycle work. Verify installed-build identity, natural dispatch, state transitions, positive and negative probes, and scientific-tree isolation. Do not use as a substitute for unit tests or for ordinary scientific analysis.

★ 72
arjunrajlaboratory
arjunrajlaboratory/mycelium

ideas

Brainstorm research ideas using installed persona and ideation conventions. Use for fresh perspectives, creative angles, new analysis directions, expert viewpoints, "what are we missing?", or other open-ended exploration. Do not use for a defined analysis, code fix, project setup, or data ingestion task.

★ 72
arjunrajlaboratory
arjunrajlaboratory/mycelium

harden

Ship one learning's structural_mitigation_candidate as a real test, then mark the learning's mitigation_type structural. Picks a learning in .living/learnings.md that is still ambient-awareness but names a concrete check, writes the test in the repository's own test setup, proves it fails when the learning's problem is present and passes on the current code, and updates only that entry after the user confirms. Use when the user asks to harden, enforce, or turn a learning, gotcha, or lesson into a test or structural mitigation. Do not use for recording a new learning, promoting learnings to conventions, adding checks inside analysis code, or changing Mycelium itself.

★ 72