MCPcopy Create free account
hub / github.com/formkit/formkit / installFormKitSkill

Function installFormKitSkill

packages/cli/src/skill.ts:152–165  ·  view source on GitHub ↗
(options: {
  codexHome?: string
  sourceDir?: string
} = {})

Source from the content-addressed store, hash-verified

150}
151
152export async function installFormKitSkill(options: {
153 codexHome?: string
154 sourceDir?: string
155} = {}): Promise<string> {
156 const sourceDir = options.sourceDir ?? (await getFormKitSkillSourceDir())
157 const codexHome = options.codexHome ?? getCodexHome()
158 const destination = resolve(codexHome, 'skills', 'formkit')
159
160 await mkdir(dirname(destination), { recursive: true })
161 await rm(destination, { recursive: true, force: true })
162 await cp(sourceDir, destination, { recursive: true })
163
164 return destination
165}
166
167export async function enableAgentsForProject(options: {
168 agents: Array<string>

Callers 2

skill.spec.tsFile · 0.90
setupSkillFunction · 0.85

Calls 2

getFormKitSkillSourceDirFunction · 0.85
getCodexHomeFunction · 0.85

Tested by

no test coverage detected