address-github-comments – skill Lập trình cho agent AI
Dùng khi cần xử lý các bình luận review hoặc issue trên Pull Request GitHub đang mở bằng gh CLI.
Cài skill address-github-comments bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/address-github-comments-45de6.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /address-github-comments – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/address-github-comments-45de6.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $address-github-comments – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/address-github-comments-45de6.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /address-github-comments – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/address-github-comments-45de6.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /address-github-comments – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Address GitHub Comments
Overview
Efficiently address PR review comments or issue feedback using the GitHub CLI (gh). This skill ensures all feedback is addressed systematically.
Prerequisites
Ensure gh is authenticated.
gh auth statusIf not logged in, run gh auth login.
Workflow
1. Inspect Comments
Fetch the comments for the current branch's PR.
gh pr view --comments--comments shows conversation comments; it does not enumerate every inline review thread.
Use the available GitHub connector or the GraphQL pullRequest.reviewThreads connection
with pagination to inspect inline comments, file/line anchors, and resolution state.
Record the repository, PR number, current head SHA, thread IDs, and requested changes.
2. Categorize and Plan
- List the comments and review threads.
- Propose a fix for each.
- Address feedback already covered by the user's requested scope. Ask only when feedback conflicts, expands scope, or requires a consequential choice.
3. Apply Fixes
Read the surrounding implementation, preserve unrelated edits, and apply the changes for the selected comments. Run the relevant repository checks and bind the result to the updated head before reporting a fix.
4. Respond to Comments
When the user authorizes posting replies, respond with the commit and verification evidence.
A conversation comment does not resolve an inline review thread. Resolve the specific thread
through the supported GitHub API only after its request is actually addressed and resolution
is authorized; otherwise leave a proposed reply for the user.
gh pr comment <PR_NUMBER> --body "Addressed in <commit SHA>; verified with <check and result>."Common Mistakes
- Applying fixes without understanding context: Always read the surrounding code of a comment.
- Not verifying auth: Check
gh auth statusbefore starting.
When to Use
Use when an existing PR has review threads or issue comments that require a scoped code repair and an evidence-backed response.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- architecture-decision-records – Viết và duy trì Architecture Decision Records (ADR) theo các thực hành tốt nhất để ghi…
- architecture-patterns – Triển khai các mẫu kiến trúc backend đã được kiểm chứng như Clean Architecture…
- gh-address-comments – Hỗ trợ xử lý các bình luận review/issue trên PR GitHub đang mở của nhánh hiện tại bằng…
- airtable – API REST của Airtable qua curl. CRUD bản ghi, bộ lọc, upsert.
- claude-api – Tài liệu tham khảo cho Claude API / Anthropic SDK — model id, giá, tham số, streaming…
- code-simplification – Đơn giản hóa code để dễ đọc hơn. Dùng khi refactor code cho rõ ràng hơn mà không thay…
- astropy – Thư viện Python cốt lõi cho quy trình thiên văn học và vật lý thiên văn cần dùng API của…
- async-python-patterns – Thành thạo asyncio, lập trình đồng thời và mẫu async/await trong Python cho ứng dụng…