Agent Skillsmuratgur/ordinus › provider-runtime-adapter

provider-runtime-adapter

GitHub

设计用于本地 AI CLI(如 Codex、Claude)的 Provider Runtime Adapter,确保 Electron 主进程中的集成具备提供商中立性、可观测性及安全性。规范检测、认证、运行生命周期及事件解析等核心接口与架构边界。

.codex/skills/provider-runtime-adapter/SKILL.md muratgur/ordinus

Trigger Scenarios

需要集成新的本地 AI CLI 工具 实现或修改 Provider 的运行生命周期管理 处理 CLI 进程检测、认证状态或取消逻辑 标准化输出事件解析以适配 UI 展示

Install

npx skills add muratgur/ordinus --skill provider-runtime-adapter -g -y
More Options

Non-standard path

npx skills add https://github.com/muratgur/ordinus/tree/master/.codex/skills/provider-runtime-adapter -g -y

Use without installing

npx skills use muratgur/ordinus@provider-runtime-adapter

指定 Agent (Claude Code)

npx skills add muratgur/ordinus --skill provider-runtime-adapter -a claude-code -g -y

安装 repo 全部 skill

npx skills add muratgur/ordinus --all -g -y

预览 repo 内 skill

npx skills add muratgur/ordinus --list

SKILL.md

Frontmatter
{
    "name": "provider-runtime-adapter",
    "description": "Design Ordinus provider runtime adapters for local AI CLIs. Use when working on Codex, Claude, or future provider detection, auth status, run lifecycle, process management, cancellation, event parsing, output capture, or provider-neutral runtime interfaces."
}

Provider Runtime Adapter

Objective

Keep local AI CLI integrations provider-neutral, observable, and owned by Electron main process.

Adapter Boundary

Provider adapters should hide provider-specific CLI details behind a shared runtime shape. Start with only the methods needed by current product behavior.

Preferred concepts:

  • detect: determine whether the CLI is available.
  • getAuthStatus: report whether the provider appears ready.
  • startRun: launch one user-approved run.
  • cancelRun: stop an active run.
  • parseEvents: normalize stdout/stderr into observable run events when needed.

Do not implement all concepts until the product flow needs them.

Runtime Rules

  • Run provider processes from Electron main process or a main-owned worker.
  • Do not allow renderer to pass arbitrary shell commands.
  • Store run state and events durably only after the run model is intentionally designed.
  • Normalize provider behavior without erasing useful provider-specific diagnostics.
  • Treat Codex and Claude as peers. Do not let the first provider shape the whole architecture.
  • When provider state or events are shown in renderer UI, align user-visible statuses and event labels with the status vocabulary in DESIGN.md.

Workflow

  1. Define the user action that needs provider runtime support.
  2. Add the smallest provider-neutral interface needed for that action.
  3. Implement detection or process behavior in main process.
  4. Validate executable paths, workspace boundaries, and allowed arguments in main.
  5. Stream or record events in a way the UI can explain clearly, using DESIGN.md status language for user-visible states.
  6. Support cancellation before adding more automation.
  7. Run typecheck, lint, build, and a runtime smoke test.

Red Flags

  • Renderer sends raw command strings or CLI args.
  • Provider-specific flags leak into UI state too early.
  • Long-running process state exists only in memory when the UI needs to recover it.
  • A provider integration assumes a single operating system.

Version History

  • f507122 Current 2026-07-05 18:19

Same Skill Collection

.agents/skills/lavish/SKILL.md
.claude/skills/code-review-and-quality/SKILL.md
.claude/skills/code-simplification/SKILL.md
.claude/skills/documentation-and-adrs/SKILL.md
.claude/skills/electron-secure-boundary/SKILL.md
.claude/skills/grill-me/SKILL.md
.claude/skills/idea-discovery/SKILL.md
.claude/skills/ipc-contract-design/SKILL.md
.claude/skills/ordinus-ui-system/SKILL.md
.claude/skills/provider-runtime-adapter/SKILL.md
.claude/skills/shadcn-project-workflow/SKILL.md
.claude/skills/sqlite-minimal-persistence/SKILL.md
.codex/skills/code-review-and-quality/SKILL.md
.codex/skills/code-simplification/SKILL.md
.codex/skills/documentation-and-adrs/SKILL.md
.codex/skills/electron-secure-boundary/SKILL.md
.codex/skills/grill-me/SKILL.md
.codex/skills/idea-discovery/SKILL.md
.codex/skills/ipc-contract-design/SKILL.md
.codex/skills/ordinus-ui-system/SKILL.md
.codex/skills/shadcn-project-workflow/SKILL.md
.codex/skills/sqlite-minimal-persistence/SKILL.md

Metadata

Files
0
Version
f507122
Hash
be5792f4
Indexed
2026-07-05 18:19

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-13 18:13
浙ICP备14020137号-1 $Map of visitor$