跳到正文
cccskills
免费在 GitHub 公开

pr

Push a branch and open a PR with pre-flight checks

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Push PR

Push the current branch and open a pull request, with pre-flight hygiene checks.

Arguments

  • No arguments: run all checks, push, and open PR
  • --dry-run: run checks only, don't push or create PR
  • A PR title in quotes: use as the PR title instead of generating one

Pre-flight checks (all must pass before pushing)

Run these steps in order. Stop on first failure.

1. Rebase on latest main

git fetch origin main
git rebase origin/main

If rebase fails, stop and report the conflict.

2. Build

cargo build --features nalgebra

3. Clippy (deny warnings)

cargo clippy --all-targets --features nalgebra -- -D warnings

4. Test

cargo test --features nalgebra

5. Check for uncommitted changes

git status

If there are unstaged changes, stop and ask the user what to do.

6. Review the diff

Run git diff origin/main...HEAD --stat and git log --oneline origin/main..HEAD to summarize what's being pushed. Show this to the user.

Push and create PR

Only after all checks pass:

  1. Push the branch: git push -u origin <branch-name>
  2. Create the PR using the GitHub MCP tool mcp__github__create_pull_request
  3. Base branch: main
  4. Title: use the provided title, or generate one from the commit messages
  5. Body: include a ## Summary section with bullet points describing changes, and a ## Test plan section

Rules

  • Do NOT push to main directly — always use a feature branch
  • Do NOT include Claude session links in the PR body or commits
  • If --dry-run was passed, stop after the checks and report results
  • If any check fails, do NOT push. Fix the issue or report it to the user.
  • Keep API_COVERAGE.md in sync if any safe wrappers were added or changed

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Run a deep code review across the manifold-csg crates

中文简介正在准备中。当前显示原文说明。

zmerlynn/manifold-csg212026年9月29日 更新

publish

免费

Publish crates to crates.io with pre-flight checks

中文简介正在准备中。当前显示原文说明。

zmerlynn/manifold-csg212026年9月29日 更新

review

免费

Run a deep code review across the manifold-csg crates

中文简介正在准备中。当前显示原文说明。

zmerlynn/manifold-csg212026年9月29日 更新

Bump the manifold3d pin, add FFI + safe wrappers for new upstream C API functions, bump versions, open a PR

中文简介正在准备中。当前显示原文说明。

zmerlynn/manifold-csg212026年9月29日 更新

查看 zmerlynn 的全部技能

报告此技能的问题