一键导入
pre-commit
Check branch status before commit. Ensures work is not done on stale/merged branches.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check branch status before commit. Ensures work is not done on stale/merged branches.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create a new feature branch following naming conventions. Uses Git MCP for branch operations.
Run static analysis tools (pylint, flake8 for Python, ESLint for JavaScript) to check Google Style compliance.
Create a pull request with change validation. Checks line count limit (max 300 lines) and ensures proper commit prefix. Uses GitHub MCP for PR operations.
Review current code changes for Google Style compliance, security issues, and test coverage. Uses Git MCP for diff analysis.
Run all project tests including Python pytest and JavaScript tests. Reports test results and failures.
| name | pre-commit |
| description | Check branch status before commit. Ensures work is not done on stale/merged branches. |
| user-invocable | true |
| allowed-tools | Bash, AskUserQuestion |
コミット前にブランチ状態を確認し、適切なブランチで作業していることを保証する。
branch skillを使って新しいブランチを作成するよう指示gh pr list --head <branch-name> --state merged でマージ済みPRがあるか確認git checkout main && git pull origin main)branch skillを使って新しいブランチを作成