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

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

可直接粘贴的消息

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

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

  1. Primary Language/Framework: (e.g., JavaScript/React, Python/Django, Java/Spring Boot, etc.)
  2. Project Type: (e.g., web app, API, mobile app, desktop app, library, etc.)
  3. Additional Technologies: (e.g., database, cloud provider, testing frameworks, etc.)
  4. Development Style: (strict standards, flexible, specific patterns)
  5. 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 guidelines
  • testing.instructions.md - Testing standards and practices
  • documentation.instructions.md - Documentation requirements
  • security.instructions.md - Security best practices
  • performance.instructions.md - Performance optimization guidelines
  • code-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 creation
  • write-tests/SKILL.md - Test generation
  • code-review/SKILL.md - Code review assistance
  • refactor-code/SKILL.md - Code refactoring
  • generate-docs/SKILL.md - Documentation generation
  • debug-issue/SKILL.md - Debugging assistance

4. .github/agents/ Directory

Always create these 4 agents:

  • software-engineer.agent.md
  • architect.agent.md
  • reviewer.agent.md
  • debugger.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:

  1. Fetch specific instruction from awesome-copilot docs: https://github.com/github/awesome-copilot/blob/main/docs/README.instructions.md
  2. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能