import type { SkillApi } from "@opencode/client/promise/api" import type { Skill } from "@opencode/schema/skill" import type { Types } from "effect" import type { Transform } from "./registration.js" export interface SkillEditor { list(): readonly Types.DeepMutable[] get(id: string): Types.DeepMutable | undefined add(skill: Skill.Info): void update(id: string, update: (skill: Types.DeepMutable) => void): void remove(id: string): void } export interface SkillDomain extends SkillApi { readonly transform: Transform readonly reload: () => Promise }