Skip to content
Education
Command

/pr-create

Create a pull request with auto-detected context

From plugin
claude-code-engineering
1.2k11 skills16 agents11 commands6 MCP
$ npx -y skills add huangjia2019/claude-code-engineering --agent claude-code

Command definition

pr-create.md
description: Create a pull request with auto-detected context
argument-hint: [title] [description]
allowed-tools: Bash(git:*), Bash(gh:*)

Create a pull request.

Title: $1 Description: $2

Current Context (Auto-detected)

Current branch: !`git branch --show-current`

Recent commits on this branch: !`git log origin/main..HEAD --oneline 2>/dev/null || echo "No commits ahead of main"`

Files changed: !`git diff --stat origin/main 2>/dev/null || git diff --stat HEAD~3`

Steps

1. Ensure we're not on main/master branch 2. Push current branch to remote (if not already) 3. Create PR using `gh pr create`:

  • Title: $1 (or auto-generate from branch name)
  • Body: $2 (or auto-generate from commits)

4. Return the PR URL

PR Body Template

If $2 is not provided, generate:

## Summary
[Auto-generated from commit messages]

## Changes
[List of changed files with brief descriptions]

## Testing
- [ ] Tests pass locally
- [ ] Manual testing completed

---
Created with `/pr-create`

Output

✓ PR Created: [URL]

Title: [title]
Branch: [branch] → main
Changes: [n] files
@huangjia2019
Ships withclaude-code-engineering

This repository demonstrates how to use Claude Code to do real engineering work, not just writing code. 本项目是极客时间专栏 《Claude Code 工程化实战》 的官方配套示例仓库,目标就是: 👉 把 Claude Code 从“对话式编码工具”,变成 可设计、可复用、可治理的工程系统。

1.2k11 skills16 agents6 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.2k
Star history of huangjia2019/claude-code-engineering on GitHub, a chart by star-history.com

Other commands on claude-code-engineering.

More commands from other plugins.