MCPcopy Index your code
hub / github.com/coder/coder / findSkill

Function findSkill

coderd/x/chatd/chattool/skill.go:493–506  ·  view source on GitHub ↗

findSkill looks up a skill by name in the current skill list.

(
	getSkills func() []SkillMeta,
	name string,
)

Source from the content-addressed store, hash-verified

491
492// findSkill looks up a skill by name in the current skill list.
493func findSkill(
494 getSkills func() []SkillMeta,
495 name string,
496) (SkillMeta, bool) {
497 if getSkills == nil {
498 return SkillMeta{}, false
499 }
500 for _, s := range getSkills() {
501 if s.Name == name {
502 return s, true
503 }
504 }
505 return SkillMeta{}, false
506}

Callers 3

ReadSkillFileFunction · 0.85
resolveSkillAliasFunction · 0.85
readWorkspaceSkillBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected