Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

gh skill search: allow selecting multiple target agents when installing

Đang mở Phù hợp với người mới
#13,629 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu trong pkg/cmd/skills/search/search.go tại promptInstall, sau đó so sánh phần chọn agent tương tác trong pkg/cmd/skills/install/install.go quanh dòng 877. Thay đổi luồng tìm kiếm để hỗ trợ chọn nhiều agent và đảm bảo việc thực thi lệnh xử lý mọi agent đã chọn. Hoàn tất khi prompt cho phép chọn nhiều mục và quá trình cài đặt chạy cho từng agent được chọn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
Describe the feature or problem you’d like to solve

When selecting skills to install via gh skill search, the agent selection prompt only allows a single choice:

? Select target agent: Claude Code

This is inconsistent with gh skill install (without --agent), which already supports selecting multiple agents at once via prompter.MultiSelect.

Proposed solution

Change the agent selection in promptInstall (pkg/cmd/skills/search/search.go) from prompter.Select to
prompter.MultiSelect, matching the behavior of gh skill install:

? Select target agent(s): [space to select]
> [x] GitHub Copilot
  [ ] Claude Code
  [ ] Cursor
  [ ] Codex

The implementation involves two changes:

  1. Replace opts.Prompter.Select("Select target agent:", ...) with opts.Prompter.MultiSelect("Select target agent(s):", ...)
    (mirroring install.go line ~877)
  2. Update the exec.Command loop to iterate over all selected agents, since --agent currently accepts a single value
Additional context
  • gh version: 2.92.0
  • Affected file: pkg/cmd/skills/search/search.go, function promptInstall
  • Reference: pkg/cmd/skills/install/install.go already uses MultiSelect for agent selection in its interactive flow
Ngôn ngữ chính
Go
Star
46.3k
Fork
9.1k
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
76

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cli/cli

Tất cả issue của cli/cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.