跳到正文
cccskills
免费在 GitHub 公开

pr

Check the current branch for an existing PR and either update or create one with an auto-generated description based on all commits since diverging from main.

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

uniffy-io/uniffy星标 68(GitHub 68 + cccskills 0)
集成工具GitHub

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md4.4 KB

SKILL.md(原文)

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

Create or update a GitHub Pull Request for the current branch.

Steps

  1. Gather branch info. Run these commands in parallel:

    • git branch --show-current to get the current branch name.
    • git merge-base main HEAD to find where this branch diverged from main.
    • git status to check for uncommitted changes (never use -uall).
  2. Handle main branch. If the current branch is main:

    • Look at the recent commits on main that are not yet in a PR (use git log origin/main..HEAD to find unpushed commits, or if there are none, ask the user how many recent commits to include).
    • Derive a branch name from the commit messages. Use the pattern feat/<short-slug>, fix/<short-slug>, or chore/<short-slug> depending on the nature of the changes. The slug should be lowercase, hyphen-separated, and max 4 words (e.g., feat/calendar-rsvp, fix/auth-token-refresh).
    • Ask the user to confirm the branch name before creating it.
    • Create the branch: git checkout -b <branch-name>.
    • Continue with the rest of the steps using this new branch.
  3. Handle uncommitted changes. If there are staged or unstaged changes (modified/added/deleted files):

    • Run git diff and git diff --cached to understand what changed.
    • Stage the relevant files with git add (prefer adding specific files over git add -A; never commit .env, credentials, or secrets).
    • Write a commit message that accurately describes the changes. Use a short imperative subject line and include a description body if the changes are non-trivial.
    • Commit the changes before proceeding.
    • If the changes are unclear and you cannot write a good commit message, ask the user what these changes are for.
  4. Collect commit history. Using the merge base from step 1, run in parallel:

    • git log <merge-base>..HEAD --format="### %s%n%n%b%n---" to get all commit subjects AND bodies on this branch. Both the subject line and the description body are important for understanding changes.
    • git diff <merge-base>...HEAD --stat to get the file-level diff summary.
    • git diff <merge-base>...HEAD --name-only to get the list of changed files.
  5. Check for existing PR. Run gh pr view --json number,title,url,state to see if a PR already exists for this branch.

  6. Analyze changes. Review ALL commits (not just the latest) and the diff stat to understand the full scope. Categorize changes into backend and frontend sections where applicable.

  7. Generate PR description. Write a concise, accurate description following this format:

    ## What this does
    
    <2-4 plain-language sentences a non-engineer can read. Explain what the change
    does for the user or the product and why it matters. No jargon, no file names,
    no class or function names - describe behavior, not implementation.>
    
    ## Summary
    
    - <1-3 bullet points covering the main changes across ALL commits>
    
    

    Rules for the description:

    • The "What this does" section always comes first and stays plain-language; anyone reading only that section should understand the point of the PR.
    • The summary should cover ALL commits on the branch, not just the latest.
    • Test plan items should be concrete and testable.
    • Never use emojis.
  8. Create or update the PR:

    • If a PR exists: Update its body using gh pr edit <number> --body "<body>". Keep the existing title unless it is clearly wrong or does not match the [TYPE] Area: summary convention below.
    • If no PR exists: Push the branch with git push -u origin <branch> if needed, then create the PR using gh pr create --title "<title>" --body "<body>". The title follows the repo convention [TYPE] Area: summary, where TYPE is FEAT, FIX, or CHORE (upper case, in brackets) and Area is the main domain touched (for example Projects, Chat, Calls, Agents, Deploy, Docs). The summary is lowercase after the colon, in imperative or plain noun style, and reflects the overall theme of the branch. Keep it short, ideally under 80 chars. Check gh pr list --state all --limit 20 if unsure about area names. Do not use conventional-commit prefixes like fix(scope): in PR titles.
    • Always pass the body via a HEREDOC for correct formatting.
  9. Report back. Print the PR URL so the user can open it.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

commit

免费

Create a conventional commit for all uncommitted changes

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

uniffy-io/uniffy682026年10月23日 更新

Create a Product Requirements Document from the current conversation and save it under `.agents/local/plans/`. Use when the user asks for a PRD, product specification, or requirements document for an Uniffy feature.

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

uniffy-io/uniffy682026年10月23日 更新

execute

免费

Execute or resume an implementation plan from `.agents/local/plans/`, keeping its companion backlog and validation evidence current. Use when the user asks to implement a saved plan or continue planned multi-phase work.

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

uniffy-io/uniffy682026年10月23日 更新

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

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

uniffy-io/uniffy682026年10月23日 更新

Audit the in-tree model catalog against each provider's live API (Anthropic, OpenAI, Google, OpenRouter, xAI) using the keys in .env. Surfaces new models the catalog is missing, catalog models a provider no longer returns, and price/context drift on the curated OpenRouter subset, so the catalog stays current. Works on both stacks (docker containers or host venv). Run periodically or when a provider ships new models / changes pricing.

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

uniffy-io/uniffy682026年10月23日 更新

Create a comprehensive Uniffy feature plan in `.agents/local/plans/` through deep codebase analysis, applicable rules, verified patterns, risks, tests, and executable validation steps. Use when the user asks to plan a feature or prepare implementation work without writing product code.

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

uniffy-io/uniffy682026年10月23日 更新

查看 uniffy-io 的全部技能

报告此技能的问题