github / github/copilot-cli

Avoid duplicate skill lookup for slash-invoked skills with disable-model-invocation

Đang mở
#4,637 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.

triage
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

Summary

A skill that is explicitly invoked with a slash command can execute and inject its instructions into context, while another lookup path reports Skill not found, creating misleading context noise.

Reproduction

Use a skill with this frontmatter:

---
name: implement
description: "Implement a piece of work based on a spec or set of tickets."
disable-model-invocation: true
---

The local skill is C:\Users\omzig\.copilot\skills\implement\SKILL.md; the relevant setting is line 4: disable-model-invocation: true.

Then run:

/implement #1147

Observed behavior:

  • The /implement workflow is recognized and its instructions are injected into context.
  • A separate skill lookup reports: Skill not found: implement.
  • The command can continue, but the error is misleading and makes it appear that the skill failed to load.

Environment: Copilot CLI 1.0.80 on Windows.

Expected behavior

disable-model-invocation: true should prevent automatic/model-driven invocation. It should not make an explicit slash-command invocation unavailable. When the explicit command path succeeds, the runtime should not perform a second conflicting lookup or emit Skill not found.

Suggested fix

Distinguish explicit slash-command invocation from automatic skill invocation. Resolve the command/skill once, honor disable-model-invocation only for automatic loading, and suppress the registry error when the explicit command path has already loaded the skill successfully.

This is primarily a context-quality issue: the implementation workflow works, but the duplicate/conflicting lookup adds noise and obscures the actual result.

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.

Hướng nghiên cứu

Bắt đầu với đường dẫn gọi lệnh slash một cách rõ ràng và đường dẫn tra cứu hoặc đăng ký skill tự động riêng biệt, sử dụng disable-model-invocation/implement #1147 làm từ khóa tìm kiếm. Tái hiện vấn đề trên Copilot CLI 1.0.80, sau đó xác minh rằng skill được gọi rõ ràng sẽ thực thi mà không xuất hiện thông báo Skill not found trùng lặp, trong khi việc gọi tự động vẫn bị vô hiệu hóa.

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

Đánh giá

Công nghệ
shell
Lĩnh vực
cli, developer-experience
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
52/100

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.