From 50d16cbe47d5508f4bea1e4bc8012243531bf7ff Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Sat, 29 Nov 2025 01:20:20 +0900 Subject: [PATCH] Allow Claude to fetch AI SDK docs during PR review --- .github/workflows/claude-code.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-code.yml b/.github/workflows/claude-code.yml index 7436bc1..7101be1 100644 --- a/.github/workflows/claude-code.yml +++ b/.github/workflows/claude-code.yml @@ -87,6 +87,9 @@ jobs: - Status handling: Check status (submitted/streaming/ready/error) before actions - Stream cleanup: Call stop() when aborting streams + When reviewing AI SDK usage, fetch https://ai-sdk.dev/docs/ to verify correct patterns. + Key doc pages: /docs/ai-sdk-ui/chatbot, /docs/ai-sdk-core/generating-text, /docs/ai-sdk-core/tools-and-tool-calling + DO NOT comment on: - Performance optimizations - Code style or formatting @@ -97,4 +100,4 @@ jobs: Use `mcp__github_inline_comment__create_inline_comment` for inline comments. Be very selective - if there are no real bugs, just say "LGTM" in a PR comment. claude_args: | - --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)" + --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),WebFetch(domain:ai-sdk.dev)"