Chuyển đến nội dung
Skillpedia
Lập trình chung8.2k · #12546

create-pr

Skill này làm gì

Skill này hướng dẫn AI của bạn chuẩn bị và mở một pull request trên GitHub. Dành cho lập trình viên muốn một thay đổi được mô tả tốt và dễ xem xét.

Khi nào nên dùng

  • ✓Khi bạn đã hoàn thành công việc trên một nhánh và muốn mở pull request.
  • ✓Khi bạn muốn mô tả pull request theo mẫu của dự án.
  • ✓Khi bạn muốn pull request được mở dưới dạng bản nháp để xem xét an toàn.

Liên kết skill

https://github.com/DevCaress/guia-entrevistas-de-programacion/blob/main/.claude/skills/create-pr/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/DevCaress/guia-entrevistas-de-programacion/blob/main/.claude/skills/create-pr/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

“Chuẩn bị một pull request cho nhánh của tôi theo mẫu dự án và mở nó dưới dạng bản nháp.”

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

Cách hoạt động

Skill kiểm tra nhánh và diff của nó, chạy các kiểm tra của kho mã, rồi viết tiêu đề và mô tả từ mẫu. Nó chỉ push và mở pull request nháp khi 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.

Create Pull Request

Prepare reviewable pull requests for main. Keep the branch focused, preserve unrelated work, and never merge or modify another person's pull request.

Workflow

  1. Inspect the current branch, git status --short, the diff against main, recent commits, and any existing pull request for the branch.

  2. Confirm the branch is not main and that it contains a small, coherent change. If the scope, target branch, or included files are unclear, ask before proceeding.

  3. Ensure all intended work is committed. Use the create-commit skill if a commit is needed.

  4. Run the relevant validation commands from CONTRIBUTING.md. Report failures accurately; do not weaken checks or use bypass flags.

  5. Derive a concise Conventional Commit-style PR title, such as docs(react): add testing resources. Reuse a suitable user-provided title.

  6. Build the description from .github/pull_request_template.md:

    • Explain what changed and why.
    • Add Closes #<number> only when an issue is known.
    • Mark only validation commands that actually passed.
    • Keep unchecked items unchecked and do not claim work that was not performed.
  7. If the user asked to open the PR, push the current branch and create a draft pull request targeting main. Use GitHub CLI or an authenticated GitHub integration. If the user asked only to prepare it, provide the title and body without pushing or creating anything.

  8. Return the PR URL, target branch, title, validation results, and any limitations.

Safety rules

  • Do not push or create a PR unless the user explicitly requested that external action.
  • Do not use --force, alter branch history, merge, approve, or request review unless explicitly asked.
  • Do not include secrets, generated output, local configuration, or unrelated changes.
  • Do not create a duplicate PR. Update or report an existing PR instead.
  • Use main as the base branch unless the user specifies another target.
Câu hỏi thường gặp

Pull request có được mở dưới dạng bản nháp không?

Có, bản nháp là mặc định trừ khi bạn yêu cầu khác.

Nó có hợp nhất pull request không?

Không. Skill không bao giờ hợp nhất hay thay đổi pull request của người khác.

Nó có khẳng định các kiểm tra đã đạt khi chưa không?

Không. Skill nói phải báo cáo lỗi chính xác và chỉ đánh dấu những kiểm tra thực sự đã đạt.

Chi tiết

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

Prepare and open a safe GitHub pull request for this repository. Use when the user asks to create, open, or prepare a pull request from completed branch work. Inspect the branch and diff, validate changes, follow the repository PR template, push only when authorized, and open a draft PR by default.

repo: DevCaress/guia-entrevistas-de-programacion

Độ phổ biến

Sao GitHub
8.2k
Vị trí xếp hạng
#12546
Giấy phép
MIT
Cập nhật
8/8/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ự