跳到正文
Skillpedia
通用编程40k · #7442

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/suggest-awesome-github-copilot-instructions/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Fetch Available Instructions: Extract instruction list and descriptions from awesome-copilot README.instructions.md. Must use #fetch tool.
  2. Scan Local Instructions: Discover existing instruction files in .github/instructions/ folder
  3. Extract Descriptions: Read front matter from local instruction files to get descriptions and applyTo patterns
  4. 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>)
  5. 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)
  6. Analyze Context: Review chat history, repository files, and current project needs
  7. Compare Existing: Check against instructions already available in this repository
  8. Match Relevance: Compare available instructions against identified patterns and requirements
  9. Present Options: Display relevant instructions with descriptions, rationale, and availability status including outdated instructions
  10. Validate: Ensure suggested instructions would add value not already covered by existing instructions
  11. 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.
  12. 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 #fetch tool to download assets, but may use curl using #runInTerminal tool to ensure all content is retrieved
    • Use #todos tool to track progress

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

  1. List all *.instructions.md files in the instructions/ directory
  2. For each discovered file, read front matter to extract description and applyTo patterns
  3. Build comprehensive inventory of existing instructions with their applicable file patterns
  4. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能