AgentSkillsCN

create-pr

将当前分支推送,并为 ByteSync 创建 Pull Request。当用户希望智能体推送分支并打开 PR,同时需要英文版的 PR 标题与描述时,可选用此服务。

SKILL.md
--- frontmatter
name: create-pr
description: Push the current branch and create a Pull Request for ByteSync. Use when the user wants the agent to push a branch and open a PR, and requires the PR title and description in English.

Request PR

Overview

Provide a short workflow to push the current branch and open a Pull Request with an English title and description using the gh CLI.

Workflow

1) Confirm branch state

Confirm the current branch name and whether there are uncommitted changes. If changes remain, ask whether to commit before pushing.

2) Push branch

Push the current branch to the remote. If the user did not specify a tool, default to using the gh CLI context and run a normal git push for the current branch.

Example:

bash
git push -u origin HEAD

3) Create PR

Create a Pull Request using gh pr create with:

  • English title
  • English description summarizing changes and approach

4) Provide PR text template

Provide a minimal PR template to pass to gh pr create:

Title: [type] Short summary

Description:

  • Summary:
  • Key changes:
  • Notes/risks:

Ensure the template is in English and matches the repo's PR format when applicable.

5) Keep it brief

Keep the response focused on the push + PR actions, avoiding extra steps unless the user asks.