MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getSkillConfig

Function getSkillConfig

src/stores/skill.ts:210–225  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

208 }
209
210 async function getSkillConfig(id: string): Promise<SkillConfigFull | null> {
211 if (id === CHART_CAPABILITY_SKILL_ID) {
212 const skill = getChartCapabilitySkillSummary()
213 return {
214 ...skill,
215 prompt: '',
216 builtinId: CHART_CAPABILITY_SKILL_ID,
217 }
218 }
219 try {
220 return await useSkillService().getConfig(id)
221 } catch (error) {
222 console.error('[SkillStore] Failed to get skill config:', error)
223 return null
224 }
225 }
226
227 async function updateSkill(id: string, rawMd: string): Promise<{ success: boolean; error?: string }> {
228 try {

Callers 2

createActivateSkillToolFunction · 0.50

Calls 4

useSkillServiceFunction · 0.90
getConfigMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected