GEMINI.md
packages/cli/GEMINI.mdGEMINI.md
Quality
47/100
Scores the file, not the repository.Length
193 words
2 headings · 0 code blocksRepository
106k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1## React & Ink (CLI UI)23- **Side Effects**: Use reducers for complex state transitions; avoid `setState`4 triggers in callbacks.5- Always fix react-hooks/exhaustive-deps lint errors by adding the missing6 dependencies.7- **Shortcuts**: only define keyboard shortcuts in8 `packages/cli/src/ui/key/keyBindings.ts`9- Do not implement any logic performing custom string measurement or string10 truncation. Use Ink layout instead leveraging ResizeObserver as needed. When11 using `ResizeObserver`, prefer the `useCallback` ref pattern (as seen in12 `MaxSizedBox.tsx`) to ensure size measurements are captured as soon as the13 element is available, avoiding potential rendering timing issues.14- Avoid prop drilling when at all possible.1516## Testing1718- **Utilities**: Use `renderWithProviders` and `waitFor` from19 `packages/cli/src/test-utils/`.20- **Snapshots**: Use `toMatchSnapshot()` to verify Ink output.21- **SVG Snapshots**: Use `await expect(renderResult).toMatchSvgSnapshot()` for22 UI components whenever colors or detailed visual layout matter. SVG snapshots23 capture styling accurately. Make sure to await the `waitUntilReady()` of the24 render result before asserting. After updating SVG snapshots, always examine25 the resulting `.svg` files (e.g. by reading their content or visually26 inspecting them) to ensure the render and colors actually look as expected and27 don't just contain an error message.28- **Mocks**: Use mocks as sparingly as possible.29
Also in google-gemini/gemini-cli
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| google-gemini/gemini-cliGEMINI.md · 106k | GEMINI.md | setupbuildtestlint-format+6 | 91/100 | 3 days ago | |
| google-gemini/gemini-clipackages/a2a-server/GEMINI.md · 106k | GEMINI.md | test | 37/100 | 3 days ago | |
| google-gemini/gemini-clipackages/core/GEMINI.md · 106k | GEMINI.md | teststyle | 63/100 | 3 days ago | |
| google-gemini/gemini-clipackages/devtools/GEMINI.md · 106k | GEMINI.md | setupbuildarchapi+1 | 74/100 | 3 days ago | |
| google-gemini/gemini-clipackages/sdk/GEMINI.md · 106k | GEMINI.md | teststyle | 41/100 | 3 days ago | |
| google-gemini/gemini-clipackages/test-utils/GEMINI.md · 106k | GEMINI.md | testarchtesting-strategy | 58/100 | 3 days ago | |
| google-gemini/gemini-clipackages/vscode-ide-companion/GEMINI.md · 106k | GEMINI.md | buildtest | 41/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| google-gemini/gemini-cliGEMINI.md · 106k | GEMINI.md | setupbuildtestlint-format+6 | 91/100 | 3 days ago | |
| diegosouzapw/OmniRouteGEMINI.md · 38k | GEMINI.md | testlint-formatarchsecurity+2 | 87/100 | 3 days ago | |
| compozy/gographGEMINI.md · 9 | GEMINI.md | setuptestlint-formatarch+4 | 86/100 | 3 days ago | |
| nordeim/misc1/GEMINI.md · 0 | GEMINI.md | setupbuildtestlint-format+3 | 81/100 | 3 days ago | |
| firebase/flutterfireGEMINI.md · 9.2k | GEMINI.md | lint-formatstylearchdo-not+1 | 80/100 | 3 days ago | |
| nodejs/nodedeps/v8/GEMINI.md · 119k | GEMINI.md | buildteststylearch+4 | 77/100 | 3 days ago | |
| abpframework/abpnpm/ng-packs/packages/schematics/src/commands/ai-config/files/gemini/.gemini/GEMINI.md · 14k | GEMINI.md | testlint-formatstylearch+8 | 76/100 | 2 days ago | |
| zyx77550/spardaGEMINI.md · 4 | GEMINI.md | testlint-formatgitapi+2 | 75/100 | 3 days ago |
