codebase-fix-and-pr
БесплатноБез исполняемых скриптовНе проверенApply code changes to a GitHub repository and automatically create a pull request. Takes user feedback or fix requirements, clones the repo, makes localized…
Об этом скилле
Codebase Fix and Pull Request
When to use this skill
Use this skill when you need to apply code fixes or improvements to a GitHub repository and automatically create a pull request. Specifically, use it when you need to:
- Fix bugs reported by users or found through code review
- Implement feature improvements
- Apply refactoring changes
- Fix documentation or configuration
- Apply automated code corrections
- Update dependencies or package versions
Overview
This skill guides an agent through the complete workflow of analyzing user feedback, making targeted code changes, and creating a pull request. The agent uses GitHub authentication via environment variables and the GitHub MCP tools to complete the entire flow.
Prerequisites
Before using this skill:
- Configure Git CLI: Use the
configure-git-cliskill to set up git user identity and GitHub authentication with your PAT - Required environment variables:
GITHUB_EMAIL: Your git emailGITHUB_NAME: Your git nameGITHUB_PAT: GitHub Personal Access Token with repo and workflow scopes
Workflow
Step 0: Configure Git (Prerequisite)
Before performing any git operations, ensure git is configured by invoking the configure-git-cli skill. This will:
- Set your git user email and name
- Configure GitHub authentication with your PAT
- Verify git credentials work correctly
Once configured, you can proceed with the following steps.
Step 1: Parse Requirements
Input required:
- GitHub repository URL or
owner/repoformat - User feedback, issue description, or fix requirement
- Specific files or areas to modify (optional)
- PR description and title (optional - will auto-generate if not provided)
Actions:
- Parse the user feedback to understand:
- What needs to be fixed
- Why it needs to be fixed
- Which files are likely affected
- Success criteria for the fix
- Break down complex requests into discrete changes
- Plan the implementation approach
Step 2: Repository Setup
Actions:
- Git is already configured from Step 0, so authentication is ready
- Clone the repository:
git clone https://github.com/owner/repo.git cd repo - Verify repository structure and identify relevant files
- Document the current state before making changes
Step 3: Create Feature Branch
Actions:
Create a new branch with a descriptive name:
git checkout -b fix/description-of-change # or git checkout -b feature/description-of-changeBranch naming conventions:
- Use
fix/prefix for bug fixes - Use
feature/prefix for new features or improvements - Use
refactor/prefix for refactoring work - Use
docs/prefix for documentation updates - Use kebab-case for the description
- Use
Verify the branch was created successfully
Step 4: Analyze and Make Changes
For each required change:
Locate the relevant file(s)
- Read the file(s) that need modification
- Understand the current code structure
- Identify dependencies and imports
Make targeted changes
- Modify only what's necessary to fix the issue
- Maintain code style consistency
- Keep changes focused and atomic
- Update related tests if applicable
Verify changes
- Check for syntax errors
- Verify the change achieves the stated goal
- Ensure no unrelated code was modified
Common change patterns:
- Bug fixes (modify logic)
- Configuration updates (modify config files)
- Documentation (update README, comments, docs)
- Dependency updates (modify package.json, requirements.txt)
- Test additions (new test files)
- Code refactoring (improve structure)
Step 5: Commit Changes
Actions:
Stage the changes:
git add . # or for specific files: git add path/to/file1 path/to/file2Create a meaningful commit message:
- Use conventional commit format (recommended)
- First line: summary (50 characters max)
- Blank line
- Body: detailed explanation (optional)
- Reference issue numbers if applicable
Commit message examples:
fix: resolve authentication timeout in user service
When a user login attempt exceeded 30 seconds, the timeout
handler was not properly cleaning up resources. This caused
the subsequent requests to fail.
Now using a WeakMap to track in-flight requests and properly
clean up on timeout.
Fixes #123
feat: add retry logic to API client calls
Adds exponential backoff retry strategy for transient
API failures. Configurable retry count and backoff
multiplier.
docs: update installation instructions for macOS
Step 6: Push to Remote Branch
Actions:
- Push the branch to the remote repository:
git push origin fix/description-of-change - Verify the push was successful
- Note the branch name for PR creation
Step 7: Create Pull Request via GitHub MCP
**Using the GitHub MCP authenticated tools
Установить codebase-fix-and-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл codebase-fix-and-pr?
Apply code changes to a GitHub repository and automatically create a pull request. Takes user feedback or fix requirements, clones the repo, makes localized changes, commits to a new branch, and opens a PR via GitHub MCP.
Как установить скилл codebase-fix-and-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл codebase-fix-and-pr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic