MCPcopy Index your code
hub / github.com/cli/cli / singleSkillTreeJSON

Function singleSkillTreeJSON

pkg/cmd/skills/install/install_test.go:288–293  ·  view source on GitHub ↗

singleSkillTreeJSON returns tree entries for a single skill with the given name.

(name, treeSHA, blobSHA string)

Source from the content-addressed store, hash-verified

286
287// singleSkillTreeJSON returns tree entries for a single skill with the given name.
288func singleSkillTreeJSON(name, treeSHA, blobSHA string) string {
289 return fmt.Sprintf(
290 `{"path": "skills/%s", "type": "tree", "sha": %q}, {"path": "skills/%s/SKILL.md", "type": "blob", "sha": %q}`,
291 name, treeSHA, name, blobSHA,
292 )
293}
294
295// hiddenDirSkillTreeJSON returns tree entries for a hidden-dir skill under .claude/skills/.
296func hiddenDirSkillTreeJSON(name, treeSHA, blobSHA string) string {

Calls

no outgoing calls

Tested by

no test coverage detected