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
- 参考文档agents/openai.yaml218 B
- 参考文档resources/implementation-playbook.md21.9 KB
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
-
Read manifests to understand existing data:
data/DATA_MANIFEST.md— existing datasetsdata/raw/— current raw data directories
-
Consult ingestion conventions: Read
skills/core/references/data-ingest-conventions.mdfor the full workflow, metadata requirements, large file handling, and manifest entry checklist. -
Check for domain-specific validation:
- Read
.living/conventions/ACTIVE_CONVENTIONS.yamlto 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.
- Read
-
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.
-
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.
-
Generate metadata in
data/metadata/[dataset-name]/:schema.yaml— column descriptions, types, unitsprovenance.md— full source details, acquisition method, contactsummary_stats.md— row counts, column distributions, missing data summary- Use the templates at
skills/core/templates/schema.yaml,skills/core/templates/provenance.md, andskills/core/templates/summary_stats.mdas starting points. - Required fields: source, date acquired, schema/column descriptions, known issues, access restrictions.
-
Update
data/DATA_MANIFEST.mdwith a new entry usingskills/core/templates/dataset-manifest-entry.yaml. -
Log decisions: If any choices were made during ingestion (excluding records, choosing formats, handling encoding issues), append to
.living/decisions.md. -
Run the post-action hook protocol after ingestion is complete (see
/mycelium:corefor 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. Derivemitigation_typeby the rule inskills/core/templates/learning-entry.md:structuralif a shipped test, assertion, type constraint, frozenset, or schema validation enforces it; otherwiseconventionif a.living/conventions.mdentry covers it; otherwiseambient-awareness. - Run
skills/core/scripts/validate_structure.py
- Update
04 同仓库更多 Skills
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".
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.
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.
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.
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.
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.