跳到正文
cccskills
免费在 GitHub 公开

draft-pr

Prepare commits, push a branch, and create a draft PR targeting your base branch.

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

查看安装方法

包含的文件(1)

  • SKILL.md1.7 KB

SKILL.md(原文)

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

Draft PR

Invocation

This skill defaults to running in the Developer persona. If you are not already running as Developer (for example, the user invoked /draft-pr directly or you are the parent agent), delegate execution to a Developer subagent and stop. If you are already running as Developer, continue with the steps below.

Objective

Prepare a clean branch and create a draft PR targeting your base branch.

Instructions

  1. Review the current changes with git status.
  2. Run the applicable verification checks before proceeding.
  3. Confirm or create a feature branch if the current branch is your base branch.
  4. Gather commit details and use a conventional commit message (see below).
  5. Push the branch.
  6. Generate the PR body via /pr-description.
  7. Create the draft PR targeting your base branch. PR title: if the branch name contains a ticket key, include it in the PR title. If there is no recognizable key and the user did not supply one, omit it.
  8. End with the commit hash, branch name, PR URL or creation instructions, and the recommended next step: /review.

Commit messages

  • Format: type(scope): subject (scope optional). Types: feat, fix, refactor, perf, docs, test, build, ci, chore, revert.
  • Subject: imperative, concise, lowercase except proper nouns/acronyms.
  • Do not add auto-generated Co-authored-by: trailers from tooling.
  • Before the first commit on a change, run a full verification pass from the repo root; targeted checks are fine while iterating but not a substitute for that pre-commit pass.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

brief

免费

Create a product brief document for a feature or project.

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

g2i-ai/agents522026年4月21日 更新

code

免费

Implement production changes with or without new test coverage.

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

g2i-ai/agents522026年4月21日 更新

Generate a PR description for the current branch against your base branch.

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

g2i-ai/agents522026年4月21日 更新

review

免费

Review a branch or PR for merge readiness and produce a QA report.

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

g2i-ai/agents522026年4月21日 更新

spec

免费

Transform a product brief into a technical specification.

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

g2i-ai/agents522026年4月21日 更新

tdd

免费

Practice test-driven development for new features and bug fixes.

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

g2i-ai/agents522026年4月21日 更新

查看 g2i-ai 的全部技能

报告此技能的问题