Chuyển đến nội dung
Skillpedia
Lập trình chung12k · #11565

gh-issues

Skill này làm gì

Skill này dẫn agent từ một issue GitHub đến một pull request đã hoàn thành. Dành cho lập trình viên muốn agent xử lý các lỗi thông thường trong kho mã.

Khi nào nên dùng

  • ✓Khi bạn muốn agent chọn vài issue GitHub đang mở và sửa một trong số đó.
  • ✓Khi bạn muốn bản sửa thành một pull request trên GitHub.
  • ✓Khi người review để lại nhận xét trên pull request và bạn muốn agent phản hồi.

Liên kết skill

https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/gh-issues/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/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/gh-issues/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

“Xem các lỗi đang mở trong kho của chúng tôi, chọn một lỗi an toàn để sửa và mở một pull request.”

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

Cách hoạt động

Agent kiểm tra kho mã và đăng nhập GitHub, liệt kê các issue ứng viên và tạo một thay đổi tập trung trên nhánh. Nó chỉ đẩy mã lên hoặc mở pull request cho kết quả bạn yêu cầu.

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.

GitHub issues to pull requests

Use this workflow for issue-to-PR work. Use gh for GitHub data and mutations, git for the local checkout, and delegate_task only when an isolated subtask is genuinely useful.

Read the bundled github Skill before executing this workflow. GitHub writes, commits, pushes, PR creation, and review replies must stay within the outcome the user requested.

Inputs

  • Repository: accept owner/repo or infer it from git remote get-url origin.
  • Optional filters: label, milestone, assignee, state, and limit.
  • Optional fork: push a branch to a named fork and open the PR against the source repository.
  • Dry run: list candidates and planned actions without changing local or remote state.
  • Reviews only: skip issue selection and process explicitly scoped PR feedback.

If the user asked only to inspect, triage, or plan, stop before changing files, branches, issues, or PRs.

1. Resolve and verify the repository

git remote get-url origin
git status --short
gh auth status
gh repo view OWNER/REPO --json nameWithOwner,defaultBranchRef

Derive and keep explicit:

  • SOURCE_REPO: repository containing the issue.
  • PUSH_REPO: fork when explicitly requested, otherwise the source.
  • BASE_BRANCH: source default branch unless the user named another.
  • PUSH_REMOTE: configured fork remote or origin.

Stop if GitHub authentication is unavailable. Never search local configuration files for tokens, print gh auth token, or ask the user to paste a token into chat.

Do not mix issue work with unrelated uncommitted changes. If the checkout is dirty, preserve those changes and either ask the user how to proceed or create a dedicated git worktree after confirming the repository and base branch.

In fork mode, show the exact source, fork, base branch, and remote before adding or changing a git remote.

2. Fetch candidates

gh issue list --repo "$SOURCE_REPO" --state open --limit 10 \
  --json number,title,labels,url,body,assignees,milestone

Add only the filters the user requested. gh issue list excludes pull requests. If there are no matches, report that and stop. For a dry run, show a compact candidate list with issue number, title, labels, and URL, then stop.

3. Avoid duplicate work

For each candidate, look for an existing fix before selecting it:

gh pr list --repo "$SOURCE_REPO" --search "$SOURCE_REPO#<n>" --state open \
  --json number,url,title,headRefName
gh pr list --repo "$SOURCE_REPO" --head "fix/issue-<n>" --state open \
  --json number,url
gh api "repos/$PUSH_REPO/branches/fix/issue-<n>" >/dev/null

Skip an issue that already has an open PR or branch unless the user asked to continue that work. Read the issue body and relevant code before deciding it is actionable. Prefer small, reproducible issues with a clear acceptance condition; flag ambiguous or security-sensitive issues for clarification.

When several issues match and the user did not already select them, present the candidates and ask which issue numbers to fix.

4. Isolate the work

Default to one issue at a time. Ekko subagents share the workspace, so never let concurrent workers checkout different branches in the same working tree.

For one issue, either implement locally or call delegate_task in foreground mode with a self-contained goal and all required context. For independent parallel work, first create one dedicated git worktree per issue and give each background subagent its exact worktree path. Use background mode only when enabled and useful; progress is visible to the user, but the parent must not pretend it synchronously collected a result.

The task context must include:

  • issue URL, title, body, labels, and acceptance conditions;
  • source and push repositories, base branch, push remote, and fork mode;
  • isolated working directory and target branch fix/issue-<n>;
  • required tests and proof;
  • the authorized mutation boundary, including whether commit, push, and PR creation were requested.

Delegated subagents cannot ask the user questions or delegate recursively. Resolve ambiguity before delegation.

5. Implement and prove the fix

For each selected issue:

  1. Create fix/issue-<n> from the verified BASE_BRANCH in its isolated working tree.
  2. Reproduce or locate the problem.
  3. Implement the smallest coherent fix; avoid unrelated refactors.
  4. Add or update focused tests when appropriate.
  5. Run the relevant tests, type checks, and build steps.
  6. R
Câu hỏi thường gặp

Nó có thay đổi gì nếu tôi chỉ muốn một danh sách không?

Không. Nếu bạn chỉ yêu cầu kiểm tra, phân loại hoặc lập kế hoạch, nó dừng lại trước khi thay đổi file, nhánh, issue hay pull request.

Nó có thể đẩy bản sửa lên fork không?

Có, nếu bạn nêu tên một fork. Khi đó nó mở pull request vào kho gốc.

Nó dùng công cụ nào cho GitHub?

Nó dùng công cụ dòng lệnh GitHub là gh, và bạn cần đăng nhập vào đó.

Chi tiết

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

Triage GitHub issues, select safe candidates, implement focused fixes, open pull requests, and address actionable review feedback.

repo: EKKOLearnAI/ekko-studio

Độ phổ biến

Sao GitHub
12k
Vị trí xếp hạng
#11565
Giấy phép
—
Cập nhật
2/11/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ự