MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / updateSkill

Function updateSkill

src/stores/skill.ts:227–235  ·  view source on GitHub ↗
(id: string, rawMd: string)

Source from the content-addressed store, hash-verified

225 }
226
227 async function updateSkill(id: string, rawMd: string): Promise<{ success: boolean; error?: string }> {
228 try {
229 const result = await useSkillService().update(id, rawMd)
230 if (result.success) await loadSkills()
231 return result
232 } catch (error) {
233 return { success: false, error: String(error) }
234 }
235 }
236
237 async function createSkill(rawMd: string): Promise<{ success: boolean; id?: string; error?: string }> {
238 try {

Callers

nothing calls this directly

Calls 3

useSkillServiceFunction · 0.90
loadSkillsFunction · 0.85
updateMethod · 0.65

Tested by

no test coverage detected