MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getCustomInstructions

Function getCustomInstructions

src/shared/modes.ts:250–257  ·  view source on GitHub ↗
(modeSlug: string, customModes?: ModeConfig[])

Source from the content-addressed store, hash-verified

248
249// Helper function to safely get custom instructions
250export function getCustomInstructions(modeSlug: string, customModes?: ModeConfig[]): string {
251 const mode = getModeBySlug(modeSlug, customModes)
252 if (!mode) {
253 console.warn(`No mode found for slug: ${modeSlug}`)
254 return ""
255 }
256 return mode.customInstructions ?? ""
257}

Callers 1

ModesViewFunction · 0.90

Calls 2

getModeBySlugFunction · 0.85
warnMethod · 0.65

Tested by

no test coverage detected