Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions docs/plans/2026-04-10-review-rules-sync.md
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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

โš ๏ธ Potential issue | ๐ŸŸก Minor

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
Verify each finding against the current code and only fix it if needed.

In `@docs/plans/2026-04-10-review-rules-sync.md` at line 11, The source-list at
the top (the list including `.claude/rules/code-review.md`, `vue-components.md`,
`css-utilities.md`, `design-tokens.md`) is missing `.claude/rules/icons.md`
while the sync mapping table later references `.claude/rules/icons.md` on Lines
29-30; make these consistent by either adding `.claude/rules/icons.md` to the
source-list or removing it from the mapping table so the automation triggers are
unambiguous, and ensure both the source list and the mapping table reference the
exact same set of filenames (e.g., `.claude/rules/icons.md`,
`.claude/rules/code-review.md`) to avoid mismatch.

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.
Loading