Orion variate engineering

From galaxio-labs/orion-skills · View interactive version

Orion variate engineering is an AI agent skill from the GitHub repository galaxio-labs/orion-skills. Use when working with the Rust crate orion-variate: variable/value modeling, ValueType parsing and serialization, case-insensitive ValueDict/OriginDict usage, environment placeholder expansion with EnvEvaluable/EnvChecker, VarDefinition/VarCollection mutability, CwdGuard project directory helpers, a

How to use this skill

Skill file

Orion Variate Engineering

Use this skill for source-accurate work with orion-variate, the Orion crate for variable/value management and environment interpolation.

First Checks

  1. Locate the crate root. In this workspace it is usually orion-variate/.
  2. Treat src/vars/*, crate-root re-exports in src/lib.rs, and tests as source of truth.
  3. AGENTS.md appears stale for this crate; it mentions modules that are not present. Do not follow it blindly.
  4. Prefer importing public crate-root items: use orion_variate::{ValueDict, ValueType, EnvEvaluable, ...};.
  5. Verify behavior changes from orion-variate/ with cargo test --all-features -- --test-threads=1.

Current API Facts

Common Workflow

  1. Use ValueType::from(...) for simple values and ValueObj/ValueVec for nested structures.
  2. Store config/env values in ValueDict or EnvDict; use get_case_insensitive for user-facing keys.
  3. Before interpolation, use needs_env_eval() and list_env_vars() when you need validation or diagnostics.
  4. Use .env_eval(&env_dict) for String, Option<String>, ValueType, ValueDict, OriginValue, and OriginDict.
  5. Use VarDefinition::from((name, value)) plus .with_mut_immutable(), .with_mut_system(), or .with_mut_module() to define configuration variables.
  6. Use VarCollection::define(vars) to classify variables, then value_dict() and optionally .env_eval(...).
  7. Use OriginDict when source labels and mutability-aware merge behavior matter.
  8. Use CwdGuard::change(path) for temporary current-directory changes and find_project_root(_from) for _gal/project.toml discovery.

Migration Guardrails

Important Semantics

References

Read references/patterns.md when you need copyable Rust templates, merge examples, or validation commands.

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.