-
Notifications
You must be signed in to change notification settings - Fork 7
feat(workflow): DLT-3290 add plan for review rules sync automation #1191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
belumontoya
wants to merge
1
commit into
staging
Choose a base branch
from
feat/DLT-3290-review-rules-sync
base: staging
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+33
โ0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # DLT-3290: Review Rules Sync | ||
|
|
||
| Created: 2026-04-10 | ||
| Status: PENDING | ||
| Type: Feature | ||
|
|
||
| ## Problem | ||
|
|
||
| Review rules now live in three places that drift independently: | ||
|
|
||
| 1. `.claude/rules/code-review.md` (+ `vue-components.md`, `css-utilities.md`, `design-tokens.md`) โ source of truth for Claude Code local development | ||
| 2. `.coderabbit.yaml` path_instructions โ condensed rules for CodeRabbit PR reviews | ||
| 3. `.github/workflows/claude-code-review.yml` prompt โ condensed rules for Claude CI review | ||
|
|
||
| When a rule is added or updated in one place, the others must be updated to match. Currently this is manual and will drift. | ||
|
|
||
| ## Proposed Solution | ||
|
|
||
| Extend the existing doc-sync pattern (edit tracker hook โ pre-push guard โ enforcer skill) to cover review rule files. When a rule source file is edited, the pre-push guard detects the change and triggers Claude to update the condensed versions in the other two targets. | ||
|
|
||
| ### Source โ Target Mapping | ||
|
|
||
| | Source | Targets | | ||
| |--------|---------| | ||
| | `.claude/rules/code-review.md` | `.coderabbit.yaml`, workflow prompt | | ||
| | `.claude/rules/vue-components.md` | `.coderabbit.yaml` Vue section, workflow Vue section | | ||
| | `.claude/rules/css-utilities.md` | `.coderabbit.yaml` CSS section | | ||
| | `.claude/rules/design-tokens.md` | `.coderabbit.yaml` tokens section | | ||
| | `.claude/rules/icons.md` | `.coderabbit.yaml` icons section | | ||
|
|
||
| ## Status | ||
|
|
||
| Awaiting analysis of Claude and CodeRabbit review behavior on this PR before planning implementation. | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align source-file scope across sections
Line 11 omits
.claude/rules/icons.md, but Lines 29-30 include it in the sync mapping. Please keep the source list and mapping table consistent so automation triggers are unambiguous.Also applies to: 29-30
๐ค Prompt for AI Agents