/onex:architectural_invariant_loopfrom onex
Evaluates architectural invariant contracts across repos by converting CLAUDE.md/doctrine principles into typed YAML contracts and reporting violations across five enforcement surfaces.
Ships in onex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Announce at start: "I'm using the architectural-invariant-loop skill."
/architectural_invariant_loop # All repos, all invariants
/architectural_invariant_loop --dry-run # Report only
/architectural_invariant_loop --repos omniclaude,omnibase_core
/architectural_invariant_loop --invariants ARCH-001,ARCH-003
/architectural_invariant_loop --severity-threshold ERROR # Only ERROR+ findings
--repos → comma-separated repo names (default: all repos under $ONEX_WORKTREES_ROOT)--invariants → comma-separated principle codes (default: all 5 seed invariants)--dry-run → pass through to node--severity-threshold → pass through to node (default: WARNING)Resolve each repo name to an absolute path under $ONEX_WORKTREES_ROOT/<repo>.
Dispatch to the omnimarket node via local RuntimeLocal. This is a dispatch-only shim — no inline scanning, no subprocess grep, no fallback logic.
uv run onex node node_architectural_invariant_loop -- \
--target-dirs "<comma-list of absolute paths>" \
--invariant-ids "<comma-list or omit for all>" \
--severity-threshold WARNING \
[--dry-run]
On non-zero exit, surface the SkillRoutingError JSON envelope directly. Do not
produce prose on error. Exit 0 = clean or informational findings; exit 1 = violations
at or above threshold.
From the JSON output display:
Write to $ONEX_STATE_DIR/skill-results/<run_id>/architectural-invariant-loop.json:
{
"skill": "architectural-invariant-loop",
"status": "clean | violations | error",
"repos_scanned": 0,
"invariants_evaluated": 5,
"total_violations": 0,
"by_severity": {},
"by_category": {},
"by_principle": {}
}
| Code | Name | Category | Severity |
|---|---|---|---|
| ARCH-001 | no_hardcoded_persistence_in_runners | runtime_topology | ERROR |
| ARCH-002 | no_silent_fallback | static_architecture | WARNING |
| ARCH-003 | contract_driven_routing_only | contract_violation | ERROR |
| ARCH-004 | event_bus_di_projections | runtime_topology | ERROR |
| ARCH-005 | no_hardcoded_absolute_paths | static_architecture | ERROR |
PreToolUse hooks are developer ergonomics only — they are NOT authoritative. CI gates and runtime validators are the authoritative enforcement surfaces. A violation that passes a PreToolUse hook but is caught by CI is still a violation.
SKILL.md → thin shell: parse args → node dispatch → render results
node → onex node node_architectural_invariant_loop
contract → node_architectural_invariant_loop/contract.yaml
invariants → node_architectural_invariant_loop/invariants/ARCH-*.yaml
All scanning logic lives in the node handler. This skill does no scanning.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (omninode-ai/omniclaude) — no native marketplace selected
npx claudepluginhub p/omninode-ai-onex-plugins-onex128 skills in this plugin
/adversarial_pipelineAdversarial PipelineAutonomous 3-stage adversarial plan-to-ticket pipeline — design_to_plan → hostile_reviewer gate (≥3 issues required) → plan_to_tickets. All stages run as background agents. Zero foreground work./agent_healthcheck/onex:agent_healthcheck — dispatch-only shimDispatch-only shim for agent stall detection and recovery. All detection and recovery logic lives in node_worker_stall_recovery (omnimarket). The skill parses args, builds the input envelope, dispatches to the node, and renders the receipt./aislop_sweep