Skip to content

feat(skills): git-prにPR粒度チェックを追加#102

Merged
nkoji21 merged 2 commits intomainfrom
feat/git-pr-granularity-check
Apr 1, 2026
Merged

feat(skills): git-prにPR粒度チェックを追加#102
nkoji21 merged 2 commits intomainfrom
feat/git-pr-granularity-check

Conversation

@nkoji21
Copy link
Copy Markdown
Owner

@nkoji21 nkoji21 commented Apr 1, 2026

概要

/git-pr スキルが PR を作成する前に、変更の粒度を自動チェックするようにした。

背景

PR に複数の無関係な変更(例:機能追加 + インフラ修正)が混在していると、レビュー負荷が高くなる。
実際に今日のセッションで、CI スクリプト追加・vitest 修正・vercel.json 変更が1つの PR に混入する問題が起きたため、スキルレベルで防ぐ仕組みを追加した。

変更内容

.agents/skills/git-pr/SKILL.md にステップ2として粒度チェックを追加:

  • 変更ファイルを関心事(feature / test / config / infra / docs など)でグループ化
  • 2つ以上の無関係な関心事にまたがる場合は PR 作成を止め、分割を提案
  • 目安:変更行数 ~400行超 または 関心事 3つ以上

動作

  • 単一関心事 → そのまま PR 作成
  • 複数関心事 → ユーザーに確認(分割提案)し、確認後に進む

🤖 Generated with Claude Code

nkoji21 and others added 2 commits March 29, 2026 17:33
Before creating a PR, the skill now groups changed files by concern
and stops to suggest splitting if changes span 2+ unrelated areas
(e.g. feature + infra). Threshold: ~400 lines or 3+ concerns.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nkoji21 nkoji21 merged commit ad80e85 into main Apr 1, 2026
3 checks passed
@nkoji21 nkoji21 deleted the feat/git-pr-granularity-check branch April 1, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant