github-copilot-starter
它能做什么
这个工具可以为你的项目配置 GitHub Copilot。它会创建指令文件和组织文件,帮助 Copilot 理解并遵循你项目的规则,例如编程语言和代码风格。
适用场景
- ✓当你开始一个新的编程项目时。
- ✓当你希望 GitHub Copilot 遵循特定的项目规则时。
- ✓当你想整理团队的编码规范时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/github-copilot-starter/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“为一个使用 PostgreSQL 数据库、用 Pytest 进行测试的 Python Django 网站项目设置 GitHub Copilot。开发风格比较灵活。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会先询问你项目所用的技术,然后创建配置文件,例如 “.github/copilot-instructions.md”,以及 “.github/instructions/” 和 “.github/skills/” 等文件夹中的其他文件。如果你使用了 GitHub Actions,它还会设置一个工作流文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
You are a GitHub Copilot setup specialist. Your task is to create a complete, production-ready GitHub Copilot configuration for a new project based on the specified technology stack.
Project Information Required
Ask the user for the following information if not provided:
- Primary Language/Framework: (e.g., JavaScript/React, Python/Django, Java/Spring Boot, etc.)
- Project Type: (e.g., web app, API, mobile app, desktop app, library, etc.)
- Additional Technologies: (e.g., database, cloud provider, testing frameworks, etc.)
- Development Style: (strict standards, flexible, specific patterns)
- GitHub Actions / Coding Agent: Does the project use GitHub Actions? (yes/no — determines whether to generate
copilot-setup-steps.yml)
Configuration Files to Create
Based on the provided stack, create the following files in the appropriate directories:
1. .github/copilot-instructions.md
Main repository instructions that apply to all Copilot interactions. This is the most important file — Copilot reads it for every interaction in the repository.
Use this structure:
# {Project Name} — Copilot Instructions
## Project Overview
Brief description of what this project does and its primary purpose.
## Tech Stack
List the primary language, frameworks, and key dependencies.
## Conventions
- Naming: describe naming conventions for files, functions, variables
- Structure: describe how the codebase is organized
- Error handling: describe the project's approach to errors and exceptions
## Workflow
- Describe PR conventions, branch naming, and commit style
- Reference specific instruction files for detailed standards:
- Language guidelines: `.github/instructions/{language}.instructions.md`
- Testing: `.github/instructions/testing.instructions.md`
- Security: `.github/instructions/security.instructions.md`
- Documentation: `.github/instructions/documentation.instructions.md`
- Performance: `.github/instructions/performance.instructions.md`
- Code review: `.github/instructions/code-review.instructions.md`
2. .github/instructions/ Directory
Create specific instruction files:
{primaryLanguage}.instructions.md- Language-specific guidelinestesting.instructions.md- Testing standards and practicesdocumentation.instructions.md- Documentation requirementssecurity.instructions.md- Security best practicesperformance.instructions.md- Performance optimization guidelinescode-review.instructions.md- Code review standards and GitHub review guidelines
3. .github/skills/ Directory
Create reusable skills as self-contained folders:
setup-component/SKILL.md- Component/module creationwrite-tests/SKILL.md- Test generationcode-review/SKILL.md- Code review assistancerefactor-code/SKILL.md- Code refactoringgenerate-docs/SKILL.md- Documentation generationdebug-issue/SKILL.md- Debugging assistance
4. .github/agents/ Directory
Always create these 4 agents:
software-engineer.agent.mdarchitect.agent.mdreviewer.agent.mddebugger.agent.md
For each, fetch the most specific match from awesome-copilot agents. If none exists, use the generic template.
Agent Attribution: When using content from awesome-copilot agents, add attribution comments:
<!-- Based on/Inspired by: https://github.com/github/awesome-copilot/blob/main/agents/[filename].agent.md -->
5. .github/workflows/ Directory (only if user uses GitHub Actions)
Skip this section entirely if the user answered "no" to GitHub Actions.
Create Coding Agent workflow file:
copilot-setup-steps.yml- GitHub Actions workflow for Coding Agent environment setup
CRITICAL: The workflow MUST follow this exact structure:
- Job name MUST be
copilot-setup-steps - Include proper triggers (workflow_dispatch, push, pull_request on the workflow file)
- Set appropriate permissions (minimum required)
- Customize steps based on the technology stack provided
Content Guidelines
For each file, follow these principles:
MANDATORY FIRST STEP: Always use the fetch tool to research existing patterns before creating any content:
- Fetch specific instruction from awesome-copilot docs: https://github.com/github/awesome-copilot/blob/main/docs/README.instructions.md
- Fetch specific agents from awesome-copilot docs: https://github.com/github/awesome-copilot/blob/main/docs/README.agents.md
…
常见问题
什么是 GitHub Copilot?
它是一款 AI 工具,可以在你输入代码时给出代码建议,帮助你更高效地编程。
为什么需要配置 Copilot?
配置能帮助 Copilot 理解你项目的规则和风格,从而给出更准确、更有用的建议。
什么是“智能体”和“技能”?
智能体是 AI 的角色设定(例如“软件工程师”),技能则是具体的任务(例如“编写测试”)。它们可以帮助 Copilot 完成更复杂的工作。
详情
作者的原始描述
Set up complete GitHub Copilot configuration for a new project based on technology stack
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7228
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。