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

Function createSkill

src/stores/skill.ts:237–245  ·  view source on GitHub ↗
(rawMd: string)

Source from the content-addressed store, hash-verified

235 }
236
237 async function createSkill(rawMd: string): Promise<{ success: boolean; id?: string; error?: string }> {
238 try {
239 const result = await useSkillService().create(rawMd)
240 if (result.success) await loadSkills()
241 return result
242 } catch (error) {
243 return { success: false, error: String(error) }
244 }
245 }
246
247 async function deleteSkill(id: string): Promise<{ success: boolean; error?: string }> {
248 try {

Callers

nothing calls this directly

Calls 3

useSkillServiceFunction · 0.90
loadSkillsFunction · 0.85
createMethod · 0.65

Tested by

no test coverage detected