class ClaudeCodeSlashCommands::Installer
def fetch_commands_from_github
def fetch_commands_from_github stdout, stderr, status = Open3.capture3("gh", "api", "repos/#{@repo}/contents/commands") unless status.success? raise "Failed to fetch commands from GitHub: #{stderr}" end contents = JSON.parse(stdout) contents.select { |item| item["type"] == "file" && item["name"].end_with?(".md") } end