xiaohongshu
xiaohongshu
metaxy
This skill should be used when the user asks to "define a feature", "create a BaseFeature class", "track feature versions", "set up metadata store", "field-level dependencies", "FieldSpec", "FeatureDep", "run metaxy CLI", "metaxy migrations", or needs guidance on metaxy feature definitions, versi...
Full skill instructions
Metaxy is a metadata layer for multi-modal Data and ML pipelines that manages and tracks feature versions, dependencies, and data lineage across complex computational graphs.
To define a feature, create a class inheriting from mx.BaseFeature with a FeatureSpec metaclass argument:
import metaxy as mx
class MyFeature(
mx.BaseFeature,
spec=mx.FeatureSpec(
key="my/feature",
id_columns=["sample_id"],
fields=["embedding", "score"],
),
):
sample_id: str
embedding: list[float]
score: float
To add dependencies between features, use the deps parameter with FeatureDep. To specify field-level dependencies (for partial data dependencies processing), use FieldSpec with FieldDep or FieldsMapping.
Metaxy automatically tracks sample versions and propagates changes through the dependency graph. To trigger recomputation when code changes, set code_version on FieldSpec:
fields = [
mx.FieldSpec(key="embedding", code_version="2"), # Bump to invalidate downstream
]
To configure a metadata store, create a metaxy.toml file or use programmatic configuration:
with mx.MetaxyConfig(stores={"dev": mx.DeltaMetadataStore(root_path="/tmp/metaxy")}).use() as config:
store = config.get_store("dev")
Supported backends: DuckDB, ClickHouse, BigQuery, LanceDB, Delta Lake.
To visualize and manage the feature dependency graph, use the CLI:
mx graph render # Terminal visualization
mx push --store dev # Push graph to store
Metaxy provides a CLI (metaxy or mx alias) for managing features, metadata, and migrations:
mx list features --verbose # List features with dependencies
mx graph render # Visualize feature graph
mx metadata status --all-features # Check metadata freshness (expensive!)
mx migrations apply # Apply pending migrations
mx mcp # Start MCP server for AI assistants
To test features in isolation, use context managers to avoid polluting the global registry:
import pytest
import metaxy as mx
from metaxy.metadata_store.delta import DeltaMetadataStore
@pytest.fixture
def metaxy_env(tmp_path):
with mx.FeatureGraph().use():
store = DeltaMetadataStore(root_path=tmp_path / "delta_test")
with mx.MetaxyConfig(stores={"test": store}).use() as config:
yield config
For complete code examples, see:
examples/feature-definitions.md - Feature classes with dependencies and field-level depsexamples/configuration.md - TOML and programmatic configurationexamples/metadata-stores.md - Store operationsexamples/testing.md - Test isolation patternsexamples/cli.md - CLI command referenceFor comprehensive documentation: https://anam-org.github.io/metaxy/
Key pages:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience