manage-ingredient-hierarchy

Import ingredient family hierarchies from MediaIngredientMech into CultureMech recipes.

10|3|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/CultureBotAI/CultureMech --skill manage-ingredient-hierarchy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-ingredient-hierarchy
Source: https://github.com/CultureBotAI/CultureMech/tree/main/.claude/skills/manage-ingredient-hierarchy
Command: npx skills add https://github.com/CultureBotAI/CultureMech --skill manage-ingredient-hierarchy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents ingredient hierarchy drift by importing a canonical parent/child structure, variant types, and functional roles from MediaIngredientMech into CultureMech recipe data.

Core Features & Use Cases

  • Hierarchy enrichment: Imports ingredient_families.yaml and matches CultureMech ingredients to add parent_ingredient and variant_type.
  • Role assignment: Applies ingredient_roles.yaml (with optional inheritance) to populate ingredient role fields for semantic querying.
  • Validation and reporting: Runs structural checks (valid parents, no orphans/cycles, valid enums) and generates coverage statistics and Markdown reports.
  • Use case: After ingesting new culture media recipes, integrate MediaIngredientMech’s ingredient taxonomy so hydrated/salt variants and functional roles become searchable and graph-ready.

Quick Start

Run a dry-run hierarchy import by pointing the Skill to your local MediaIngredientMech checkout and a CultureMech YAML directory, then limit processing to a small sample for verification.

Frequently Asked Questions about manage-ingredient-hierarchy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enrich YAML recipes with ingredient hierarchy and functional roles?

You can enrich YAML recipes by importing canonical parent-child structures, variant types, and functional roles from MediaIngredientMech to populate fields like parent_ingredient, variant_type, and role for semantic querying and graph readiness.

What is ingredient hierarchy drift and how do I prevent it in culture media datasets?

Ingredient hierarchy drift occurs when recipe data loses consistent parent-child linkages and variant types. Prevent it by importing a canonical ingredient taxonomy from MediaIngredientMech to ensure hydrated or salt variants remain searchable and structurally validated.

How do I validate ingredient ontologies for orphaned or circular parent references in YAML files?

You can validate ingredient ontologies by running structural checks that enforce referential integrity, detecting orphaned or circular parent references, verifying valid enums, and generating coverage statistics with Markdown reports.

Can I perform a dry-run ingredient hierarchy import on a small sample of culture media recipes?

Yes, you can perform a dry-run hierarchy import by pointing the workflow to a local MediaIngredientMech checkout and a CultureMech YAML directory, limiting processing to a small sample for verification before full enrichment.

How do I match culture media ingredients using CHEBI, name, or MIM identifiers?

You can match culture media ingredients using deterministic index-based matching by CHEBI, name, or MIM identifiers to ensure accurate mapping of parent ingredients and functional roles across bacterial, algae, fungal, and specialized media datasets.

What are the limitations of bulk recipe YAML enrichment for ingredient taxonomies?

Bulk recipe YAML enrichment requires schema-compatible field additions and referential integrity checks to prevent orphaned or circular parent references, meaning unmatched ingredients without valid CHEBI, name, or MIM identifiers will be skipped during processing.