file-pr — скилл для Claude Code: что делает и как установить
Скилл file-pr для Claude Code создаёт pull request по просьбе пользователя. Перед отправкой он проверяет ветку, diff и текст PR.
MIT 1 300 установок ★ 4 278 обновлён 2026-11-11
npx skills add t3dotgg/tstack --skill file-pr -a claude-codeЧто делает file-pr
Скилл оформляет pull request для текущей ветки. Сначала проверяет, нет ли уже PR для этой ветки, и сверяет локальный diff с базовой веткой, обычно origin/main.
Затем подбирает заголовок по примерам из истории репозитория, кратко описывает проблему и решение, проверяет текст и вложения на секреты и личные данные. В описании указывает модель и harness, которые создали изменения; если модель неизвестна, называет только harness.
Скилл открывает обычный PR, а не draft, чтобы запустились боты ревью. Для создания PR используется gh; если gh pr create упирается в GraphQL rate limit, скилл предлагает REST-вызов через gh api. Для сопровождения PR подключается babysit-pr, а комментарии оставляет через leaving-pr-comments только по запросу.
Какие задачи решает
- открыть pull request для текущей ветки
- составить заголовок и описание PR по истории репозитория
- проверить описание PR и вложения на секреты
- создать PR через REST при исчерпанном GraphQL rate limit
Примеры запросов агенту
- Открой pull request для этой ветки и кратко опиши проблему и решение.
- Проверь diff относительно
origin/mainи создай PR с заголовком по стилю репозитория. - Создай обычный PR, а если
gh pr createне сработает из-за лимита, используй REST.
Как установить file-pr
1Через Skills CLI (Vercel)
npx skills add t3dotgg/tstack --skill file-pr -a claude-code2Вручную: положить файлы
~/.claude/skills/file-pr/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/file-pr/
1Через Skills CLI (Vercel)
npx skills add t3dotgg/tstack --skill file-pr -a codex2Вручную: положить файлы
.agents/skills/file-pr/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add t3dotgg/tstack --skill file-pr -a cursor2Вручную: положить файлы
.cursor/skills/file-pr/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install t3dotgg/tstack skills/file-pr2Вручную: положить файлы
.github/skills/file-pr/SKILL.md1Через Skills CLI (Vercel)
npx skills add t3dotgg/tstack --skill file-pr -a gemini-cli2Командой платформы
gemini skills install https://github.com/t3dotgg/tstack --path skills/file-prВручную: положить файлы
.devin/skills/file-pr/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add t3dotgg/tstack --skill file-pr -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о file-pr
Как установить file-pr в Claude Code?
Выполни npx skills add t3dotgg/tstack --skill file-pr -a claude-code. Файл скилла находится в ~/.claude/skills/file-pr/SKILL.md.
Что делает file-pr?
Проверяет существующий PR и diff, готовит краткие заголовок и описание, ищет секреты во вложениях и открывает обычный pull request.
Что нужно для работы file-pr?
Для создания PR используется GitHub CLI gh. Если команда gh pr create достигает GraphQL rate limit, скилл может перейти на REST-вызов через gh api.
Исходный текст
SKILL.md · MIT
--- name: file-pr description: File a concise pull request. Use when the user asks to file, open, or create a PR. --- # File PR Before filing, check whether a PR for this branch already exists. Review the diff locally against the base branch (usually `origin/main`) to make sure its contents match the goal. PR titles usually become commit messages, so follow the repository's title conventions. Look at recently merged PRs and Git history for examples. Prefer a concise, human-readable title that explains why the change matters: BAD > ❌ perf(server): negotiate permessage-deflate on the websocket GOOD > ✅ perf(server): cut websocket frame size by 70%+ with gzipping Open the description with a simple explanation of the problem based on the user's original prompt, then briefly explain the solution. Do not lead with an implementation inventory: BAD > ❌ Removed implicit workspace carry-over from every "new thread" entry point (cmd+n / cmd+shift+o, sidebar v1/v2 buttons, command palette). New threads inherit only the project from context; branch, worktree, and env mode always come from the configured defaults. Deleted buildContextualThreadOptions, startNewThreadInProjectFromContext, and the v1 sidebar's seed-context machinery. GOOD > ✅ My "new worktree" default was ignored when starting new threads on existing worktrees. Super unintuitive. Now your preferences always apply. End the description with the public model name and harness that made the changes, for example `Created with <model> in <harness>.` Include subagent models that wrote part of the change. Use the model name the harness reports. If model identity is unavailable, name the harness without guessing a model. Before submission, check the title, description, quotes, and attachments for secrets and private details. Open a real PR rather than a draft so review bots run. If `gh pr create` fails because the GraphQL rate limit is used up, open it through REST with `gh api repos/<owner>/<repo>/pulls -f title=... -f head=... -f base=... -F body=@<file>`. If the user also asked to babysit it, continue with the `babysit-pr` skill. Do not post a follow-up PR comment unless it serves the user's request. When a comment is needed, use the `leaving-pr-comments` skill.
© t3dotgg · MIT · t3dotgg/tstack