docs(claude): PR 作成後の追従ルール追加と失敗知見の scoped rule 化#398
Conversation
- CLAUDE.md「コミット / PR フロー」に PR 作成後の追従を追記 (CI・レビュー指摘の確認→修正→再 push、意思決定/範囲逸脱は承認) - 「失敗から学んだ知見」の領域固有項目を各 scoped rule へ移設し索引化 - lint 個別検証 → rules/backend/python.md - IntegrityError 後の再 SELECT → rules/backend/database.md - タスクハンドラの黙って return 禁止 → rules/backend/architecture.md - layers.md の旧 CLAUDE.md 参照を整合(正本は layers.md / database.md) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthrough
ChangesAI Rules Reorganization and New Backend Rules
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
概要
.claude/の AI ガイドラインのみの変更です(アプリコードの変更なし=コード CI 対象外)。PR 作成後の追従ルールを追加:
CLAUDE.md「コミット / PR フロー」に、PR 作成後は CI 結果とレビュー指摘を追従し、こけ・指摘があれば修正→make ci→再 push を green かつ解消まで繰り返す旨を追記。ただし意思決定を要する指摘(設計・API/型契約・挙動変更)と diff 範囲を逸脱する指摘は勝手に直さず承認を取る、範囲内の機械的修正は承認不要、と明記。「失敗から学んだ知見」を scoped rule 化: 領域固有の項目を、対象パス編集時に自動ロードされる各 scoped rule へ移設し、
CLAUDE.md側は索引に集約。常時ロードされるCLAUDE.mdを 211→194 行に縮小しつつ、backend 固有の詳細は backend 編集時のみロードされるよう整理。変更詳細
CLAUDE.mdrules/backend/python.mdrules/backend/database.mdIntegrityError後の再 SELECT はNone判定でRuntimeErrorを追記rules/backend/architecture.mdrules/backend/layers.mdCLAUDE.md参照を整合(正本は layers.md / database.md)テスト
doc のみの変更のため
make ci(コード lint/test)対象外。Router/ORM・300/500 行・DB モック等の項目は移設先 rule に既出のため重複削除のみ。🤖 Generated with Claude Code
Summary by CodeRabbit
Note: This release contains no user-facing changes; updates are limited to developer documentation and internal process improvements.