Skip to content

docs(claude): add verify-upstream-before-patching rule#194

Merged
laurigates merged 1 commit into
mainfrom
docs/claude-verify-upstream-rule
May 8, 2026
Merged

docs(claude): add verify-upstream-before-patching rule#194
laurigates merged 1 commit into
mainfrom
docs/claude-verify-upstream-rule

Conversation

@laurigates
Copy link
Copy Markdown
Owner

Summary

  • Add exact_dot_claude/rules/verify-upstream-before-patching.md — a durable rule to check upstream master + closed issues via gh api / gh issue view before patching vendored or installed third-party code.
  • Covers tarball-installed packs without .git (the surfacing case), diverged forks, and generated files; explicit skip conditions to avoid friction on first-party work.

Test plan

  • chezmoi diff ~/.claude/rules/verify-upstream-before-patching.md clean (source ↔ target in sync)
  • No hooks/scripts touched

🤖 Generated with Claude Code

Distill a recurring lesson into a durable rule: before patching
third-party code that lives inside a project (vendored library,
custom-node tarball, fork checkout), check upstream master and
closed issues first. A 30-second `gh api` lookup often reveals the
fix already shipped in a newer release, avoiding both wasted local
patches and duplicate upstream PRs.

The rule covers the quick `gh` lookup recipes, the cases where it
matters most (tarball-installed packs without `.git`, diverged forks,
generated files), and explicit skip conditions so it doesn't add
friction to first-party work.

Surfaced from a ComfyUI custom-node debugging session where the
local install was 33 versions behind upstream master and both bugs
the author was about to PR were already fixed.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation claude labels May 8, 2026
@laurigates laurigates merged commit 89c78e8 into main May 8, 2026
7 checks passed
@laurigates laurigates deleted the docs/claude-verify-upstream-rule branch May 8, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude documentation Improvements or additions to documentation size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant