gh skill search: allow selecting multiple target agents when installing
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
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ả
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:
- Replace
opts.Prompter.Select("Select target agent:", ...)withopts.Prompter.MultiSelect("Select target agent(s):", ...)
(mirroringinstall.goline ~877) - Update the
exec.Commandloop to iterate over all selected agents, since--agentcurrently accepts a single value
Additional context
ghversion:2.92.0- Affected file:
pkg/cmd/skills/search/search.go, functionpromptInstall - Reference:
pkg/cmd/skills/install/install.goalready usesMultiSelectfor 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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cli/cli
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
-
more-info-needed needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
-
bug gh-pr priority-2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
bug gh-pr priority-2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
bug gh-auth priority-3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Issue tương tự
-
bug github_actions
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
registrystack/registry-stack#1393 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
JakeChampion/lang#10213 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
oasisprotocol/oasis-sdk#2523 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100