feat(review): per-repo review CLAUDE.md + skill library from the container-private config dir#1580
Merged
Merged
Conversation
…ainer-private config dir #review-skills. Each repo's review folder in GITTENSORY_REPO_CONFIG_DIR (<repo>/review/CLAUDE.md + review/skills/*.md) is loaded and injected into the reviewer prompt, so reviews follow each repo's own conventions/voice. Private (not in the public repo), works on any host. Cost-conscious: the CLAUDE.md guide is always-on, but each skill is GLOB-GATED by its `when:` frontmatter — only skills matching the PR's changed files are injected — and the total is bounded. Folds into the same review.instructions prompt slot (#1579), so it inherits the public-safe wrapper. - private-config.ts: makeLocalReviewContextReader (reads review/CLAUDE.md + skills/*.md, first existing folder wins) + parseReviewSkill (frontmatter name/when + body). - focus-manifest-loader.ts: setLocalReviewContextReader + loadRepoReviewContext (Node fs stays out of the Workers bundle). - focus-manifest.ts: composeRepoReviewContext (guide + always/glob-matched skills, bounded; reuses matchesManifestPath). - processors.ts: folds the composed context into reviewInstructions. server.ts: registers the reader at boot.
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1580 +/- ##
==========================================
+ Coverage 95.45% 95.46% +0.01%
==========================================
Files 202 202
Lines 21784 21839 +55
Branches 7868 7885 +17
==========================================
+ Hits 20794 20849 +55
Misses 414 414
Partials 576 576
🚀 New features to boost your workflow:
|
This was referenced Jun 27, 2026
Closed
12 tasks
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.
#review-skills. Each repo's
<repo>/review/CLAUDE.md+review/skills/*.mdinGITTENSORY_REPO_CONFIG_DIRis loaded + injected into the reviewer prompt so reviews follow that repo's conventions. Private (config dir, not the public repo), portable to any host. Cost-conscious: the guide is always-on; each skill is glob-gated by itswhen:frontmatter (only skills matching the PR's changed files inject), total bounded. Folds into the #1579review.instructionsslot (same public-safe wrapper). Loader keeps Nodefsout of the Workers bundle (registered at boot). Fully covered (server.ts registration is codecov-ignored).