feat(skills): align discovery with Opencode API and improve skills editor UX (#441)

This commit is contained in:
Bohdan Triapitsyn
2026-02-18 12:26:08 +02:00
committed by GitHub
parent 7eba5141fa
commit 14737b6b28
15 changed files with 1231 additions and 286 deletions
+4 -2
View File
@@ -940,6 +940,7 @@ export interface SkillsCatalogSource {
export interface SkillsCatalogItemInstalledBadge {
isInstalled: boolean;
scope?: 'user' | 'project';
source?: 'opencode' | 'agents' | 'claude';
}
export interface ClawdHubSkillMetadata {
@@ -1018,6 +1019,7 @@ export interface SkillsInstallRequest {
subpath?: string;
gitIdentityId?: string;
scope: 'user' | 'project';
targetSource?: 'opencode' | 'agents';
selections: SkillsInstallSelection[];
conflictPolicy?: 'prompt' | 'skipAll' | 'overwriteAll';
conflictDecisions?: Record<string, 'skip' | 'overwrite'>;
@@ -1026,12 +1028,12 @@ export interface SkillsInstallRequest {
export type SkillsInstallError = SkillsRepoScanError | {
kind: 'conflicts';
message: string;
conflicts: Array<{ skillName: string; scope: 'user' | 'project' }>;
conflicts: Array<{ skillName: string; scope: 'user' | 'project'; source?: 'opencode' | 'agents' }>;
};
export interface SkillsInstallResponse {
ok: boolean;
installed?: Array<{ skillName: string; scope: 'user' | 'project' }>;
installed?: Array<{ skillName: string; scope: 'user' | 'project'; source?: 'opencode' | 'agents' }>;
skipped?: Array<{ skillName: string; reason: string }>;
error?: SkillsInstallError;
}