Repository navigation
#37 - Add documentation sync rule and drift guidance - #42
Merged
Merged
Conversation
Two project-level additions to reduce documentation drift:
1. .claude/rules/docs-sync.md — a Claude Code rule mapping source
files to the docs they tend to drift with. Tiered by impact (API
surface, backend/build, benchmarks, landing page, README,
CLAUDE.md). Each tier names the specific files and subsections
that drift, plus a freshness disclaimer pointing the agent at
grep / mkdocs.yml / CI as sources of truth. Triggers passively at
commit time ("consider whether docs need updating", not "must
update on every edit"). README.md and CLAUDE.md are both included
alongside docs/.
2. CLAUDE.md additions:
- New "Documentation" section: layout of docs/, the 5 recurring
drift hotspots inline (backend list, CMake options, benchmark
names, public API, doc reorgs), pointer to the rule, deploy
story.
- New bullet under Contribution rules: when opening a PR touching
src/, examples/, or mkdocs.yml, scan the doc-sync mapping.
Notes:
- Hardcoded paths in the rule will go stale on doc reorgs; the
freshness disclaimer mitigates by steering the agent to grep
before acting.
- Content drift in user-facing docs (binary names, YAML configs) is
enforced deterministically by the doc-refs checker in PR 2;
CLAUDE.md content drift is the remaining manual surface that this
rule helps with.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Ramya Gurunathan <rgurunathan@nvidia.com>
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.
Two project-level additions to reduce documentation drift:
.claude/rules/docs-sync.md — a Claude Code rule mapping source files to the docs they tend to drift with. Tiered by impact (API surface, backend/build, benchmarks, landing page, README, CLAUDE.md). Each tier names the specific files and subsections that drift, plus a freshness disclaimer pointing the agent at grep / mkdocs.yml / CI as sources of truth. Triggers passively at commit time ("consider whether docs need updating", not "must update on every edit"). README.md and CLAUDE.md are both included alongside docs/.
CLAUDE.md additions:
Notes: