Chuyển đến nội dung
Skillpedia
Agent40k · #7130

copilot-spaces

Skill này làm gì

Copilot Spaces giúp bạn đưa thông tin riêng của dự án vào cuộc trò chuyện với AI. Nó hoạt động như một thư mục có tổ chức, chứa tài liệu, code và hướng dẫn của dự án, giúp AI đưa ra câu trả lời chính xác và hữu ích hơn.

Khi nào nên dùng

  • ✓Khi bạn muốn AI trả lời dựa trên tài liệu cụ thể của dự án.
  • ✓Khi bạn nhắc đến một “Copilot Space” hoặc yêu cầu tải một space.
  • ✓Khi bạn muốn biết những space nào của dự án đang có sẵn.

Liên kết skill

https://github.com/github/awesome-copilot/blob/main/skills/copilot-spaces/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/copilot-spaces/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy tải space “Project X Documentation” để tôi có thể hỏi về nó.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Khi bạn yêu cầu tải một space, AI lấy thông tin của space đó (tài liệu, code, v.v.). Sau đó nó dùng thông tin này để trả lời câu hỏi của bạn, bảo đảm câu trả lời đúng với bối cảnh dự án.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Copilot Spaces

Use Copilot Spaces to bring curated, project-specific context into conversations. A Space is a shared collection of repositories, files, documentation, and instructions that grounds Copilot responses in your team's actual code and knowledge.

Available Tools

MCP Tools (Read-only)

Tool Purpose
mcp__github__list_copilot_spaces List all spaces accessible to the current user
mcp__github__get_copilot_space Load a space's full context by owner and name

REST API via gh api (Full CRUD)

The Spaces REST API supports creating, updating, deleting spaces, and managing collaborators. The MCP server only exposes read operations, so use gh api for writes.

User Spaces:

Method Endpoint Purpose
POST /users/{username}/copilot-spaces Create a space
GET /users/{username}/copilot-spaces List spaces
GET /users/{username}/copilot-spaces/{number} Get a space
PUT /users/{username}/copilot-spaces/{number} Update a space
DELETE /users/{username}/copilot-spaces/{number} Delete a space

Organization Spaces: Same pattern under /orgs/{org}/copilot-spaces/...

Collaborators: Add, list, update, and remove collaborators at .../collaborators

Scope requirements: PAT needs read:user for reads, user for writes. Add with gh auth refresh -h github.com -s user.

Note: This API is functional but not yet in the public REST API docs. It may require the copilot_spaces_api feature flag.

When to Use Spaces

  • User mentions "Copilot space" or asks to "load a space"
  • User wants answers grounded in specific project docs, code, or standards
  • User asks "what spaces are available?" or "find a space for X"
  • User needs onboarding context, architecture docs, or team-specific guidance
  • User wants to follow a structured workflow defined in a Space (templates, checklists, multi-step processes)

Workflow

1. Discover Spaces

When a user asks what spaces are available or you need to find the right space:

Call mcp__github__list_copilot_spaces

This returns all spaces the user can access, each with a name and owner_login. Present relevant matches to the user.

To filter for a specific user's spaces, match owner_login against the username (e.g., "show me my spaces").

2. Load a Space

When a user names a specific space or you've identified the right one:

Call mcp__github__get_copilot_space with:
  owner: "org-or-user"    (the owner_login from the list)
  name: "Space Name"      (exact space name, case-sensitive)

This returns the space's full content: attached documentation, code context, custom instructions, and any other curated materials. Use this context to inform your responses.

3. Follow the Breadcrumbs

Space content often references external resources: GitHub issues, dashboards, repos, discussions, or other tools. Proactively fetch these using other MCP tools to gather complete context. For example:

  • A space references an initiative tracking issue. Use issue_read to get the latest comments.
  • A space links to a project board. Use project tools to check current status.
  • A space mentions a repo's masterplan. Use get_file_contents to read it.

4. Answer or Execute

Once loaded, use the space content based on what it contains:

If the space contains reference material (docs, code, standards):

  • Answer questions about the project's architecture, patterns, or standards
  • Generate code that follows the team's conventions
  • Debug issues using project-specific knowledge

If the space contains workflow instructions (templates, step-by-step processes):

  • Follow the workflow as defined, step by step
  • Gather data from the sources the workflow specifies
  • Produce output in the format the workflow defines
  • Show progress after each step so the user can steer

5. Manage Spaces (via gh api)

When a user wants to create, update, or delete a space, use gh api. First, find the space number from the list endpoint.

Update a space's instructions:

gh api users/{username}/copilot-spaces/{number} \
  -X PUT \
  -f general_instructions="New instructions here"

Update name, description, or instructions together:

gh api users/{username}/copilot-spaces/{number} \
  -X PUT \
  -f name="Updated Name" \
  -f description="Updated description" \
  -f general_instructions="Updated instructions"

…
Câu hỏi thường gặp

“Copilot Space” là gì?

Đó là một tập hợp có tổ chức gồm tài liệu, code và hướng dẫn của một dự án cụ thể, được tạo ra để cung cấp bối cảnh cho AI.

AI sử dụng “Copilot Space” như thế nào?

AI tải thông tin của space và dùng nó để đưa ra câu trả lời chính xác và phù hợp hơn, như đang hỏi một chuyên gia về dự án đó.

Tôi có thể tạo hoặc sửa “Copilot Space” không?

Có. Bạn có thể tạo, cập nhật hoặc xóa space bằng các lệnh GitHub API cụ thể, như được hướng dẫn trong tài liệu kỹ thuật.

Chi tiết

Mô tả gốc của tác giả

Use Copilot Spaces to provide project-specific context to conversations. Use this skill when users mention a "Copilot space", want to load context from a shared knowledge base, discover available spaces, or ask questions grounded in curated project documentation, code, and instructions.

repo: github/awesome-copilot

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7130
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự