| 1 | --- |
| 2 | description: Guidelines for editing Rust port plan documents |
| 3 | globs: |
| 4 | - compiler/docs/rust-port/*.md |
| 5 | --- |
| 6 | |
| 7 | When editing plan documents in `compiler/docs/rust-port/`: |
| 8 | |
| 9 | - Use `/plan-update <doc-path> <topic>` for deep research across all compiler passes before making significant updates |
| 10 | - Read the architecture guide (`rust-port-architecture.md`) for context |
| 11 | - Reference specific pass docs from `compiler/packages/babel-plugin-react-compiler/docs/passes/` when discussing pass behavior |
| 12 | - Update the "Current status" line at the top of plan docs after changes |
| 13 | - Keep plan docs as the source of truth — if implementation diverges from the plan, update the plan |