open-pr
Create GitHub pull requests from conversation context with proper formatting and tag selection

Установить open-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Open PR
This skill instructs AI agents on how to create GitHub pull requests from conversation context with meaningful titles, proper formatting, and appropriate tag selection. The AI agent should analyze the conversation, extract PR details, and confirm with the user before creating the pull request.
PR Format
GitHub pull requests created by this skill must follow this exact structure:
# [tag][#issue-number] Brief description of what was achieved
## Summary
Provide a concise summary of what has been achieved in this PR. Focus on the
completed work and the value it delivers.
## Changes
Provide a detailed list of changes made in this PR:
- Modified `file_path:line_range` to implement X
- Added `new_file.py` for Y functionality
- Updated `config.json` to support Z
- Removed deprecated code from `old_file.py:line_range`
## Testing
Describe what was tested and how:
- Added `tests/test_feature.py` to verify behavior A
- Modified `tests/test_existing.py:line_range` to cover edge case B
- Manually tested scenario C with the following steps:
1. Step 1
2. Step 2
3. Expected result
## Related Issue
Closes #issue-number
(Or "Part of #issue-number" if this PR partially addresses the issue)
Tag Selection
A git-msg-tags.md file should appear in {ROOT_PROJ}/docs/git-msg-tags.md which
defines the tags related to the corresponding modules or modifications. The AI agent
MUST refer to this file to select the appropriate tag for the PR title.
If the file does not exist, reject the PR creation and ask the user to provide a
list of tags in docs/git-msg-tags.md.
Tag Logic
The AI agent must determine which tag to use based on the PR type by reading
docs/git-msg-tags.md which contains the project's tag definitions.
Selection guidelines:
- Read
docs/git-msg-tags.mdto understand available tags and their meanings - Choose the most specific tag that describes the primary change
- If multiple tags could apply, choose the one that best represents the core purpose
- If the tag is ambiguous, ask the user to select from 2-3 most relevant options
Workflow for AI Agents
When this skill is invoked, the AI agent MUST follow these steps:
1. Context Analysis Phase
Review the entire conversation history and git changes to extract PR details:
- Identify what work was completed during the conversation
- Review git diff and git status to see actual changes made
- Extract key details: what was changed, why, which files were affected
- Determine the type of changes (feature, bugfix, refactor, etc.)
- Check if there's a related issue number mentioned in the conversation
Context signals for PR type:
- Feature signals: new functionality added, new files created, capabilities extended
- Bugfix signals: fixed error, resolved issue, corrected behavior
- Refactor signals: improved code structure, reorganized code, better patterns
- Documentation signals: updated README, added comments, wrote guides
- Test signals: added test coverage, modified test cases
2. Git Changes Review
CRITICAL: Before drafting the PR, the AI agent MUST review actual git changes:
# Check what files have changed
git status
# Review the actual changes
git diff
# Check commit history on current branch
git log origin/main..HEAD --oneline
This ensures the PR description accurately reflects the actual code changes.
3. Tag Selection Phase
- Read
docs/git-msg-tags.mdto understand available tags - Analyze the changes and determine the primary purpose
- Apply the tag logic described above
- If multiple tags could apply, choose the most specific one
- If the tag is ambiguous, ask the user to choose from 2-3 most relevant options
4. Issue Number Extraction
CRITICAL: The PR title MUST include an issue number in the format [tag][#N].
How to find the issue number:
Search conversation history for explicit issue references:
- "for issue #42"
- "closes #15"
- "related to #23"
- GitHub issue URLs containing issue numbers
If no issue number is found in conversation:
- Check if there are recent issues that match this work:
gh issue list --limit 10 - Ask the user: "Which issue does this PR address? (Provide issue number)"
- Check if there are recent issues that match this work:
If user says there's no related issue:
- STOP and inform the user:
Cannot create PR without a related issue. Please create an issue first using the open-issue skill, or provide an existing issue number.
- STOP and inform the user:
Never create a PR without an issue number.
5. PR Draft Construction
Build the PR following the format specification:
Title:
- Format:
[tag][#issue-number] Brief description - The description should be in past tense (what was achieved)
- Keep description concise (max 80 characters for the description portion)
- Example:
[feat][#42] Add TypeScript SDK template support - Example:
[bugfix][#15] Fix pre-commit hook test execution
**Summar
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл open-pr?
Create GitHub pull requests from conversation context with proper formatting and tag selection
Как установить скилл open-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл open-pr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
