Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)48k · #4751

github

Skill này làm gì

Công cụ này giúp bạn tương tác với GitHub, trang web nơi lập trình viên lưu trữ và chia sẻ mã. Bạn có thể kiểm tra trạng thái dự án, xem issue và các lần review mã.

Khi nào nên dùng

  • ✓Khi bạn muốn biết một dự án GitHub có chạy đúng không.
  • ✓Khi muốn xem chi tiết về lỗi trong các dự án.
  • ✓Khi muốn liệt kê hoặc kiểm tra trạng thái của các lần review mã (pull request).

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/github/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/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/github/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

“Kiểm tra trạng thái của pull request số 55 trong kho 'my-user/my-project'.”

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

Cách hoạt động

Công cụ dùng chương trình `gh` để giao tiếp trực tiếp với GitHub. Bạn nói cho nó biết bạn muốn gì, như kiểm tra trạng thái một lần review, và `gh` sẽ lấy thông tin đó cho bạ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.

GitHub Skill

Use the gh CLI to interact with GitHub. Always specify --repo owner/repo when not in a git directory, or use URLs directly.

When to Use

  • When the user asks about GitHub issues, pull requests, workflow runs, or CI failures.
  • When you need gh issue, gh pr, gh run, or gh api from the command line.

Pull Requests

Check CI status on a PR:

gh pr checks 55 --repo owner/repo

List recent workflow runs:

gh run list --repo owner/repo --limit 10

View a run and see which steps failed:

gh run view <run-id> --repo owner/repo

View logs for failed steps only:

gh run view <run-id> --repo owner/repo --log-failed

Debugging a CI Failure

Follow this sequence to investigate a failing CI run:

  1. Check PR status — identify which checks are failing:
    gh pr checks 55 --repo owner/repo
    
  2. List recent runs — find the relevant run ID:
    gh run list --repo owner/repo --limit 10
    
  3. View the failed run — see which jobs and steps failed:
    gh run view <run-id> --repo owner/repo
    
  4. Fetch failure logs — get the detailed output for failed steps:
    gh run view <run-id> --repo owner/repo --log-failed
    

API for Advanced Queries

The gh api command is useful for accessing data not available through other subcommands.

Get PR with specific fields:

gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'

JSON Output

Most commands support --json for structured output. You can use --jq to filter:

gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'

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.
Câu hỏi thường gặp

'Pull request' là gì?

Đây là yêu cầu thêm các thay đổi mã vào một dự án. Nó cho phép người khác review thay đổi trước khi được chấp nhận.

'Actions runs' hoặc 'workflow runs' là gì?

Đây là các tác vụ tự động chạy trên GitHub, như kiểm thử mã, để đảm bảo mọi thứ hoạt động tốt.

Tôi có cần biết lập trình để dùng cái này không?

Không, bạn chỉ cần biết tên dự án và điều bạn muốn kiểm tra. Công cụ lo phần kỹ thuật.

Chi tiết

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

Use the `gh` CLI for issues, pull requests, Actions runs, and GitHub API queries.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#4751
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ự