CurrentAgentSkills returns the available skills if skills are enabled for the current agent.
()
| 260 | |
| 261 | // CurrentAgentSkills returns the available skills if skills are enabled for the current agent. |
| 262 | func (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 "". |
no test coverage detected