github / github/copilot-cli

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

未关闭
#4,231 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:context-memory
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### 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_

贡献指南

打开贡献指南

调研方向

首先阅读 .instructions.md 的 frontmatter 处理方式以及现有的 applyTo glob 匹配行为。跟踪文件被分配 scope 的位置,以及指令被自动注入的位置;done 应包括可独立于路径匹配或与路径匹配结合工作的语义标签,并覆盖提议的错误处理和安全示例。

由索引模型根据 Issue 内容生成。

评估

技术栈
markdown
领域
cli, documentation
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。