ci: refine docs-sync for concise updates#2431
Merged
kronosapiens merged 2 commits intomainfrom Feb 17, 2026
Merged
Conversation
- Rewrite Claude prompt to default to no changes, enforce single canonical location for edits, and minimize duplication - Pass actual diff content (not just filenames) so Claude sees what changed - Tighten file patterns to packages/ SDK code only, dropping internal src/, package.json, README, CHANGELOG - Pin model to sonnet-4.5 for predictability and cost Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Add allowed_tools to prevent Claude from attempting Bash calls (e.g. gh pr list) during code review, which causes non-deterministic failures when permission is denied. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
bal7hazar
approved these changes
Feb 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs-sync workflow:
packages/SDK code only, dropping internalsrc/,package.json,README.md,CHANGELOG.mdclaude-sonnet-4-5for cost and predictabilityclaude-code-review workflow:
allowed_tools: "Read,Glob,Grep"to prevent non-deterministic failures when Claude attempts Bash calls (e.g.gh pr list) during reviewMotivation
The docs-sync workflow produces overly broad docs PRs — the same change gets referenced 3-5+ times across overview, getting-started, and detail pages.
The new prompt rules (
DEFAULT TO NO CHANGES,SINGLE CANONICAL LOCATION,MINIMAL EDITS,ONE CODE EXAMPLE) should produce tighter, more focused updates.The review workflow intermittently fails when Claude decides to use Bash, which isn't permitted in CI. Restricting to read-only tools eliminates this.
Test plan
workflow_dispatchon a recent commit that changed SDK code and verify the resulting docs PR is focused🤖 Generated with Claude Code