feat: 增加技能参考和模板的创建、获取及保存功能

This commit is contained in:
piexlMax(奇淼
2026-02-02 18:06:11 +08:00
parent 52cd5e72ab
commit 670aff79cc
8 changed files with 216 additions and 29 deletions
+12
View File
@@ -32,6 +32,18 @@ type SkillResourceCreateRequest struct {
FileName string `json:"fileName"`
}
type SkillReferenceCreateRequest struct {
Tool string `json:"tool"`
Skill string `json:"skill"`
FileName string `json:"fileName"`
}
type SkillTemplateCreateRequest struct {
Tool string `json:"tool"`
Skill string `json:"skill"`
FileName string `json:"fileName"`
}
type SkillFileRequest struct {
Tool string `json:"tool"`
Skill string `json:"skill"`
+8 -6
View File
@@ -9,12 +9,14 @@ type SkillMeta struct {
}
type SkillDetail struct {
Tool string `json:"tool"`
Skill string `json:"skill"`
Meta SkillMeta `json:"meta"`
Markdown string `json:"markdown"`
Scripts []string `json:"scripts"`
Resources []string `json:"resources"`
Tool string `json:"tool"`
Skill string `json:"skill"`
Meta SkillMeta `json:"meta"`
Markdown string `json:"markdown"`
Scripts []string `json:"scripts"`
Resources []string `json:"resources"`
References []string `json:"references"`
Templates []string `json:"templates"`
}
type SkillTool struct {