MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / ToolSkillPath

Function ToolSkillPath

internal/cli/agents.go:210–216  ·  view source on GitHub ↗

ToolSkillPath returns the full path where a tool's skill file would be installed.

(tool AgentTool)

Source from the content-addressed store, hash-verified

208
209// ToolSkillPath returns the full path where a tool's skill file would be installed.
210func ToolSkillPath(tool AgentTool) string {
211 cwd, err := os.Getwd()
212 if err != nil {
213 return ""
214 }
215 return filepath.Join(cwd, tool.SkillDir, tool.SkillFile)
216}
217
218// ToolInstalled checks if the skill file exists for the given tool.
219func ToolInstalled(tool AgentTool) bool {

Callers 6

offerSkillInstallFunction · 0.92
ToolInstalledFunction · 0.85
WriteSkillFunction · 0.85
SkillStateFunction · 0.85

Calls 1

JoinMethod · 0.80