issue-fields-migration
Skill này làm gì
Công cụ này giúp sắp xếp thông tin trong các issue của GitHub. Nó có thể chuyển các nhãn hiện có hoặc trường dự án cũ thành các trường có cấu trúc, có thể tìm kiếm, như 'Priority' hoặc 'Type'.
Khi nào nên dùng
- ✓Khi bạn muốn sắp xếp nhãn của dự án thành các trường chuẩn hóa.
- ✓Khi bạn chuyển dữ liệu từ dự án cũ sang các trường GitHub mới.
- ✓Khi bạn muốn thay các nhãn rời rạc bằng thông tin có cấu trúc hơn.
Liên kết skill
https://github.com/github/awesome-copilot/blob/main/skills/issue-fields-migration/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn chuyển các nhãn 'bug' và 'feature' trong repository của mình sang trường 'Type' trong issue fields.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ phân tích các nhãn hoặc trường dự án hiện có của bạn. Sau đó, nó chuyển đổi chúng thành issue fields mới của GitHub, giúp bạn sắp xếp và tìm thông tin hiệu quả hơ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.
Issue Fields Migration
Issue fields are org-level typed metadata (single select, text, number, date) that replace label-based workarounds with structured, searchable, cross-repo fields. Every organization gets Priority, Effort, Start date, and Target date preconfigured, with support for up to 25 custom fields.
This skill bulk-migrates existing metadata into issue fields from two sources:
- Repo labels: Convert labels like
p0,p1,priority/highinto structured issue field values (e.g. the Priority field). Supports migrating multiple labels at once and optionally removing them after migration. - Project V2 fields: Copy field values (single select, text, number, date, iteration) from a GitHub Project into the equivalent org-level issue fields.
When to Use
- User added org-level issue fields that overlap with existing project fields
- User wants to copy values from project fields to issue fields before deleting the old project fields
- User asks about "migrating", "transferring", or "copying" project field data to issue fields
- User wants to convert repo labels (e.g., p0, p1, p2, p3) into issue field values (e.g., Priority field)
- User asks about replacing labels with issue fields or cleaning up labels after adopting issue fields
Prerequisites
- The target org must have issue fields enabled
- The issue fields must already exist at the org level
- For project field migration: issue fields must be added to the project
- For label migration: labels must exist on the target repo(s)
- The user must have write access to the repos (and project, if migrating project fields)
ghCLI must be authenticated with appropriate scopes
Available Tools
MCP Tools (read operations)
| Tool | Purpose |
|---|---|
mcp__github__projects_list |
List project fields (list_project_fields), list project items with values (list_project_items) |
mcp__github__projects_get |
Get details of a specific project field or item |
CLI / REST API
| Operation | Command |
|---|---|
| List org issue fields | gh api /orgs/{org}/issue-fields -H "X-GitHub-Api-Version: 2026-03-10" |
| Read issue field values | gh api /repos/{owner}/{repo}/issues/{number}/issue-field-values -H "X-GitHub-Api-Version: 2026-03-10" |
| Write issue field values | gh api /repositories/{repo_id}/issues/{number}/issue-field-values -X POST -H "X-GitHub-Api-Version: 2026-03-10" --input - |
| Get repository ID | gh api /repos/{owner}/{repo} --jq .id |
| List repo labels | gh label list -R {owner}/{repo} --limit 1000 --json name,color,description |
| List issues by label | gh issue list -R {owner}/{repo} --label "{name}" --state all --json number,title,labels --limit 1000 |
| Remove label from issue | gh api /repos/{owner}/{repo}/issues/{number}/labels/{label_name} -X DELETE |
See references/issue-fields-api.md, references/projects-api.md, and references/labels-api.md for full API details.
Workflow
Step 0: Migration Source
Ask the user what they are migrating:
"Are you migrating labels or project fields?"
- Labels: proceed to the Label Migration Flow below.
- Project fields: proceed to the Project Field Migration Flow below.
If the user says labels:
- Ask: "Which org and repo(s) contain the labels?"
- Ask: "Which labels do you want to migrate?" (they can name them or say "show me the labels first")
If the user says project fields:
- Ask: "Can you share the link to your project or tell me the org name and project number?"
- Ask: "Which field do you want to migrate?"
Label Migration Flow
Use this flow when the user wants to convert repo labels into issue field values. Labels can only map to single_select issue fields (each label name maps to one option value).
Phase L1: Input & Label Discovery
- Ask the user for: org name and repo(s) to migrate.
- Fetch labels from each repo:
gh label list -R {owner}/{repo} --limit 1000 --json name,color,description
- Fetch org issue fields:
gh api /orgs/{org}/issue-fields \
-H "X-GitHub-Api-Version: 2026-03-10" \
--jq '.[] | {id, name, content_type, options: [.options[]?.name]}'
…
Câu hỏi thường gặp
“Issue fields” là gì?
Đây là các trường cấp tổ chức trong GitHub, cho phép bạn thêm siêu dữ liệu có cấu trúc vào issue, như mức độ ưu tiên, ngày tháng hoặc văn bản, thay vì chỉ dùng nhãn.
Tôi có thể chuyển mọi loại nhãn không?
Có, bạn có thể chuyển nhãn của repository hoặc giá trị trường dự án. Công cụ giúp ánh xạ chúng sang các issue fields tương ứng.
Tôi có cần quyền đặc biệt để làm việc này không?
Có, bạn cần quyền ghi trên các repository và dự án muốn chuyển, và issue fields phải được bật trong tổ chức của bạn.
Chi tiết
Mô tả gốc của tác giả
Bulk-migrate metadata to GitHub issue fields from two sources: repo labels (e.g. priority labels to a Priority field) and Project V2 fields. Use when users say "migrate my labels to issue fields", "migrate project fields to issue fields", "convert labels to issue fields", "copy project field values to issue fields", or ask about adopting issue fields. Issue fields are org-level typed metadata (sin
repo: github/awesome-copilot
Độ phổ biến
- Sao GitHub
- 40k
- Vị trí xếp hạng
- #7252
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
acquire-codebase-knowledge
40kGiúp agent của bạn hiểu và ghi tài liệu cho một dự án mã nguồn có sẵn. Hữu ích khi đón thành viên mới hoặc nắm tổng quan về kiến trúc.
acreadiness-assess
40kGiúp agent của bạn đánh giá mức độ sẵn sàng cho AI của dự án và tạo báo cáo. Hữu ích để biết dự án đã sẵn sàng dùng công cụ AI đến đâu.
acreadiness-generate-instructions
40kGiúp agent của bạn tạo hướng dẫn cho công cụ AI dựa trên kết quả đánh giá. Hữu ích để cải thiện cách AI làm việc với mã và khắc phục các khoảng trống.
acreadiness-policy
40kGiúp agent của bạn xác định hoặc áp dụng chính sách đánh giá dự án bằng AI. Hữu ích để chuẩn hóa cách đánh giá dự án và đảm bảo tuân thủ.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.