用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Tencent/libpag --skill pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | pr |
| description | Commit and push changes, then create a new PR or append to an existing one. |
| disable-model-invocation | true |
Commits local changes, pushes to remote, and creates a new PR or appends to an existing one — automatically detected based on branch state.
git branch --show-current — current branch name.
If empty (detached HEAD), ask the user to switch to a branch first and stop.gh pr list --head {branch} --state open --json number,url — open PRsDetermine the remote's default branch and store as {default_branch}.
Mode selection:
| Current branch | Open PR on this branch | Mode |
|---|---|---|
| {default_branch} | N/A (new branch) | Create |
| other | yes | Append |
| other | no | Create |
Run git status --porcelain and inspect the output:
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.
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.
Based on all changes since {default_branch} (staged diff and existing commits), generate:
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.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.
Converts an HTML file/URL or a described visual (poster, card, banner, social post) to a PAGX file, and edits existing PAGX files. Use when the user asks to create a PAGX from a visual description, convert HTML to PAGX, modify/update an existing PAGX, run pagx CLI commands (render, verify, format, layout, bounds, font info/embed, import, resolve, export to SVG/HTML/PPTX, preview in browser, or look up PAGX element attributes and syntax).
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.
Accept screenshot baseline changes and commit the updated version.json.
基于 SOC 职业分类