feat(gemini): add user-global Gemini CLI instructions#137
Conversation
`home/dot_gemini/` did not exist, so chezmoi deployed nothing to `~/.gemini/GEMINI.md`. Without a user-global `GEMINI.md`, Gemini CLI sessions in repositories that lack a project-level `GEMINI.md` fall back to model defaults for the conversation language policy, Conventional Commits style, and the bounded signing fallback ladder. Add `home/dot_gemini/GEMINI.md` modeled on the canonical Copilot user-global file, adapted for Gemini CLI's interaction model (intent-based pause/continue wording rather than the Copilot product-specific "Agent mode" / "Plan mode" terms). The file preserves the same five sections (deferral preamble, Conversation, Commit rules with the full P/C/A/U signing fallback ladder, Coding standards, Guardrails) as the Codex, Claude Code, and Copilot user-global files. Track C under the symmetrization roadmap (#130). The sibling documentation update lands in `docs/ai-strategy.md` (#134). Refs #133 Roadmap #130 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThis PR introduces ChangesGemini CLI user-global instructions
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
home/dot_gemini/GEMINI.md (1)
45-140: ⚡ Quick winKeep the signing ladder as five numbered steps for contract parity.
Line 45 frames a bounded ladder, but Lines 120-140 continue numbering as steps 6-8. That drifts from the “same five steps” objective and makes cross-file parity with the Copilot instruction set harder to validate. Consider keeping only five numbered steps and moving 6-8 into sub-bullets or a non-numbered “Notes/Reporting” subsection.
🤖 Prompt for 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. In `@home/dot_gemini/GEMINI.md` around lines 45 - 140, The numbered “ladder” in the "Prefer signed commits" section currently continues past five steps (steps 6–8); change it so the ladder is exactly five numbered steps (keep items 1–5 as-is) and move the content currently labeled 6 ("Treat SSH signing as best-effort"), 7 ("Unsigned commit is the accepted final fallback"), and 8 ("Always report which path was taken") into a non-numbered "Notes" or "Reporting" subsection (or convert them to sub-bullets) under the same header; update the text around the ladder header and any references to ensure the unique phrases "Prefer signed commits", the numbered steps 1–5, and the specific lines beginning with "Treat SSH signing as best-effort", "Unsigned commit is the accepted final fallback", and "Always report which path was taken" are relocated and reflowed so the document only shows five numbered steps followed by the new Notes/Reporting block.
🤖 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.
Nitpick comments:
In `@home/dot_gemini/GEMINI.md`:
- Around line 45-140: The numbered “ladder” in the "Prefer signed commits"
section currently continues past five steps (steps 6–8); change it so the ladder
is exactly five numbered steps (keep items 1–5 as-is) and move the content
currently labeled 6 ("Treat SSH signing as best-effort"), 7 ("Unsigned commit is
the accepted final fallback"), and 8 ("Always report which path was taken") into
a non-numbered "Notes" or "Reporting" subsection (or convert them to
sub-bullets) under the same header; update the text around the ladder header and
any references to ensure the unique phrases "Prefer signed commits", the
numbered steps 1–5, and the specific lines beginning with "Treat SSH signing as
best-effort", "Unsigned commit is the accepted final fallback", and "Always
report which path was taken" are relocated and reflowed so the document only
shows five numbered steps followed by the new Notes/Reporting block.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 7129d95b-3650-437c-bd47-3d41dbcd49ee
📒 Files selected for processing (1)
home/dot_gemini/GEMINI.md
There was a problem hiding this comment.
Pull request overview
Adds a new user-global Gemini CLI instructions file under home/ so chezmoi deploys a consistent baseline guidance set to ~/.gemini/GEMINI.md, aligning Gemini CLI with the existing user-global instruction surfaces for other agents.
Changes:
- Add
home/dot_gemini/GEMINI.mdwith repository-precedence guidance, conversation policy, Conventional Commits rules, the bounded signing fallback ladder, coding standards defaults, and guardrails.
|
claude-code-73ed18fc: review triage snapshot — IDD automation marker. Do not edit. |
|
Acknowledged — recording the auto-no-action review for the F2 unreplied-comment evidence check. |
E6 dispositions — PATH A and PATH BPATH A (reviewer feedback, Rejected):
PATH B (advisory, Rejected):
E2 critique pass returned 0 additional findings. |
|
claude-code-73ed18fc: review triage snapshot (final pre-merge) — IDD automation marker. Do not edit. |
Summary
Adds
home/dot_gemini/GEMINI.mdso chezmoi deploys a user-globalGemini CLI instructions file at
~/.gemini/GEMINI.md, bringingGemini CLI to parity with the already-deployed Copilot CLI, Codex
CLI, and Claude Code user-global files.
The new file preserves the same five sections — repository-precedence
preamble, Conversation, Commit rules (with the full P/C/A/U signing
fallback ladder), Coding standards, and Guardrails — adapted for
Gemini CLI's interaction model (intent-based wording in place of the
Copilot product-specific "Agent mode" / "Plan mode" terms).
Closes #133
Roadmap #130
Test plan
npx markdownlint-cli2 "home/dot_gemini/GEMINI.md"— 0 errorsnpx cspell home/dot_gemini/GEMINI.md— 0 issuestests/bash/helpers/bats-core/bin/bats tests/bash/— 212/212pwsh -c "Invoke-Pester tests/powershell/ -Output Detailed"— 182 passed, 0 failed, 33 skippedSigning path
GPG attempt 1 (category P pinentry —
PINENTRY_LAUNCHEDthentimeout). Category (P) prohibits the gpg-agent restart, so routed
directly to the project-blessed
git commit-sshalias (attempt 2).Out-of-scope
docs(ai-strategy)Summary by CodeRabbit