9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/brute/prompts/skills.rb', line 9
def self.call(ctx)
cwd = ctx[:cwd] || Dir.pwd
skills = Brute::Skill.all(cwd: cwd)
return nil if skills.empty?
listing = Brute::Skill.fmt(skills)
<<~TXT
Skills provide specialized instructions and workflows for specific tasks.
Use the skill tool to load a skill when a task matches its description. The tool
returns the skill's full instructions plus a base directory whose bundled files
(scripts, references, assets) you can read or run by relative path.
#{listing}
TXT
end
|