github / github/copilot-cli

Enhance auto-injected copilot instructions to have more relevant instructions for scope

Đang mở
#4,231 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:context-memory
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ả

### Describe the feature or problem you'd like to solve

The applyTo glob pattern is not enough to scope down an instruction in large codebases with possibly hundreds of agent docs to read

### Proposed solution

Support domain/category "tags" as an addition to  applyTo  glob patterns in  .instructions.md  frontmatter, so instructions can be auto-injected based on a semantic tag assigned to files, in combination with or independently of path-based glob matching. For example, a repo currently maintaining a separate, hand-curated library of convention docs (because many conventions are cross-cutting and don't map to a clean glob) could instead express every one of those conventions as a plain  .instructions.md  file tagged by concern (e.g.  error-handling ,  security ) — removing the need for a parallel documentation system just to work around glob's path-only scoping.

### Example prompts or workflows

_No response_

### Additional context

_No response_

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

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

Hướng nghiên cứu

Bắt đầu bằng cách đọc phần xử lý frontmatter của .instructions.md và hành vi khớp glob hiện có của applyTo. Theo dõi nơi các tệp được gán scope và nơi các chỉ dẫn được tự động chèn vào; done cần bao gồm các thẻ ngữ nghĩa hoạt động độc lập với hoặc cùng với việc khớp đường dẫn, có độ bao phủ cho các ví dụ được đề xuất về xử lý lỗi và bảo mật.

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

Đánh giá

Công nghệ
markdown
Lĩnh vực
cli, documentation
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/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.