Module: WideEvents::Generators::SkillInstaller
- Included in:
- InstallGenerator, SkillsGenerator
- Defined in:
- lib/generators/wide_events/skill_installer.rb
Overview
Copies every bundled agent skill (skills/*/SKILL.md) into
.claude/skills/wide_events:install sets up all three skills in one pass) and
SkillsGenerator (a standalone way to add or refresh them later), so
both stay byte-for-byte consistent and a new bundled skill only has to
be wired up in one place.
copy_file accepts an absolute source path regardless of the
including generator's own source_root, so this mixes into either
generator unchanged.
Constant Summary collapse
- SKILLS_ROOT =
File.("../../../skills", __dir__)
Instance Method Summary collapse
Instance Method Details
#copy_wide_events_skills ⇒ Object
16 17 18 19 20 21 |
# File 'lib/generators/wide_events/skill_installer.rb', line 16 def copy_wide_events_skills Dir[File.join(SKILLS_ROOT, "*", "SKILL.md")].sort.each do |path| name = File.basename(File.dirname(path)) copy_file path, ".claude/skills/#{name}/SKILL.md" end end |