← 返回 Skills 市场
anderskev

Create Pr. Skip

作者 Kevin Anderson · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
87
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install create-pr-skip
功能描述
create a pull request with standardized description template
使用说明 (SKILL.md)

Create Pull Request

Create a pull request with a well-structured description based on the branch changes.

Instructions

Gates (run in order)

Do not draft or run gh pr create until each step passes.

  1. Branch gate: git branch --show-current is not the default branch (main, master, or the repo’s documented default). Pass: branch name is printed and satisfies this.
  2. Evidence gate: You have run the commands in Gather Context for the same main..HEAD (or origin/main..HEAD if local main is missing) range you will summarize. Pass: you can name at least one commit subject and one area of files changed without inventing details.
  3. Template gate: The final PR title and body contain no unreplaced placeholders (\x3C...>, TODO, TBD). Optional sections with no content are removed, not left as stubs. Pass: a quick scan finds no angle-bracket placeholders or filler tokens.
  4. Create gate: gh pr create exits successfully and prints a PR URL (or the PR number/URL from gh output). Pass: URL (or id) is recorded; if the command fails, do not claim the PR was created.

1. Gather Context

First, collect information about the changes:

# Get current branch and verify it's not main
git branch --show-current

# Get commit history for this branch
git log --oneline main..HEAD

# Get detailed commit messages for context
git log --format="### %s%n%n%b" main..HEAD

# Get file change statistics
git diff --stat main..HEAD

# Get the actual diff for understanding changes
git diff main..HEAD

2. Analyze the Changes

Based on the gathered information, determine:

  • What changed: Categorize changes (features, fixes, refactors, docs, tests)
  • Why it changed: Infer motivation from commit messages and code changes
  • Impact: Breaking changes, new dependencies, migrations needed
  • Testing: What tests were added/modified, how to verify manually

3. Check for Related Issues

Look for issue references:

  • In commit messages (e.g., "fixes #123", "closes #456")
  • In branch name (e.g., fix/issue-123-description)
  • In code comments or TODOs addressed

4. Generate PR Description

Create the PR using this template structure:

gh pr create --title "\x3Ctype>(\x3Cscope>): \x3Cdescription>" --body "$(cat \x3C\x3C'EOF'
## Summary

\x3C1-3 sentence overview of what this PR does and why>

## Changes

\x3CCategorized bullet list of changes>

### Added
- \x3Cnew features or capabilities>

### Changed
- \x3Cmodifications to existing functionality>

### Fixed
- \x3Cbug fixes>

### Removed
- \x3Cdeprecated or removed functionality>

## Motivation

\x3CWhy were these changes needed? What problem does this solve?>

## Testing

\x3CHow was this tested?>

- [ ] Unit tests added/updated
- [ ] Integration tests added/updated
- [ ] Manual testing performed

### Manual Testing Steps

\x3CIf applicable, steps to manually verify the changes>

## Breaking Changes

\x3CIf any, describe what breaks and migration path. Remove section if none.>

## Related Issues

\x3CLink to related issues. Remove section if none.>

- Closes #\x3Cissue_number>
- Related to #\x3Cissue_number>

## Checklist

- [ ] Code follows project style guidelines
- [ ] Self-review completed
- [ ] Tests pass locally
- [ ] Linting passes
- [ ] Documentation updated (if needed)

---

Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"

5. Title Format

Use conventional commit format for the PR title:

  • feat(scope): add new feature
  • fix(scope): correct bug behavior
  • refactor(scope): restructure without behavior change
  • docs(scope): update documentation
  • test(scope): add or modify tests
  • chore(scope): maintenance tasks

6. Apply Labels

After creating the PR, apply appropriate labels based on the changes. Use gh pr edit \x3Cnumber> --add-label \x3Clabel>.

Check the repository's available labels first:

gh label list

Common Type Labels

Label When to Use
enhancement New features, capabilities, or improvements
bug Bug fixes
documentation Documentation-only changes
breaking-change User-facing breaking changes requiring migration

Breaking Change Criteria

Only apply breaking-change for user-facing changes that require users to modify their:

  • Configuration files
  • CLI invocations
  • API integrations

Do NOT apply for internal refactors unless they affect external consumers.

7. After Creation

After creating the PR:

  1. Display the PR URL with applied labels
  2. Suggest adding reviewers if appropriate
  3. Note if any CI checks need to pass

Guidelines

DO:

  • Be specific about what changed and why
  • Include testing evidence
  • Link related issues
  • Note breaking changes prominently
  • Remove empty optional sections

DON'T:

  • Include irrelevant commits (keep PR focused)
  • Leave placeholder text in the description
  • Skip the testing section
  • Create PRs without running local checks first
安全使用建议
This skill's behavior is coherent for creating PRs, but the metadata fails to declare that it relies on 'git' and the GitHub CLI and that it will use your GH CLI authentication to create/edit PRs and apply labels. Before installing or running it: 1) confirm you have 'git' and 'gh' installed and authenticated; 2) ensure the GH CLI account used has only the permissions you intend (least privilege); 3) treat this as a tool that will run commands against your local repo and push/create PRs using your credentials—do a dry run or inspect the generated 'gh' command output before confirming; and 4) if you plan to publish this skill or use it widely, ask the author to update the metadata to list required binaries and to document exactly which credentials/config are used.
能力评估
Purpose & Capability
The SKILL.md is coherent with the stated purpose (creating a PR with a template) and legitimately requires git and the GitHub CLI (gh). However, the registry metadata lists no required binaries or credentials. That mismatch is problematic: a PR-creation skill should declare at least 'git' and 'gh' and note that it will use the user's GH CLI authentication.
Instruction Scope
The runtime instructions are narrowly scoped to collecting git history/diffs and running 'gh pr create' / 'gh pr edit'. They do not ask to read unrelated files or exfiltrate data, but they do instruct commands that will read repository contents and implicitly use local GH authentication/config. The instructions require the agent/operator to run local shell commands against the repo.
Install Mechanism
Instruction-only skill with no install spec or code files — nothing is written to disk by the skill itself.
Credentials
The skill will invoke 'gh' which uses GitHub credentials (stored in GH CLI config or GH_TOKEN) and will perform actions that require repo write permissions, but the metadata declares no required environment variables or primary credential. The absence of declared credentials/binaries understates the privileges this skill will rely on.
Persistence & Privilege
The skill does not request always-on inclusion, does not modify other skills, and has no install-time persistent behavior. 'disable-model-invocation: true' is set, which reduces autonomous model use but is an unusual choice (it prevents the skill from making model calls).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install create-pr-skip
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /create-pr-skip 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added "Gates" section outlining mandatory checks to complete before drafting or creating a PR. - Clarified the sequence and requirements for branch, evidence, template, and create gates. - No changes to the PR description structure, guidance, or template content. - Documentation now emphasizes placeholder removal and successful command checks before proceeding.
v1.0.0
Initial release of the create-pr skill. - Provides a step-by-step guide for creating standardized pull requests. - Includes detailed instructions for gathering context, analyzing changes, and generating PR descriptions. - Offers a ready-to-use PR description template with sections for summary, changes, motivation, testing, breaking changes, and related issues. - Recommends conventional commit style for PR titles and proper PR labeling. - Outlines best practices and checklist steps to ensure high-quality, informative PRs.
元数据
Slug create-pr-skip
版本 1.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Create Pr. Skip 是什么?

create a pull request with standardized description template. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 87 次。

如何安装 Create Pr. Skip?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install create-pr-skip」即可一键安装,无需额外配置。

Create Pr. Skip 是免费的吗?

是的,Create Pr. Skip 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Create Pr. Skip 支持哪些平台?

Create Pr. Skip 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Create Pr. Skip?

由 Kevin Anderson(@anderskev)开发并维护,当前版本 v1.0.1。

💬 留言讨论