본문으로 건너뛰기
cccskills
무료GitHub에 공개

pr

Commit and push changes, then create a new PR or append to an existing one.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구GitHub
설치 방법 보기

포함된 파일(1)

  • SKILL.md3.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

PR — Commit & Push

Commits local changes, pushes to remote, and creates a new PR or appends to an existing one — automatically detected based on branch state.

Instructions

  • NEVER force push.
  • NEVER push directly to main/master — always go through PR workflow.
  • All user-facing text must use the language the user has been using in the conversation. Do not default to English.
  • When presenting choices, use interactive dialogs with selectable options rather than plain text.

Step 1: Pre-flight

  1. git branch --show-current — current branch name. If empty (detached HEAD), ask the user to switch to a branch first and stop.
  2. gh pr list --head {branch} --state open --json number,url — open PRs

Determine the remote's default branch and store as {default_branch}.

Mode selection:

Current branchOpen PR on this branchMode
{default_branch}N/A (new branch)Create
otheryesAppend
othernoCreate

Step 2: Stage & Generate Commit Message

Run git status --porcelain and inspect the output:

  • No output → no local changes. Skip to Step 3 (there may be unpushed commits to push).
  • Both staged and unstaged changes → ask the user: commit only the staged files (partial), or stage everything (full)?
  • Otherwise → full (stage everything).

If full: run git add -A. If partial: skip (files are already staged).

Read the staged diff (git diff --cached) and generate a commit message following the project's commit conventions. If no convention is found, default to a concise English message under 120 characters ending with a period, with no other punctuation, focusing on user-perceivable changes.


Step 3: Commit & Push

Append mode

If there is staged content, commit first. Then push and output the existing PR URL.

If there is nothing to commit and nothing to push, inform the user and stop.

Create mode

Generate PR metadata

Based on all changes since {default_branch} (staged diff and existing commits), generate:

  • Branch name (only when on {default_branch}): follow the project's branch naming convention if one exists; otherwise use feature/{username}_topic or bugfix/{username}_topic ({username} = local git username, lowercase; obtain via git config user.name). When on a non-default branch, use the current branch name.
  • PR title: concise summary following project conventions, or a short English sentence if none found. Always based on all changes since {default_branch}, not the latest commit message.
  • PR description: plain text (no Markdown formatting) in the user's conversation language, briefly describing what changed and why.

Create branch, commit, and push

If on {default_branch}, create a new branch: git checkout -b {branch_name}.

If there is staged content, commit.

Push and create the PR:

git push -u origin {branch_name}
gh pr create --title "{title}" --body "$(cat <<'EOF'
{description}
EOF
)"

Output the PR URL to the user.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Accept screenshot baseline changes and commit the updated version.json.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Tencent/tgfx1.6천2026년 10월 19일 업데이트

commit

무료

Commit local changes without pushing.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Tencent/tgfx1.6천2026년 10월 19일 업데이트

cr

무료

Automated code review and fix for local branches, PRs, commits, and files. Supports single-agent interactive fix and multi-agent adversarial review with auto-fix.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Tencent/tgfx1.6천2026년 10월 19일 업데이트

squash

무료

Analyze branch commits and consolidate iterative modifications.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Tencent/tgfx1.6천2026년 10월 19일 업데이트

Tencent의 스킬 모두 보기

이 스킬의 문제 신고