omh-commit-pr-authoring
Skill này làm gì
Skill này soạn thông điệp commit hoặc nội dung pull request theo phong cách riêng của kho mã. Skill chỉ liệt kê các kiểm thử thật sự đã chạy là đã kiểm thử, còn lại là chưa kiểm thử. Skill dành cho lập trình viên muốn văn bản commit và PR rõ ràng.
Khi nào nên dùng
- ✓Khi bạn cần thông điệp commit cho một thay đổi đã hoàn thành.
- ✓Khi bạn cần mô tả pull request cho một thay đổi.
- ✓Khi bạn muốn trạng thái kiểm thử được nói trung thực trong commit hoặc PR.
Liên kết skill
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-commit-pr-authoring/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Viết thông điệp commit cho thay đổi này. Các kiểm thử đơn vị đã chạy, nhưng tôi chưa chạy bộ kiểm thử đầu cuối.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc quy ước của kho và lịch sử gần đây, liệt kê từng lệnh là đã chạy hoặc chưa chạy, rồi soạn thông điệp. Chỉ những kiểm thử đã được quan sát là chạy mới được đánh dấu là đã kiểm thử.
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.
Commit Pr Authoring
This is an OMH commit-pr-authoring workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
commit-pr-authoring exists because nothing in the catalog authored the commit or the PR body. code-review reads a commit message as a thing to review and github-event-ops routes PR events, so the text an engineer writes several times a day had no owner, and nothing applied the observed-versus-prepared split to it.
First Steps
- Read the PR template and the recent log, and record the convention before drafting.
- Build the evidence ledger: each command, observed with its exit status or not_observed.
Do Not Use When
- The request is to find defects in the diff or judge whether the change is ready; use
omh-code-review. - The request routes an incoming pull-request, issue, or CI webhook event; use
omh-github-event-ops. - The request turns a chat report into a GitHub issue; use
omh-github-issue-intake. - The request is release notes or product copy for readers outside the repository; use
omh-content-operator.
Examples
Good example:
- Prompt: write the commit message for this change, the unit tests ran but I did not run the e2e suite
- Expected behavior: Read the log's subject shape and trailers, record the unit test command as observed and the e2e suite as not_observed, and draft the message with the unit tests under
Tested:and the e2e suite underNot-tested:. - Why: The ledger decides which line each command lands on, not the wording of the request.
Bad example:
- Prompt: say the integration tests pass, they will once CI runs
- Expected behavior: Keep the integration tests under
Not-tested:until an observed run exists, and say CI has not been observed. - Why: A prediction worded as a result is exactly what
Tested:must not carry.
Completion Checklist
- The convention read names the template and log sample it drew from.
- Every
Tested:entry maps to an observed ledger row with its exit status. - Every prepared, skipped, or unobserved command is under
Not-tested:with its reason. - The draft lists the paths to stage, and any state-claiming subject prefix maps to an observed ledger row.
- Nothing was committed, pushed, or opened by OMH.
Recovery Notes
- If no run records exist, draft with an empty
Tested:and every command underNot-tested:, and ask for the observed output. - If the repository has no template or visible convention, say so and use a plain subject and body rather than importing one.
When to Use
Use when a change is ready to record and the user wants its commit message or pull-request body written: the repository's template and recent log read first, the subject and body in that convention, the trailers the repo requires, and a Tested: line that lists only commands observed to run, with everything prepared but not run under Not-tested:. OMH prepares the text; the commit, the push, and the PR are the user's or the executor's.
Strong routing signals: `commit-pr-authoring`, `commit message`, `commit messages`, `write the commit message`, `draft the commit message`, `commit body`, `squash message`, `pr body`, `pr description`, `pull request body`, `pull request description`, `draft the pr`, `write the pr`, `pr template`, `tested trailer`, `not-tested trailer`, `lore trailers`, `напиши коммит`, `сообщение коммита`, `описание пул реквеста`, `текст коммита`
Catalog Metadata
Category: verification
Phase: commit-pr-authoring
Quality tier: evidence-ledger-gated
Reasoning demand: standard
Quality bar:
- Read the template and at least the last few commits before writing a word, and record what was found.
- Build the evidence ledger first; the
Tested:and validation sections are projections of it, not prose. - Write the subject in the repository's shape and the body as why the change exists, not a restated diff.
- Load
references/commit-and-pr-conventions.mdfor trailer, sign-off, and template-section mapping instead of improvising them. - Put
Closes #Non its own line only when every success criterion of that issue is met.
Required inputs:
- the change: the diff, the staged files, or the branch compared with its base
- the repository's PR template and a sample of its recent commit log
- the commands that ran for this change, each with its observed exit status
- the commands that were prepared, planned, or skipped, and why
- the issue or goal th
Câu hỏi thường gặp
Nó có khẳng định kiểm thử đã đạt dù tôi không chạy không?
Không. Các kiểm thử chưa chạy được liệt kê dưới mục chưa kiểm thử.
Nó có theo định dạng dự án của tôi không?
Có. Nó đọc nhật ký gần đây và mẫu PR trước khi soạn.
Nó có rà soát mã để tìm lỗi không?
Không. Rà soát lỗi là một quy trình rà soát mã riêng.
Chi tiết
Mô tả gốc của tác giả
[omh] Commit message or pull-request body to write for a change: draft it in the repository's own convention, with `Tested:` listing only commands observed to run and everything prepared but not run under `Not-tested:`. Use when the user says: commit-pr-authoring, commit message, commit messages, write the commit message, draft the commit message, commit body, squash message, pr body.
repo: rlaope/oh-my-hermes
Độ phổ biến
- Sao GitHub
- 5.1k
- Vị trí xếp hạng
- #15088
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
omh-accessibility-audit
5.1kGiúp agent của bạn kiểm tra màn hình hoặc luồng có khoảng trống về khả năng truy cập không, như dùng bàn phím, nhãn trình đọc màn hình, tương phản và vùng chạm.
omh-adversarial-consensus
5.1kGiúp agent của bạn tấn công một đề xuất kỹ thuật từ nhiều góc độ độc lập trước khi bạn cam kết, rồi tổng hợp những gì còn đứng vững.
omh-agent-debug
5.1kGiúp agent của bạn tìm hiểu vì sao một agent AI khác bị kẹt, lặp vòng hoặc trôi khỏi nhiệm vụ, và gợi ý cách phục hồi nhỏ nhất an toàn.
omh-agent-instructions
5.1kGiúp agent của bạn viết hoặc cập nhật tệp hướng dẫn, như AGENTS.md hoặc CLAUDE.md, để nói cho các công cụ AI cách làm việc trong một dự án.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.