RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/GEMINI.md/google-gemini/gemini-cli

GEMINI.md

packages/cli/GEMINI.md
GEMINI.md

Quality

47/100

Scores the file, not the repository.

Length

193 words

2 headings · 0 code blocks

Repository

106k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
google-gemini/gemini-cli/packages/cli/GEMINI.mdRawGitHub
1## React & Ink (CLI UI)
2 
3- **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 missing
6 dependencies.
7- **Shortcuts**: only define keyboard shortcuts in
8 `packages/cli/src/ui/key/keyBindings.ts`
9- Do not implement any logic performing custom string measurement or string
10 truncation. Use Ink layout instead leveraging ResizeObserver as needed. When
11 using `ResizeObserver`, prefer the `useCallback` ref pattern (as seen in
12 `MaxSizedBox.tsx`) to ensure size measurements are captured as soon as the
13 element is available, avoiding potential rendering timing issues.
14- Avoid prop drilling when at all possible.
15 
16## Testing
17 
18- **Utilities**: Use `renderWithProviders` and `waitFor` from
19 `packages/cli/src/test-utils/`.
20- **Snapshots**: Use `toMatchSnapshot()` to verify Ink output.
21- **SVG Snapshots**: Use `await expect(renderResult).toMatchSvgSnapshot()` for
22 UI components whenever colors or detailed visual layout matter. SVG snapshots
23 capture styling accurately. Make sure to await the `waitUntilReady()` of the
24 render result before asserting. After updating SVG snapshots, always examine
25 the resulting `.svg` files (e.g. by reading their content or visually
26 inspecting them) to ensure the render and colors actually look as expected and
27 don't just contain an error message.
28- **Mocks**: Use mocks as sparingly as possible.
29 

Sections

  • React & Ink (CLI UI)
  • Testing

What it covers

testcode-styleui

Stack — with the evidence

typescript

(1.00)

node

(1.00)

vitest

(1.00)

eslint

(1.00)

react

(0.70)

express

(0.70)

jest

(0.70)

javascript

(0.60)

docker

(0.60)

github-actions

(0.60)

Format

GEMINI.md

Gemini CLI's memory file, structurally close to CLAUDE.md — @imports and a user-scope layer — which is why repos that carry both usually carry near-identical text in each.

What the corpus says about it

Repository

Owner
google-gemini
Language
—
License
—
Archived
no

All configs in this repo

Also in google-gemini/gemini-cli

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
google-gemini/gemini-cliGEMINI.md · 106kGEMINI.mdtypescriptnode+9setupbuildtestlint-format+691/1003 days ago
google-gemini/gemini-clipackages/a2a-server/GEMINI.md · 106kGEMINI.mdtypescriptnode+8test37/1003 days ago
google-gemini/gemini-clipackages/core/GEMINI.md · 106kGEMINI.mdtypescriptnode+8teststyle63/1003 days ago
google-gemini/gemini-clipackages/devtools/GEMINI.md · 106kGEMINI.mdtypescriptnode+8setupbuildarchapi+174/1003 days ago
google-gemini/gemini-clipackages/sdk/GEMINI.md · 106kGEMINI.mdtypescriptnode+8teststyle41/1003 days ago
google-gemini/gemini-clipackages/test-utils/GEMINI.md · 106kGEMINI.mdtypescriptnode+9testarchtesting-strategy58/1003 days ago
google-gemini/gemini-clipackages/vscode-ide-companion/GEMINI.md · 106kGEMINI.mdtypescriptnode+8buildtest41/1003 days ago
Diff against GEMINI.md Diff against packages/a2a-server/GEMINI.md Diff against packages/core/GEMINI.md Diff against packages/devtools/GEMINI.md Diff against packages/sdk/GEMINI.md Diff against packages/test-utils/GEMINI.md Diff against packages/vscode-ide-companion/GEMINI.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
google-gemini/gemini-cliGEMINI.md · 106kGEMINI.mdtypescriptnode+9setupbuildtestlint-format+691/1003 days ago
diegosouzapw/OmniRouteGEMINI.md · 38kGEMINI.mdtypescriptnode+14testlint-formatarchsecurity+287/1003 days ago
compozy/gographGEMINI.md · 9GEMINI.mdtypescriptgo+5setuptestlint-formatarch+486/1003 days ago
nordeim/misc1/GEMINI.md · 0GEMINI.mdnodetailwind+7setupbuildtestlint-format+381/1003 days ago
firebase/flutterfireGEMINI.md · 9.2kGEMINI.mddartflutter+3lint-formatstylearchdo-not+180/1003 days ago
nodejs/nodedeps/v8/GEMINI.md · 119kGEMINI.mdtypescriptjavascript+7buildteststylearch+477/1003 days ago
abpframework/abpnpm/ng-packs/packages/schematics/src/commands/ai-config/files/gemini/.gemini/GEMINI.md · 14kGEMINI.mdcsharpangular+6testlint-formatstylearch+876/1002 days ago
zyx77550/spardaGEMINI.md · 4GEMINI.mdjavascriptvitest+9testlint-formatgitapi+275/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack