Skip to main content

Creating GitHub Copilot Spaces

Create spaces to organize and centralize relevant content that grounds Copilot’s responses in the right context for a specific task.

누가 이 기능을 사용할 수 있나요?

Anyone with a Copilot license can use 공백.

For an overview of Copilot Spaces, see GitHub Copilot Spaces를 활용한 컨텍스트 구성 및 공유 정보.

Creating a space

  1. To create a space, go to https://github.com/copilot/spaces, and click Create space.

  2. Give your space a name.

  3. Choose whether the space is owned by you or by an organization you belong to. Organization-owned 공백 can be shared using GitHub’s built-in permission model.

  4. Optionally, add a description. This does not affect the responses Copilot gives in the space, but it can help others understand the context of the space.

    참고 항목

    You can change the name and description of your space at any time by clicking Edit in the top right corner of the space.

  5. Click Save in the top right corner of the page.

Adding context to a space

You can add two types of context to your space:

  • Instructions: Free text that describes what Copilot should focus on within this space. Include its areas of expertise, what kinds of tasks it should help with, and what it should avoid. This helps Copilot give more relevant responses based on your intent.

    For example:

    You are a SQL generator. Your job is to take the sample queries and data schemas defined in the attached files and generate SQL queries based on the user's goals.

  • Sources: This context will be used to provide more relevant answers to your questions. Additionally, 공백 will always refer to the latest version of the code on the main branch of the repository.

    To add sources, click Add sources, then choose one of the following options:

    • Add files and repositories: You can add files, folders, and entire GitHub repositories. When you add a repository, Copilot searches its contents to find relevant information, but adding specific files or folders that are most relevant to your work will give you the best results. This can include code files, documentation, and other content that helps Copilot understand the context of your space.
    • Link files, pull requests, and issues: You can paste the URLs of the GitHub content, including pull requests and issues.
    • Upload a file: You can upload files directly from your local machine. This includes images, text files, rich documents, and spreadsheets.
    • Add text content: You can type or paste free-text content, such as transcripts, notes, or any other relevant information that can help Copilot understand the context of your space.

Next steps