MCPcopy Create free account
hub / github.com/docker/docker-agent / CurrentAgentSkills

Method CurrentAgentSkills

pkg/app/app.go:262–268  ·  view source on GitHub ↗

CurrentAgentSkills returns the available skills if skills are enabled for the current agent.

()

Source from the content-addressed store, hash-verified

260
261// CurrentAgentSkills returns the available skills if skills are enabled for the current agent.
262func (a *App) CurrentAgentSkills() []skills.Skill {
263 st := a.runtime.CurrentAgentSkillsToolset()
264 if st == nil {
265 return nil
266 }
267 return st.Skills()
268}
269
270// ResolveSkillCommand checks if the input matches a skill slash command (e.g. /skill-name args).
271// If matched, it reads the skill content and returns the resolved prompt. Otherwise returns "".

Callers 4

handleRuntimeEventMethod · 0.80
BuildCommandCategoriesFunction · 0.80
refreshCommandsMethod · 0.80

Calls 2

SkillsMethod · 0.80

Tested by

no test coverage detected