Skip to content

docs: refine utility harmonization and comment brevity in GEMINI.md - #11270

Merged
ajperel merged 4 commits into
mainfrom
ajp/gemini-md-conventions
Oct 17, 2026
Merged

ajperel merged 4 commits into
mainfrom
ajp/gemini-md-conventions

Conversation

@ajperel

@ajperel ajperel commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Description

Refines repository authoring and review conventions in GEMINI.md:

  • Clarifies utility harmonization in Architecture & Module Design to cover both reusing/extending existing subsystem helpers and extracting/unifying shared logic across callers.
  • Clarifies Comments guidance to avoid multi-paragraph JSDoc blocks on small helpers, inline comments that restate self-evident code, and repeating the same rationale across functions or tests.

Scenarios Tested

Validated GEMINI.md formatting and markdown structure.

Sample Commands

N/A

@ajperel
ajperel requested a review from joehan October 12, 2026 22:24

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates GEMINI.md to refine guidelines for coding agents, including clearer instructions on utility reuse, error handling remediation, writing high-signal comments, testing error recovery mechanisms, and keeping public repository metadata clean. The review feedback suggests minor stylistic improvements for consistency, specifically adding a comma after 'e.g.' in several places and slightly adjusting the phrasing of the error testing guideline for better readability.

Comment thread GEMINI.md Outdated
Comment thread GEMINI.md Outdated
- **Use the central `logger`** (`src/logger.ts`); never use `console.log()` for user-facing output.
- **Throw `FirebaseError`** (`src/error.ts`) for expected, user-facing errors. If the error is due to a violation of a precondition (e.g. something
that is null but should never be), specify a non-zero exit code (`{ exit: 1 }`). Error messages should clearly explain what failed and why; when actionable, provide concrete remediation guidance (e.g. the expected format, a `--force` flag, or a discovery command like `firebase <entity>:list`).
that is null but should never be), specify a non-zero exit code (`{ exit: 1 }`). Error messages should clearly explain what failed and why; when actionable, provide concrete remediation guidance using documented CLI flags, commands, or configuration options (e.g. the expected format, a `--force` flag, or a discovery command like `firebase <entity>:list`—never undocumented or legacy internal fields).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with other parts of this document (such as lines 53 and 72), "e.g." should be followed by a comma ("e.g.,").

References
  1. The repository style guide uses 'e.g.,' with a comma in lines 53 and 72. (link)

Comment thread GEMINI.md Outdated

@joehan joehan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good, feel free to ignore the GCA super nits

Comment thread GEMINI.md Outdated
### Description
Refines repository authoring and review conventions in `GEMINI.md`:
- Clarifies utility harmonization in `Architecture & Module Design` to cover both reusing/extending existing subsystem helpers and extracting/unifying shared logic across callers.
- Clarifies `Comments` guidance to avoid multi-paragraph JSDoc blocks on small helpers, inline comments that restate self-evident code, and repeating the same rationale across functions or tests.

### Scenarios Tested
Validated `GEMINI.md` formatting and markdown structure.

### Sample Commands
N/A
@ajperel
ajperel force-pushed the ajp/gemini-md-conventions branch from b8a1498 to 7cc83f5 Compare October 16, 2026 23:29
@ajperel
ajperel merged commit 1168863 into main Oct 17, 2026
51 checks passed
@ajperel
ajperel deleted the ajp/gemini-md-conventions branch October 17, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants