PR Submitter
Ensures code quality and CI-readiness before automatically opening pull requests.
Install
mkdir -p .claude/skills/pr-submitter && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17795" && unzip -o skill.zip -d .claude/skills/pr-submitter && rm skill.zipInstalls to .claude/skills/pr-submitter
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
作業完了後に検証を行い、Pull Request (PR) を作成・送付する一連の流れを定義したスキルKey capabilities
- →Synchronizes with the latest main branch
- →Performs local quality checks like linting and type checking
- →Verifies translation key consistency
- →Checks UI size limits
- →Executes unit tests
- →Creates and pushes commits to a remote repository
How it works
The skill performs a series of local quality checks, including linting, type checking, and unit tests, before committing changes and creating a Pull Request.
Inputs & outputs
When to use PR Submitter
- →Automating PR submission
- →Validating UI size limits
- →Running full test suites
About this skill
PR Submitter Skill
このスキルは、実装作業が完了した後に、ローカルでの厳格な検証(各種Lint、型チェック、翻訳キー、サイズ制限、ユニットテスト)を実行し、リモートリポジトリへプッシュしてPull Request (PR) を作成するまでのプロトコルを定めたものです。
このスキルを使用することで、CIの失敗を未然に防ぎ、適切なコマンド実行許可を得た上で安全にPRを送付できます。
ワークフロー
1. 最新の main ブランチの同期
開発中のブランチに最新の main ブランチの変更を取り込み、コンフリクトがないことを確認します。
git fetch origin main
git merge origin/main
2. ローカルでの品質検証 (CI Pre-check)
リモートのCI基盤に送る前に、ローカルで以下のコマンドを順番に実行し、すべてが正常にパスすることを確認してください。
各開発用ツールは仮想環境のもの(.venv/bin/ 以下)を使用します。詳細は .agent/workflows/tool_usage.md を参照してください。
① コードのリンティング・フォーマット確認 (Ruff)
.venv/bin/ruff check .
警告やエラーが検出された場合は、自動修正を行ってください。
.venv/bin/ruff check --fix .
② 静的型チェック (Mypy)
.venv/bin/mypy src main_gui.py
③ 翻訳キーの整合性チェック
多言語対応の翻訳キー(src/assets/lang/*.json)に不足や重複、未翻訳箇所がないかを確認します。
.venv/bin/python3 scripts/check_trn_keys.py
④ UIサイズ制限の検証
低解像度ディスプレイやノートPCでのUIはみ出しを防ぐため、MainWindowおよび各ウィジェットの最小サイズ上限(MainWindowは 1290x740 px、各モジュールコンテンツは 1070x690 px)に収まっているかを確認します。
.venv/bin/python scripts/check_ui_size_limits.py
⑤ ドキュメントのリンティング (Markdown lint)
プロジェクト内の全Markdownファイルのスタイルと整合性をチェックします。
npx markdownlint-cli2 "**/*.md" "#node_modules"
⑥ ユニットテストの実行 (Pytest)
.venv/bin/pytest
3. コミットとプッシュ
すべての検証をパスしたら、変更内容をコミットし、リモートリポジトリにプッシュします。
-
差分をステージングします。
git add . -
コミットメッセージには、変更の目的と内容を明確に記述します。
git commit -m "feat/fix: [概要]" -
ブランチをリモートにプッシュします。
git push origin [ブランチ名]
4. Pull Request の作成
GitHub API または MCP ツール、あるいは GitHub CLI を用いてPull Requestを作成します。
GitHub MCP ツールを使用する場合
- ツール:
mcp_github-mcp-server_create_pull_requestを呼び出します。 - 引数:
title:[PRの簡潔なタイトル]body: 変更内容の概要、テストした内容、関連するIssue番号(Closes #123など)を含めます。head:[開発ブランチ名]base:main
GitHub CLI (gh) コマンドを使用する場合
gh pr create --title "[PRの簡潔なタイトル]" --body "[PRの詳細な説明。関連Issue: Closes #Issue番号]" --base main --head [開発ブランチ名]
5. 完了報告
PRの作成が完了したら、生成されたPRのURLをユーザーに報告し、検証結果(すべてのチェックがパスしたこと)を伝えてください。 これでPR送付プロセスは完了です。
When not to use it
- →When the implementation work is not yet complete
- →When local validation checks are not desired
- →When a Pull Request is not intended to be created
Limitations
- →Requires all local quality checks to pass before proceeding
- →Needs explicit command execution permission
- →Relies on GitHub API or GitHub CLI for PR creation
How it compares
This skill automates a rigorous pre-push validation and PR creation workflow, preventing CI failures and ensuring adherence to quality standards, unlike manual submission.
Compared to similar skills
PR Submitter side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| PR Submitter (this skill) | 0 | 1mo | Review | Intermediate |
| ast-grep-find | 3 | 6mo | Review | Intermediate |
| code-change-verification | 4 | 4mo | Review | Beginner |
| dev | 2 | 5mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
ast-grep-find
parcadei
AST-based code search and refactoring via ast-grep MCP
code-change-verification
openai
Run the mandatory verification stack when changes affect runtime code, tests, or build/test behavior in the OpenAI Agents Python repository.
dev
atopile
LLM-focused workflow for working in this repo: compile Zig, run the orchestrated test runner, consume test-report.json/html artifacts, and discover/debug ConfigFlags.
release-skills
JimLiu
Universal release workflow. Auto-detects version files and changelogs. Supports Node.js, Python, Rust, Claude Plugin, and generic projects. Use when user says "release", "发布", "new version", "bump version", "push", "推送".
http-client-python-bump-and-release
microsoft
Create a PR to bump dependencies or release a new version of the http-client-python package. Use when the user wants to bump TypeSpec/Azure-tools dependencies, update peer dependencies, or release a new version of the Python HTTP client.
mflux-pr
filipstrand
Make a clean PR in mflux (inspect diff, quick verification, commit, push, open PR) using repo conventions.