suggest-awesome-github-copilot-instructions
它能做什么
这个工具可以帮你找到并更新在项目中使用 GitHub Copilot 的最佳指令。它会把你现有的指令和官方仓库中的最新指令进行比较,并建议你安装或更新哪些指令。
适用场景
- ✓当你开始一个新项目,想要配置 Copilot 时。
- ✓当你发现 Copilot 给出的建议不太有用时。
- ✓当你更新项目,希望确保 Copilot 的指令是最新的时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/suggest-awesome-github-copilot-instructions/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“检查一下有没有新的 Copilot 指令,或者我现有的指令是否需要更新。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会先检查你已经有哪些指令,然后从一个公开仓库中获取最新的指令,并与你的指令进行对比。它会显示哪些是新的、哪些已经过时,以及原因。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Suggest Awesome GitHub Copilot Instructions
Analyze current repository context and suggest relevant copilot-instruction files from the GitHub awesome-copilot repository that are not already available in this repository.
Process
- Fetch Available Instructions: Extract instruction list and descriptions from awesome-copilot README.instructions.md. Must use
#fetchtool. - Scan Local Instructions: Discover existing instruction files in
.github/instructions/folder - Extract Descriptions: Read front matter from local instruction files to get descriptions and
applyTopatterns - Fetch Remote Versions: For each local instruction, fetch the corresponding version from awesome-copilot repository using raw GitHub URLs (e.g.,
https://raw.githubusercontent.com/github/awesome-copilot/main/instructions/<filename>) - Compare Versions: Compare local instruction content with remote versions to identify:
- Instructions that are up-to-date (exact match)
- Instructions that are outdated (content differs)
- Key differences in outdated instructions (description, applyTo patterns, content)
- Analyze Context: Review chat history, repository files, and current project needs
- Compare Existing: Check against instructions already available in this repository
- Match Relevance: Compare available instructions against identified patterns and requirements
- Present Options: Display relevant instructions with descriptions, rationale, and availability status including outdated instructions
- Validate: Ensure suggested instructions would add value not already covered by existing instructions
- Output: Provide structured table with suggestions, descriptions, and links to both awesome-copilot instructions and similar local instructions AWAIT user request to proceed with installation or updates of specific instructions. DO NOT INSTALL OR UPDATE UNLESS DIRECTED TO DO SO.
- Download/Update Assets: For requested instructions, automatically:
- Download new instructions to
.github/instructions/folder - Update outdated instructions by replacing with latest version from awesome-copilot
- Do NOT adjust content of the files
- Use
#fetchtool to download assets, but may usecurlusing#runInTerminaltool to ensure all content is retrieved - Use
#todostool to track progress
- Download new instructions to
Context Analysis Criteria
🔍 Repository Patterns:
- Programming languages used (.cs, .js, .py, .ts, etc.)
- Framework indicators (ASP.NET, React, Azure, Next.js, etc.)
- Project types (web apps, APIs, libraries, tools)
- Development workflow requirements (testing, CI/CD, deployment)
🗨️ Chat History Context:
- Recent discussions and pain points
- Technology-specific questions
- Coding standards discussions
- Development workflow requirements
Output Format
Display analysis results in structured table comparing awesome-copilot instructions with existing repository instructions:
| Awesome-Copilot Instruction | Description | Already Installed | Similar Local Instruction | Suggestion Rationale |
|---|---|---|---|---|
| blazor.instructions.md | Blazor development guidelines | ✅ Yes | blazor.instructions.md | Already covered by existing Blazor instructions |
| reactjs.instructions.md | ReactJS development standards | ❌ No | None | Would enhance React development with established patterns |
| java.instructions.md | Java development best practices | ⚠️ Outdated | java.instructions.md | applyTo pattern differs: remote uses '**/*.java' vs local '*.java' - Update recommended |
Local Instructions Discovery Process
- List all
*.instructions.mdfiles in theinstructions/directory - For each discovered file, read front matter to extract
descriptionandapplyTopatterns - Build comprehensive inventory of existing instructions with their applicable file patterns
- Use this inventory to avoid suggesting duplicates
…
常见问题
什么是 GitHub Copilot 的“指令”?
这些是用来指导 Copilot 如何帮你写代码的文件,它们定义了适用于你项目的编码规范和最佳实践。
什么是“awesome-copilot”仓库?
它是一个官方支持、由社区共同维护的合集,收录了 GitHub Copilot 指令的各种示例和最佳实践。
这个工具会自动安装指令吗?
不会,它只会建议更新或新增指令。如果需要,你得让它安装或更新。
详情
作者的原始描述
Suggest relevant GitHub Copilot instruction files from the awesome-copilot repository based on current repository context and chat history, avoiding duplicates with existing instructions in this repository, and identifying outdated instructions that need updates.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7442
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。