← Back to Skills Marketplace
oschina

Create Pr

by 开源中国 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
352
Downloads
1
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install gitee-create-pr
Description
Use this skill when the user asks to create a PR, open a pull request, "create-pr", "submit a pull request", or "open a merge request". Requires Gitee MCP Se...
README (SKILL.md)

Note: If you have mcporter installed locally, you should use mcporter to invoke the MCP tool instead of directly calling the MCP tool. The mcporter CLI provides a more convenient interface and better error handling.

Create PR via Gitee MCP

Generate a well-structured Pull Request description based on the current changes and submit it to Gitee.

Prerequisites

  • Gitee MCP Server configured (tools: create_pull, get_file_content, list_repo_issues, compare_branches_tags)
  • User must provide: repository owner, repository name, source branch, target branch (usually main/master)
  • Optional: linked Issue number

Steps

Step 1: Gather Information

Confirm with the user or infer from context:

  • Source branch (head branch)
  • Target branch (base branch, default: master or main)
  • Core purpose of this PR (if not stated, infer from commit messages or file changes)
  • Whether to link an Issue (optional)

Step 2: Analyze the Changes

Use compare_branches_tags to fetch the diff between the source branch and target branch:

  • base: target branch (e.g., main or master)
  • head: source branch

Analyze the returned diff to determine:

  • Which core files were changed
  • What functionality was added or modified
  • Whether there are any breaking changes

Step 3: Generate PR Title

Follow the Conventional Commits format:

\x3Ctype>(\x3Cscope>): \x3Csubject>

Available types:

  • feat: New feature
  • fix: Bug fix
  • refactor: Code refactoring
  • docs: Documentation update
  • test: Test-related changes
  • chore: Build / dependency / toolchain changes

Example: feat(auth): add OAuth2 login support

Step 4: Generate PR Description

Use the following template for a structured description:

## Summary

[Clear description of the purpose of this PR and the problem it solves]

## Changes

- [Change 1]
- [Change 2]
- [Change 3]

## Testing

- [ ] Unit tests pass
- [ ] Functional tests pass
- [x] [Completed test item]

## Related Issue

closes #[issue number] (if applicable)

## Notes

[Breaking changes, dependency upgrades, deployment considerations, etc. (if any)]

Step 5: Create the PR

Use create_pull to create the PR with these parameters:

  • title: title generated in Step 3
  • body: description generated in Step 4
  • head: source branch
  • base: target branch

After successful creation, output the PR link for the user.

Notes

  • If the user specifies a linked Issue, append closes #N to the description so the Issue is automatically closed when the PR is merged
  • Keep the PR title concise (under 50 characters) — put details in the description
  • If the user hasn't provided enough information, ask before creating, to avoid opening a PR with an empty description
Usage Guidance
This skill appears coherent for creating Gitee pull requests through a configured MCP server. Before installing/using it: ensure your platform's Gitee MCP credentials are correct and scoped appropriately (the skill will create PRs and can append 'closes #N' to close issues), review any generated PR title/body before the skill submits it, and avoid granting broader repo permissions than necessary. If you do not want the agent to create PRs autonomously, keep the skill user-invocable only and require explicit confirmation from you before calling create_pull.
Capability Analysis
Type: OpenClaw Skill Name: gitee-create-pr Version: 1.0.0 The skill bundle provides a standard and well-structured workflow for an AI agent to create Pull Requests on Gitee. It utilizes the Gitee MCP server for legitimate operations such as comparing branches and creating pull requests, with no evidence of malicious intent, data exfiltration, or harmful prompt injection in SKILL.md.
Capability Assessment
Purpose & Capability
The skill's name and description match its instructions: it builds a PR title/body from a repo diff and calls Gitee MCP operations (compare_branches_tags, create_pull, etc.). Requiring a configured Gitee MCP server is appropriate for this purpose.
Instruction Scope
SKILL.md limits actions to fetching diffs, analyzing changes, generating a title/body, and invoking create_pull. It does not instruct reading unrelated system files, environment variables, or posting to external endpoints outside the declared MCP tools. It explicitly states to ask the user if information is missing.
Install Mechanism
Instruction-only skill with no install spec and no code files — nothing is written to disk or downloaded during install.
Credentials
No environment variables or extra credentials are requested by the skill itself. It depends on a pre-configured Gitee MCP server (platform-managed credentials), which is proportionate for creating PRs.
Persistence & Privilege
always is false and disable-model-invocation is not set to force disable; the skill is user-invocable and may be invoked autonomously by the agent (normal platform behavior). The skill does not request persistent system-wide privileges or modify other skills' configs.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gitee-create-pr
  3. After installation, invoke the skill by name or use /gitee-create-pr
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the gitee-create-pr skill. - Enables creation of Pull Requests on Gitee via MCP Server. - Guides users to generate descriptive PR titles and structured bodies following Conventional Commits. - Supports linking issues and includes validation for required information (source/target branches, repo details). - Provides step-by-step instructions and templates for PR creation. - Recommends using the `mcporter` CLI for improved usability and error handling.
Metadata
Slug gitee-create-pr
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Create Pr?

Use this skill when the user asks to create a PR, open a pull request, "create-pr", "submit a pull request", or "open a merge request". Requires Gitee MCP Se... It is an AI Agent Skill for Claude Code / OpenClaw, with 352 downloads so far.

How do I install Create Pr?

Run "/install gitee-create-pr" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Create Pr free?

Yes, Create Pr is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Create Pr support?

Create Pr is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Create Pr?

It is built and maintained by 开源中国 (@oschina); the current version is v1.0.0.

💬 Comments