create-fix-pr — скилл для Claude Code: что делает и как установить
Ищет первопричину сбоя и готовит минимальный pull request в GitHub по данным трассировок или логов. Пригодится для точечного закрытия багов без лишнего рефакторинга.
npx skills add launchdarkly/ai-tooling --skill create-fix-pr -a claude-codeЧто делает create-fix-pr
Скилл автоматизирует устранение найденных ошибок в кодовой базе. Сначала он опирается на скилл investigate, чтобы зафиксировать точный trace ID, лог или группу ошибок. Затем проверяет через команду gh pr list, не открыл ли кто-то похожий PR ранее. Если проблема решается переключением флага или конфигом, агент просто опишет решение текстом без правок репозитория.
Перед фиксом агент читает правила проекта из agents.md или CLAUDE.md. Изменения в кодовой базе намеренно ограничены: никаких правок соседних файлов, поднятия версий зависимостей или подгонки тестов под сломанный код. Один баг — один PR.
Без установленной утилиты gh и активной авторизации через gh auth status скилл работать откажется. Он сразу остановится и выведет ошибку в консоль.
Какие задачи решает
- Найти первопричину бага по логам и trace ID
- Проверить GitHub на наличие дублирующих открытых PR
- Подготовить минимальный pull request по правилам репозитория
- Предложить изменение конфигурации вместо лишнего коммита
Примеры запросов агенту
- Разбери ошибку из лога с trace ID
err-404-prodи подготовь минимальный PR с фиксом. - Проверь открытые PR по багу таймаута базы данных и исправь причину, если дубликатов нет.
- Найди источник сбоя в сервисе авторизации и оформи точечный фикс по правилам из CLAUDE.md.
Как установить create-fix-pr
1Через Skills CLI (Vercel)
npx skills add launchdarkly/ai-tooling --skill create-fix-pr -a claude-code2Вручную: положить файлы
~/.claude/skills/create-fix-pr/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/create-fix-pr/
1Через Skills CLI (Vercel)
npx skills add launchdarkly/ai-tooling --skill create-fix-pr -a codex2Вручную: положить файлы
.agents/skills/create-fix-pr/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add launchdarkly/ai-tooling --skill create-fix-pr -a cursor2Вручную: положить файлы
.cursor/skills/create-fix-pr/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install launchdarkly/ai-tooling create-fix-pr2Вручную: положить файлы
.github/skills/create-fix-pr/SKILL.md1Через Skills CLI (Vercel)
npx skills add launchdarkly/ai-tooling --skill create-fix-pr -a gemini-cli2Командой платформы
gemini skills install https://github.com/launchdarkly/ai-tooling --path skills/observability/create-fix-prВручную: положить файлы
.devin/skills/create-fix-pr/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add launchdarkly/ai-tooling --skill create-fix-pr -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о create-fix-pr
Как установить create-fix-pr в Claude Code?
Выполните команду npx skills add launchdarkly/ai-tooling --skill create-fix-pr -a claude-code.
Что делает create-fix-pr?
Скилл находит корень проблемы по данным наблюдаемости, проверяет открытые пулреквесты и создаёт минимальный PR с исправлением через утилиту gh.
Что требуется для работы скилла?
Нужны установленные git и GitHub CLI (gh). Если команда gh auth status показывает отсутствие авторизации, скилл сразу завершит работу с ошибкой.
Исходный текст
SKILL.md · Apache-2.0
--- name: create-fix-pr description: "Investigates a root cause and files a minimal fix PR for a reported bug or observability finding." license: Apache-2.0 compatibility: Requires git and the GitHub CLI (gh); pairs with the investigate skill metadata: author: launchdarkly version: "0.1.0" --- # Create a fix PR ## Overview You are investigating a problem and filing a pull request that resolves it. This builds on the `investigate` skill — do the investigation properly first, don't jump to a fix without evidence. Use the `gh` CLI for all GitHub operations (auth comes from your `gh` login) and standard `Bash` / `Edit` / `Read` / `Grep` for everything else. ## Workflow 1. **Investigate.** Use the `investigate` skill to find the root cause. Cite the exact trace ID, log line, error group, and code location that pins the problem. 2. **Confirm there isn't already a PR open.** Before filing anything, search GitHub for an existing open PR addressing the same issue — `gh pr list --search "<keywords>" --state open`. If one exists, direct the user to it — do not create a duplicate. 3. **Judge whether a PR is the right tool.** If the fix requires a config change, a flag flip, or a change outside the code you can access, describe the solution instead of filing a PR. 4. **Get the repo.** Clone it if you don't already have it locally — `gh repo clone <owner>/<repo>`. 5. **Check for repo conventions.** Read `agents.md` or `CLAUDE.md` at the repo root — these describe repo-specific rules your fix needs to respect. 6. **Make the change.** Minimal diff. Don't refactor surrounding code, don't add features, don't fix unrelated bugs you happen to notice. One PR, one fix. 7. **Set git identity** before committing — see `pr-conventions.md`. 8. **Commit, push, and file the PR.** See `pr-conventions.md` for branch naming and PR body rules. ## What's a good fix - Changes the smallest possible number of lines - Preserves current production behavior unless the bug IS the current behavior - Doesn't depend on assumptions you can't verify from the evidence - Would pass a `code-review` skill's check if one existed ## What isn't - Sweeping refactors unrelated to the reported problem - Speculative null checks or error handling added "while you're in there" - Changes to tests that hide the underlying bug - Bumping dependency versions to fix a symptom ## Restricted tools If `gh` isn't installed or `gh auth status` shows no auth, surface the error to the user and stop — don't try alternative auth schemes. ## Never include in a PR - GitHub access tokens or any other secrets or credentials. - Debugging logs or print statements you added during investigation. Follow the repo's own commit and PR conventions for everything else.
© launchdarkly · Apache-2.0 · launchdarkly/ai-tooling