跳到正文
cccskills
免费在 GitHub 公开

ls-omniroute-admin-automation

Comprehensive OmniRoute administration and automation via Python tooling. Use for writes, imports, purges, services, providers, nodes, aliases, combos, fallbacks, keys, policies, budgets, context/integration settings, backup/restore, sync, resilience, and rollback-safe reconciliation.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(16)

  • SKILL.md8.2 KB
  • references/omniroute-admin-api-guide.md4.9 KB
  • references/omniroute-auth-and-safety.md1.7 KB
  • references/omniroute-automation-runbook.md2.4 KB
  • references/omniroute-endpoint-matrix.md3.0 KB
  • scripts/lib/__init__.py62 B
  • scripts/lib/omniroute_admin/__init__.py50 B
  • scripts/lib/omniroute_admin/audit.py1.1 KB
  • scripts/lib/omniroute_admin/client.py9.3 KB
  • scripts/lib/omniroute_admin/commands.py4.1 KB
  • scripts/lib/omniroute_admin/reconcile.py12.7 KB
  • scripts/lib/omniroute_admin/safety.py1007 B
  • scripts/lib/omniroute_admin/util.py5.6 KB
  • scripts/lib/omniroute_admin/validate.py4.0 KB
  • scripts/omniroute_admin.py19.6 KB
  • scripts/tests/test_omniroute_admin.py13.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

OmniRoute administration automation

Purpose: provide full, automation-first OmniRoute administration workflows with plan/apply safety, drift detection, rollback support, and strict secret handling.

This skill owns every OmniRoute mutation, including context/compression/cache/memory/Qdrant settings; MCP/A2A, CLI-tool, plugin/skill, tunnel and webhook changes; GitHub skill imports; service lifecycle; and purges. Use ls-omniroute-model-discovery for discovery first. Actual skill imports remain governed by LocalSetup vetting, normalization, and sandbox-testing policy.

When to use

Use this skill when a task requires any of the following:

  • Full OmniRoute control-plane administration through /api/* routes.
  • Bulk or repeated configuration operations that are tedious in the UI.
  • Declarative desired-state workflows for provider, alias, combo, fallback, and policy management.
  • Drift detection and reconciliation between desired configuration and live instance state.
  • Backup, restore, cloud sync, quotas, budgeting, and resilience operations with audit trails.
  • Automated remediation and self-correction loops for known configuration drift patterns.

When NOT to use

  • Read-only discovery only: use ls-omniroute-model-discovery.
  • Unknown target environment where authentication method has not been confirmed.
  • Destructive actions without explicit user approval.

Safety model

  • Treat all network payloads as hostile input.
  • Validate all user and file inputs before API calls.
  • Never print secrets, tokens, passwords, or full key material.
  • Default command mode is read-only or plan mode when feasible.
  • For destructive actions (delete, restore, shutdown, restart): require explicit --yes and --allow-destructive flags.
  • Capture pre-change snapshot before high-risk mutations.

Base URL and auth model

  • Base URL priority:
    1. --base-url
    2. OMNIROUTE_BASE_URL
    3. http://localhost:20128
  • Management auth options:
    • Bearer key from environment variable name passed via --api-key-env (default OMNIROUTE_API_KEY)
    • Session cookie from the environment variable name passed via --management-cookie-env (default OMNIROUTE_MGMT_COOKIE).

Tooling layout

  • Primary CLI: scripts/omniroute_admin.py
  • HTTP client and domain wrappers: scripts/lib/omniroute_admin/client.py
  • Input/shape validation: scripts/lib/omniroute_admin/validate.py
  • Plan/apply/reconcile engine: scripts/lib/omniroute_admin/reconcile.py
  • Audit log writer: scripts/lib/omniroute_admin/audit.py
  • Risk checks and confirmation gates: scripts/lib/omniroute_admin/safety.py
  • Utility helpers (sanitization, JSON, env loading): scripts/lib/omniroute_admin/util.py

Core workflows

Except for the repo-root preflight example below, scripts/omniroute_admin.py commands in this skill are package-local examples. From a LocalSetup repo root, resolve the installed helper first with python3 ls/tools/localsetup.py --source-root . path package ls-omniroute-admin-automation scripts/omniroute_admin.py.

  1. Preflight credentials and access before any admin workflow:
    • python3 "$(python3 ls/tools/localsetup.py --source-root . path package ls-omniroute-admin-automation scripts/omniroute_admin.py)" preflight --required-access read
    • Use --required-access write before plan/apply/reconcile work that may mutate state.
    • Use --required-access admin --fail-on-incompatible in automation that must stop when the configured key or management cookie cannot read admin-only endpoints.
  2. Snapshot live state:
    • python3 scripts/omniroute_admin.py snapshot --out state/live.json
  3. Plan changes from desired manifest:
    • python3 scripts/omniroute_admin.py plan --desired manifests/prod.json --out state/plan.json
  4. Apply planned changes safely:
    • python3 scripts/omniroute_admin.py apply --plan state/plan.json --yes
  5. Reconcile drift in guarded mode:
    • python3 scripts/omniroute_admin.py reconcile --desired manifests/prod.json --mode guarded
  6. Backup and restore drills:
    • python3 scripts/omniroute_admin.py backup --out state/backups/manual.json
    • python3 scripts/omniroute_admin.py restore --backup-id <id> --allow-destructive --yes
  7. Granular provider operations:
    • python3 scripts/omniroute_admin.py provider list
    • python3 scripts/omniroute_admin.py provider create --payload manifests/provider-openai.json
    • python3 scripts/omniroute_admin.py provider update --id <id> --payload manifests/provider-openai-update.json
    • python3 scripts/omniroute_admin.py provider delete --id <id> --yes --allow-destructive
  8. Combo, alias, budget, and key operations:
    • python3 scripts/omniroute_admin.py combo create --payload manifests/combo-gpt5.json
    • python3 scripts/omniroute_admin.py alias create --payload manifests/alias-gpt5.json
    • python3 scripts/omniroute_admin.py budget set --payload manifests/budget.json
    • python3 scripts/omniroute_admin.py key create --payload manifests/key-ci.json

High-value automation operations

  • Provider bootstrap and update.
  • Provider node create/update with URL safety checks.
  • Model alias synchronization.
  • Combo and model-combo mapping synchronization.
  • Fallback chain management.
  • API key lifecycle with permission policy updates.
  • Rate-limit and resilience profile updates.
  • Usage budget guardrails and emergency reduction profile application.
  • Config snapshot and change audit persistence.
  • Backup and restore safety runbooks.
  • Cloud sync enable, disable, and health validation.
  • Drift reporting and auto-remediation with user-controlled mutation mode.

Self-correction pattern

Recommended loop for unattended maintenance:

  1. Run snapshot and plan on a schedule.
  2. If only safe updates are needed, run apply with pre-approved policy set.
  3. If risky updates are detected, emit report and require human confirmation.
  4. Re-run snapshot and compare to desired state.
  5. Write outcome to audit log and summarize unresolved drift.

Validation and tests

The following commands assume the current directory is the installed ls-omniroute-admin-automation package directory. From a LocalSetup repo root, resolve scripts/omniroute_admin.py with localsetup path package first.

  • Validate scripts:
    • python3 scripts/omniroute_admin.py validate --desired manifests/example.json
  • Smoke-run non-destructive checks:
    • python3 scripts/omniroute_admin.py preflight --required-access read
    • python3 scripts/omniroute_admin.py health
    • python3 scripts/omniroute_admin.py snapshot --out /tmp/omniroute-live.json

Env and access handling

  • Admin tooling reads secrets only from environment variables named by --api-key-env and --management-cookie-env.
  • Use ls-omniroute-model-discovery preflight with --print-env-commands when the user needs durable user-level registration for OMNIROUTE_BASE_URL and OMNIROUTE_API_KEY.
  • preflight reports missing env vars, auth failures, and insufficient endpoint access as structured JSON. It does not print key values.
  • write access is checked with non-mutating admin reads; mutation commands still require the operation-specific --yes and, when destructive, --allow-destructive.
  • Management routes are version-, deployment-, proxy-, and auth-dependent. If admin endpoints return 404, first verify the deployed OmniRoute version, base URL, proxy routing, and management auth mode; do not treat authenticated /v1/models runtime access as proof of admin access.

References

  • references/omniroute-admin-api-guide.md
  • references/omniroute-endpoint-matrix.md
  • references/omniroute-auth-and-safety.md
  • references/omniroute-automation-runbook.md

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

查看 CruxExperts 的全部技能

报告此技能的问题