chore: adapt CLAUDE.md to Opus 5 with /doctor - #7517
Conversation
Walkthrough
ChangesCLAUDE.md guidance
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@CLAUDE.md`:
- Line 22: Update the “Before committing” guidance in CLAUDE.md to state that
pnpm prettier-lint formats the entire repository and may rewrite unrelated
files, while TZ=UTC pnpm test runs the full Jest suite. Remove the implication
that either command is limited to modified files, and retain the note that CI is
the only enforced gate.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: eddd4c1c-e64c-423b-b592-688a728f6498
📒 Files selected for processing (1)
CLAUDE.md
📜 Review details
⏰ Context from checks skipped due to timeout. (2)
- GitHub Check: ESLint and Test / run-eslint-and-test
- GitHub Check: format
🔇 Additional comments (1)
CLAUDE.md (1)
7-19: LGTM!Also applies to: 24-31
Proposed changes
CLAUDE.mdis loaded into context at the start of every Claude Code session in this repo. Most of its 101 lines restated facts a session can read directly from the repo, so they cost context on every run without adding information — and one line was factually wrong.Removed:
package.jsonandtsconfig.json, and they go stale silently.corepack enableand the pod-install ordering note — every other entry is a standardpackage.jsonscript..prettierrc.jsand.eslintrc.js.package.jsonand the directory names match the concepts one-to-one. Theapp/ee/Enterprise line and the "VoIP and VideoConf are separate features" warning are both covered better byCONTEXT.md, which is a ubiquitous-language glossary. What survives is two gotchas that nothing else states: the local-first data flow, and the fact that Redux and Zustand coexist so global state is not all in one place..huskydirectory and no pre-commit config in the repo; CI is the only gate. Replaced with an accurate note.Kept everything not derivable from the codebase: the CONTEXT.md pointer, platform floors,
corepack enable, pod-install before iOS builds, the before-committing directive, the offline-first data-flow rationale, the note that VideoConf may be removed, and the warning that VoIP and VideoConf are separate features.101 lines down to 31, roughly 830 fewer tokens of context per session.
Issue(s)
https://rocketchat.atlassian.net/browse/NATIVE-1444
How to test or reproduce
Read
CLAUDE.mdand confirm nothing removed is unavailable from the repo itself, and that nothing non-derivable was lost. Documentation only — no source code, build config, or test touched.Screenshots
N/A
Types of changes
Checklist
Further comments
Lint and unit tests were not run: this PR changes one Markdown file and touches no source, build config, or test.
The removed content is recoverable from this PR's diff if any of it turns out to be worth keeping. The
Pre-commit hooks enforce these checksline was verified false: no.huskydirectory, no pre-commit config, andpackage.jsonhas no prepare hook wiring one up.Summary by CodeRabbit