‹ 首页

commit-and-pr

@isaac-sim · 收录于 昨天 · 上游提交 昨天

Creates Arena-conformant commits and pull requests. Enforces DCO sign-off (git commit -s), no AI attribution lines (no Co-Authored-By, no Generated-with-Claude footers), <username>/<type>/<short-description> branch naming, separate new commits rather than --amend when iterating on PR feedback, and main as the default base branch. Use when the user asks to commit, stage changes, push the current branch, open a pull request, make a PR, submit changes, or mark work as ready to merge.

适合你,如果希望自动遵循团队的 Git 提交和 PR 约定

/ 通过 npx 安装 校验哈希
npx oh-my-skill add isaac-sim/isaaclab-arena/commit-and-pr
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- isaac-sim/isaaclab-arena/commit-and-pr
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify isaac-sim/isaaclab-arena/commit-and-pr
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
500GitHub stars
~888上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 62a5339 · 表述以原文为准
它做什么

安装后,Claude会按照Arena贡献者指南帮你创建提交和拉取请求:提交时强制包含DCO签名,使用指定的分支命名格式,禁止AI归属行;迭代反馈时添加新提交而非修改历史;PR标题和正文有格式要求;目标分支默认为main。

什么时候触发

当你要求提交代码、暂存更改、推送分支、创建拉取请求或标记工作为可合并时触发。

装好后可以这样说
Claude会执行提交并推送,遵循DCO和分支命名规范。
Claude会推送当前分支并打开PR,标题和正文符合格式。
Claude会创建新的提交,不会修改已有历史。
技能原文 SKILL.md作者撰写 · Apache-2.0 · 62a5339

Commit and Pull Request

Creates commits and PRs that follow Arena's contributor guidelines.

Commit
  1. Run the pre-commit-check skill (or pre-commit run --all-files on the host — pre-commit is not installed in the container) until the working tree is clean. Do not commit through hook failures.
  2. Stage specific files rather than using git add -A — this avoids accidentally committing dotfiles, credentials, or large untracked artifacts.
  3. Sign off the commit (per CONTRIBUTING.md — Arena currently requires DCO sign-off; the policy is on the books but not yet CI-enforced):

``bash git commit -s -m "<subject>" ``

  1. Subject line: imperative mood, ~50 characters, no trailing period.
  2. Good: Fix attribute access on wrapped env
  3. Bad: Fixed the attribute access on the wrapped env. (past tense, trailing period)
  4. Body (when needed): blank line after the subject, wrap at 72 chars, explain what and why — not how (the diff shows that).
  5. No AI attribution lines. Do not include Co-Authored-By: Claude..., Generated with Claude Code, or similar footers. The DCO sign-off is the only required trailer.

Use a heredoc for multi-paragraph messages so quoting stays clean:

git commit -s -m "$(cat <<'EOF'
<subject>

<body paragraph 1>

<body paragraph 2>
EOF
)"
Branch

Branch naming: <username>/<type>/<short-description> where <type> is one of feature, fix, docs, refactor, chore, ci, and <short-description> is kebab-case.

Examples: <username>/feature/video-recording, <username>/fix/experiment-runner-teardown, <username>/docs/update-readme.

Do not use top-level type prefixes that omit the username (e.g. feature/foo, fix/bar).

Pull request
  1. Push the branch (set upstream on first push):

``bash git push -u origin <branch-name> ``

  1. Open the PR against main (the active branch):

``bash gh pr create --base main \ --title "<short imperative subject>" \ --body "<see body format below>" ``

  1. PR title follows the same rules as a commit subject: imperative, ~70 chars max, no trailing period.
  1. PR body follows .github/pull_request_template.md:

```markdown ## Summary <one-line description of the change, ≤50 chars>

## Detailed description

  • <why the change was needed>
  • <what was changed>
  • <impact / what to watch for> ```

Keep it terse — 2–5 detail bullets total. Agent-generated PR bodies tend toward 5+ sections and 500+ words; resist that. The template's bullet form is the standard.

Iterating on review feedback

When addressing review comments, add new commits. Do not --amend and force-push, because reviewers need to see each round of changes as a discrete commit.

# good
git commit -s -m "Address review: rename foo to bar"
git push

# avoid
git commit --amend
git push --force

The exception: if a single commit is purely a typo fix in your own as-yet-unmerged work and no one has reviewed it, --amend is fine.

Verify

Before declaring the work done:

gh pr view --json title,baseRefName

Confirm:

  • baseRefName is main.
  • Title has no trailing period and is in imperative mood.
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。