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

send

Skill này làm gì

Cho phép trợ lý thực hiện toàn bộ quy trình từ một thay đổi code đến một pull request đã merge. Dành cho lập trình viên muốn các kiểm tra hoàn tất trước khi merge.

Khi nào nên dùng

  • ✓Khi bạn đã thống nhất một thay đổi code và muốn nó thành một pull request.
  • ✓Khi bạn muốn trợ lý chờ các kiểm tra tích hợp liên tục hoàn tất.
  • ✓Khi bạn muốn việc merge chỉ diễn ra sau khi kiểm tra và review đạt.

Liên kết skill

https://github.com/yc-software/qm/blob/main/skills-seed/send/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/yc-software/qm/blob/main/skills-seed/send/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

“Tạo pull request cho thay đổi chúng ta đã bàn, chờ kiểm tra và merge khi mọi thứ đều xanh.”

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

Cách hoạt động

Trợ lý tạo nhánh, đẩy thay đổi lên, mở pull request và theo dõi các kiểm tra trong cùng một tiến trình. Nó sửa các vấn đề phát sinh và chỉ merge khi mọi cổng đều đạt.

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.

Babysit

Make a pull request for the change we just discussed, file it, babysit CI, fix any issues that come up, and merge once CI is fully green.

Steps

  1. Make the PR. Commit the discussed change on a feature branch (create one off the default branch if currently on it). Push it.

  2. File it. Open a pull request with a clear title and description covering why and what changed. Use gh for GitHub or glab for GitLab. Detect from the remote.

  3. Wait for CI in one blocking process, with bounded transport retries. Load the github-gitlab skill; it reports the directory holding its scripts. For GitHub, capture the PR's full head SHA and use its bundled helper, not bare gh pr checks --watch:

    node <github-gitlab dir>/scripts/watch-ci.mjs --repo OWNER/REPO --pr NUMBER --head REVIEWED_HEAD_SHA
    

    Run this with execute, an explicit sandbox_id, background:true, and authorized credentials; subscribe with background action watch and the returned process_id. Keep that sandbox ID throughout the checkout, checks, and push. Keep one watcher per PR; hand off if another agent already owns it. The helper polls internally, retries recognized transport/server errors with bounded backoff, and has a 30-minute overall deadline. Set the background lifetime longer than that. Do not wake the model repeatedly to report pending checks.

    Read the helper's JSON status, not just the exit code. Pending is not failure; TLS timeouts and connection resets are not logout or permission expiry. Failed checks, auth failures, rate limits, unknown errors, exhausted retries, and deadlines all remain nonzero. Keep set -e; never mask failure with a success marker or merge. A changed head invalidates successful checks and reviews: restart both on the new SHA. Empty, skipped, or cancelled checks do not count as success.

    For GitLab, use glab ci status --live; the GitHub helper does not cover it. Preserve its nonzero status and investigate failures before proceeding.

    Also wait for asynchronous reviewers (including Bugbot) to finish on the latest commit. Watcher success alone is never approval to merge.

  4. Adversarially review the PR — always in a fresh context, before merging. Dispatch an independent subagent (or /code-review) that has not seen you write the change. Never review your own diff in the context that produced it — that context already believes the change is correct, and that belief is exactly the bias review exists to defeat. A fresh reviewer is non-negotiable on every send, however small the diff and however green CI is.

    What scales with risk is the reviewer's depth and breadth, not its independence:

    • Small, well-tested, single-file change: one reviewer, modest effort, scoped to the diff and its immediate call sites. Cheap, but still a stranger's eyes.
    • Risky change — core control flow, auth/credentials/security, data loss or migrations, concurrency and retry logic, spend, a public API contract, or a diff too large to hold in your head: high effort, wider blast-radius reading, and consider several reviewers with distinct lenses (correctness, security, does-it-actually-reproduce).

    Prompt the reviewer to break the change: correctness bugs, edge cases, regressions, security holes, violations of the repo's CLAUDE.md/spec, overengineering (needless abstraction, flags, layers, or generality for one caller — prefer the simplest thing that works), and reward hacking (tests weakened, skipped, or tailored to pass rather than to verify; assertions gutted; intent met in letter but not spirit; CI gamed). Treat the diff as guilty until proven correct. Green CI is not review.

  5. Fix every real issue found. Address each genuine finding from the adversarial review, from CI, and from reviewers/bots: fix it, push, and go back to step 3. Re-review the delta, not the whole diff again — a fresh full review per round is how a small PR turns into an afternoon. For anything that needs human judgment, ask the user. Cap at ~3 fix rounds, then stop and report what's unresolved.

  6. Merge once green AND reviewed. Merge only when all checks pass, the adversarial review is clean (no unaddressed findings), and there are no unresolved comments/findings — re-read checks and review threads, then merge directl

Câu hỏi thường gặp

Nó có merge nếu một kiểm tra thất bại không?

Không. Nó chỉ merge khi mọi kiểm tra đều xanh và review độc lập đã đạt.

Nếu lỗi mạng làm dừng các kiểm tra thì sao?

Nó thử lại các lỗi kết nối đã nhận diện với giới hạn số lần, và bỏ cuộc sau khoảng 30 phút.

Nó có thể chạy cùng một agent khác trên cùng yêu cầu không?

Nó giữ một người theo dõi cho mỗi pull request, nên không trùng lặp với agent khác đã sở hữu nó.

Chi tiết

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

Make a PR, wait for CI with bounded transport retries, independently review, and merge only when all gates pass.

repo: yc-software/qm

Độ phổ biến

Sao GitHub
16k
Vị trí xếp hạng
#10905
Giấy phép
MIT
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ự