跳到正文
Skillpedia
通用编程5.1k · #15088

omh-commit-pr-authoring

它能做什么

它按照你仓库自身的风格起草提交信息或拉取请求正文。只把真正运行过的测试列为已测试,其余一律列为未测试。适合希望提交和 PR 文字清晰的开发者。

适用场景

  • ✓当你需要为已完成的改动撰写提交信息时。
  • ✓当你需要为某项改动撰写拉取请求说明时。
  • ✓当你希望在提交或 PR 中如实说明测试状态时。

技能链接

https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-commit-pr-authoring/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-commit-pr-authoring/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为这次改动写提交信息。单元测试已经运行,但我没有运行端到端测试套件。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体读取仓库的约定和近期历史,把每条命令列为已运行或未运行,然后起草信息。只有确实观察到运行的测试,才会被标记为已测试。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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 under Not-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 under Not-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.md for trailer, sign-off, and template-section mapping instead of improvising them.
  • Put Closes #N on 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
常见问题

如果我没有运行测试,它会声称测试通过吗?

不会。没有运行的测试会列在未测试之下。

它会遵循我项目的格式吗?

会。起草之前,它会读取近期的日志和 PR 模板。

它会审查我的代码漏洞吗?

不会。漏洞审查属于单独的代码审查工作流程。

详情

作者的原始描述

[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

热度

GitHub 星标
5.1k
排名
#15088
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能