بنقرة واحدة
pr-creator
AI-native skill to automate PR creation with semantic versioning and intelligent descriptions.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
AI-native skill to automate PR creation with semantic versioning and intelligent descriptions.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | pr-creator |
| description | AI-native skill to automate PR creation with semantic versioning and intelligent descriptions. |
Automates PR creation with AI-generated titles, descriptions, and semantic versioning.
Tell the AI in conversation:
The AI will analyze commits, generate PR details, and create/update the PR automatically.
Analyze your branch and commits
Generate PR decisions
Execute using this exact workflow:
# Step 1: Create description file (REQUIRED for AI)
create_file(
filePath=".github/pr-description.tmp",
content="<AI-generated PR description>"
)
# Step 2: Run the script
run_in_terminal(
command="bash skills/pr-creator/scripts/create-pr.sh",
env={
"PR_BRANCH": "<current branch>",
"PR_TITLE_AI": "<AI-generated title>",
"PR_LANG": "zh-CN", # or "en", etc.
"VERSION_BUMP_AI": "minor", # major/minor/patch/skip
"CURRENT_VERSION": "1.0.0",
"NEW_VERSION": "1.1.0",
"VERSION_FILE": "manifest.json" # or package.json, pyproject.toml, setup.py
}
)
CRITICAL: Always use create_file() to create the description file. No other method is reliable for AI.
| Variable | Purpose | Example |
|---|---|---|
PR_BRANCH | Current branch | feat/my-feature |
PR_TITLE_AI | PR title | feat: add authentication |
PR_LANG | Language | zh-CN or en |
VERSION_BUMP_AI | Version bump | major, minor, patch, or skip |
CURRENT_VERSION | Current version | 1.0.0 |
NEW_VERSION | New version | 1.1.0 |
VERSION_FILE | Version file | manifest.json, package.json, pyproject.toml, or setup.py |
The script automatically reads PR description from .github/pr-description.tmp created via create_file().
✅ Semantic versioning (major/minor/patch)
✅ Multi-format version file support (manifest.json, package.json, pyproject.toml, setup.py)
✅ Smart PR detection (updates existing PRs instead of creating duplicates)
✅ Language awareness (PR content follows your conversation language)
✅ Dry-run mode (DRY_RUN=true to preview without creating PR)
✅ Automatic PR attribution footer
Use dry-run mode to preview changes before creating the PR:
DRY_RUN=true \
PR_BRANCH="feat/test" \
PR_TITLE_AI="feat: test" \
PR_LANG="en" \
VERSION_BUMP_AI="minor" \
CURRENT_VERSION="1.0.0" \
NEW_VERSION="1.1.0" \
VERSION_FILE="manifest.json" \
bash skills/pr-creator/scripts/create-pr.sh
Shows what would be created without modifying anything.
The script detects version bumps based on commit messages:
!: prefix → major versionSee Conventional Commits for details.
git - for version controlgh - GitHub CLI for PR operations