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

Function ToolSkillPath

internal/cli/agents.go:144–150  ·  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

142
143// ToolSkillPath returns the full path where a tool's skill file would be installed.
144func ToolSkillPath(tool AgentTool) string {
145 cwd, err := os.Getwd()
146 if err != nil {
147 return ""
148 }
149 return filepath.Join(cwd, tool.SkillDir, tool.SkillFile)
150}
151
152// ToolInstalled checks if the skill file exists for the given tool.
153func ToolInstalled(tool AgentTool) bool {

Callers 3

offerSkillInstallFunction · 0.92
ensureSkillsFunction · 0.92
ToolInstalledFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected