gemini-cli-helper
Skill38 starsChanged 7 days agoApache-2.0View on GitHub
Run Gemini CLI commands from Codex with correct Node version. Use when user asks to run Gemini CLI, test Gemini traces, or debug Gemini telemetry.
In this repository85 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- agent-inboxSkill
- ailang-core-triageSkill
- ailang-packagesSkill
- benchmark-managerSkill
- benchmark-runnerSkill
- builtin-developerSkill
- cli-doc-maintainerSkill
- cloud-cascade-debugSkill
- cloud-setupSkill
- codebase-organizerSkill
- collaboration-hubSkill
- coordinator-helperSkill
- design-doc-creatorSkill
- design-spec-auditorSkill
- docs-syncSkill
- eval-analyzerSkill
- eval-gap-finderSkill
- github-issue-triageSkill
- headless-runnerSkill
- local-model-onboardingSkill
- local-ollama-evalSkill
- mission-briefSkill
- mission-controlSkill
- mission-loop-changeSkill
- model-managerSkill
- motoko-analyzerSkill
- parser-developerSkill
- post-releaseSkill
- pr-monitorSkill
- prompt-managerSkill
- release-managerSkill
- sonarcloud-triageSkill
- sprint-evaluatorSkill
- sprint-executorSkill
- sprint-plannerSkill
- test-coverage-guardianSkill
- trace-debuggerSkill
- use-ailangSkill
- wasm-debuggerSkill
- agent-inboxSkill
- ailang-core-triageSkill
- ailang-packagesSkill
- benchmark-managerSkill
- benchmark-runnerSkill
- builtin-developerSkill
- cli-doc-maintainerSkill
- cloud-cascade-debugSkill
- cloud-setupSkill
- codebase-organizerSkill
- collaboration-hubSkill
- coordinator-helperSkill
- design-doc-creatorSkill
- design-spec-auditorSkill
- docs-syncSkill
- eval-analyzerSkill
- eval-gap-finderSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Run Gemini CLI commands with the correct Node.js version and configuration.
- Distinctive: line 34
Run a Gemini CLI prompt with correct Node version.
- Distinctive: line 49
Check Gemini CLI installation and configuration status.
- Very specific: line 99
Create or edit ~/.gemini/settings.json:
- Very specific: line 190
Always use the scripts in this skill instead of direct gemini command
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gemini CLI Helper
Run Gemini CLI commands with the correct Node.js version and configuration.
Quick Start
Run a Gemini prompt:
.Codex/skills/gemini-cli-helper/scripts/gemini_run.sh "Your prompt here"Check Gemini CLI status:
.Codex/skills/gemini-cli-helper/scripts/gemini_status.shWhen to Use This Skill
Invoke this skill when:
- User asks to run Gemini CLI
- User wants to test Gemini trace visibility
- User asks to debug Gemini telemetry
- User mentions "gemini" CLI commands
- Coordinator needs to execute Gemini tasks
Available Scripts
scripts/gemini_run.sh <prompt> [--json]
Run a Gemini CLI prompt with correct Node version.
Usage:
# Simple prompt
.Codex/skills/gemini-cli-helper/scripts/gemini_run.sh "Say hello"
# With JSON output
.Codex/skills/gemini-cli-helper/scripts/gemini_run.sh "Say hello" --json
# Complex prompt with quotes
.Codex/skills/gemini-cli-helper/scripts/gemini_run.sh "List 3 things about AILANG"scripts/gemini_status.sh
Check Gemini CLI installation and configuration status.
Usage:
.Codex/skills/gemini-cli-helper/scripts/gemini_status.shOutput:
Gemini CLI Status
━━━━━━━━━━━━━━━━━
Node Version: v22.20.0 (required: v20+)
Gemini CLI: /Users/mark/.nvm/versions/node/v22.20.0/bin/gemini
Version: 0.21.1
GCP Project: multivac-internal-dev
Telemetry: Enabled (GCP Cloud Trace)Critical Knowledge
Node Version Requirement
Gemini CLI requires Node.js v20 or higher due to regex flag syntax.
# WRONG - Will fail with "Invalid regular expression flags"
gemini --version # Uses default Node which may be v18
# CORRECT - Use full path with Node v22
/Users/mark/.nvm/versions/node/v22.20.0/bin/node \
/Users/mark/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/dist/index.js \
--versionCommon Errors
| Error | Cause | Fix |
Invalid regular expression flags | Node < v20 | Use full Node v22 path |
MODULE_NOT_FOUND | Wrong CLI path | Check actual symlink target |
Cannot find module | Incorrect dist path | Use dist/index.js not bin/cli.mjs |
Telemetry Configuration
⚠️ CRITICAL: Telemetry is DISABLED by default!
To enable Gemini CLI traces in AILANG Observatory:
Option 1: Direct to GCP (Recommended)
Create or edit ~/.gemini/settings.json:
{
"telemetry": {
"enabled": true,
"target": "gcp",
"logPrompts": true
}
}Or use environment variables:
export GEMINI_TELEMETRY_ENABLED=true
export GEMINI_TELEMETRY_TARGET=gcp
export GOOGLE_CLOUD_PROJECT=multivac-internal-devOption 2: Via OTLP Collector
For more control (e.g., sending to multiple backends):
- Create
~/.gemini/collector-config.yaml:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
exporters:
googlecloud:
project: multivac-internal-dev
otlp/ailang:
endpoint: localhost:1957
tls:
insecure: true
service:
pipelines:
traces:
receivers: [otlp]
exporters: [googlecloud, otlp/ailang]- Enable collector mode in settings:
{
"telemetry": {
"enabled": true,
"target": "local",
"useCollector": true,
"otlpEndpoint": "http://localhost:4317"
}
}Traces appear in:
- GCP Cloud Trace Console
- AILANG Observatory (via composite backend or direct OTLP)
Workflow
1. Check Status First
.Codex/skills/gemini-cli-helper/scripts/gemini_status.sh2. Run Prompt
.Codex/skills/gemini-cli-helper/scripts/gemini_run.sh "Your prompt"3. Verify Traces (Optional)
curl -s "http://localhost:1957/api/observatory/traces?limit=10" | jq '.[].service_name' | sort -uResources
Reference Guide
See resources/reference.md for:
- Full path configuration
- nvm setup instructions
- Troubleshooting guide
- GCP telemetry details
Notes
- Always use the scripts in this skill instead of direct
geminicommand - Scripts handle Node version detection automatically
- Telemetry goes to GCP Cloud Trace, then imported to Observatory
- JSON output mode recommended for programmatic use
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

