Skip to content

chore: Claude Code自動化の導入(hooks / Convex MCP / skill / subagent) - #2

Merged
yamk12nfu merged 2 commits into
mainfrom
feature/claude-automations
Jul 21, 2026
Merged

yamk12nfu merged 2 commits into
mainfrom
feature/claude-automations

Conversation

@yamk12nfu

Copy link
Copy Markdown
Owner

概要

/claude-automation-recommender の分析結果に基づき、開発を自動化する設定一式を追加する。

追加内容

種類 ファイル 内容
Hook (PostToolUse) .claude/settings.json .ts/.tsx 編集のたびに tsc --noEmit を実行し、型エラーを即座にAIへフィードバック
保護ルール .claude/settings.json permissions.deny で .env* のAIによる編集を禁止(秘密鍵の誤編集防止)
MCPサーバー .mcp.json Convex公式MCP。dev環境のテーブル照会・関数実行をAIから直接可能に
Skill .claude/skills/implement-phase/ /implement-phase N でフェーズ実装の定型フロー(ブランチ→実装→検証→PR)を実行。mainへの直接コミットとPR自動マージを禁止事項として明記
Subagent .claude/agents/tenant-isolation-reviewer.md Convex公開関数の認可漏れ(要件5.2のテナント分離)だけを検査する読み取り専用レビュアー

検証

  • hookコマンドの単体テスト: ts編集→型チェック実行 / md編集→スキップ / 型エラー→検出、すべて確認
  • hookの実発火をセンチネルで確認済み(このセッションで有効化済み)
  • .claude/settings.json / .mcp.json はjqで構文・スキーマ検証済み

マージ後の利用者側の作業

  • 次回Claude Code起動時に .mcp.json のconvexサーバーを承認するプロンプトが出るので許可する

🤖 Generated with Claude Code

https://claude.ai/code/session_01TXR7e4TNzw439UpX5JQTuC

- PostToolUse hook: .ts/.tsx編集後に tsc --noEmit で即時型チェック
- permissions.deny: .env* ファイルのAIによる編集を禁止
- .mcp.json: Convex公式MCPサーバー(dev環境のデータ照会・関数実行)
- /implement-phase skill: フェーズ実装の定型フロー(ブランチ→実装→検証→PR)
- tenant-isolation-reviewer subagent: Convex公開関数の認可漏れ専門検査

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TXR7e4TNzw439UpX5JQTuC
@coderabbitai

coderabbitai Bot commented Jul 20, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@yamk12nfu, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 35 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a5aeb62a-ce12-4315-9586-9496f9f9cf4b

📥 Commits

Reviewing files that changed from the base of the PR and between c6de924 and 047fcfb.

📒 Files selected for processing (4)
  • .claude/agents/tenant-isolation-reviewer.md
  • .claude/settings.json
  • .claude/skills/implement-phase/SKILL.md
  • .mcp.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/claude-automations

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

- hooks: jq未インストール時に黙って型チェックをスキップせず、exit 2で明示的に失敗させる
- implement-phase skill: 検証フローにテスト実行(vitest)を追加
- tenant-isolation-reviewer: storageIdの世帯帰属検証を検査項目に追加
- Write(.env*)の削除提案は見送り(冗長だが無害なため防御として残す)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TXR7e4TNzw439UpX5JQTuC
@yamk12nfu
yamk12nfu merged commit 7afee9b into main Jul 21, 2026
1 check passed
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