Przejdź do treści
Biblioteka skilli
AI i agenci · Integracja z narzędziem

gemini-cli-helper

/gemini-cli-helper

Uruchamia polecenia Gemini CLI z Codex we właściwej wersji Node, np. do testowania śladów i debugowania telemetrii Gemini.

Repozytorium
ailang ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
4
Skrypty
2
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co sprawdzić przed instalacją
  • 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/gemini_run.sh, scripts/gemini_status.sh

Co robi i kiedy

Uruchamia polecenia Gemini CLI z Codex we właściwej wersji Node, np. do testowania śladów i debugowania telemetrii Gemini.

Oryginalny opis (EN)

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.

Jak działa

  1. Quick Start
  2. When to Use This Skill
  3. Available Scripts
  4. Critical Knowledge
  5. Workflow
  6. Resources
  7. Notes
Sekcje z nagłówków SKILL.md, w oryginale · 190 linii, 507 słów
Podgląd SKILL.md
---
name: gemini-cli-helper
description: 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.
---

# Gemini CLI Helper

Run Gemini CLI commands with the correct Node.js version and configuration.

## Quick Start

**Run a Gemini prompt:**
```bash
.Codex/skills/gemini-cli-helper/scripts/gemini_run.sh "Your prompt here"
```

**Check Gemini CLI status:**
```bash
.Codex/skills/gemini-cli-helper/scripts/gemini_status.sh
```

## When 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:**
```bash
# 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:**
```bash
.Codex/skills/gemini-cli-helper/scripts/gemini_status.sh
```

**Output:**
```
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.

```bash
# 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 \
  --version
```

### Common 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`:
```json
{
  "telemetry": {
    "enabled": true,
    "target": "gcp",
    "logPrompts": true
  }
}
```

Or use environment variables:
```bash
export GEMINI_TELEMETRY_ENABLED=true
export GEMINI_TELEMETRY_TARGET=gcp
export GOOGLE_CLOUD_PROJECT=multivac-internal-dev
```

#### Option 2: Via OTLP Collector

For more control (e.g., sending to multiple backends):

1. Create `~/.gemini/collector-config.yaml`:
```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]
```

2. Enable collector mode in settings:
```json
{
  "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
```bash
.Codex/skills/gemini-cli-helper/scripts/gemini_status.sh
```

### 2. Run Prompt
```bash
.Codex/skills/gemini-cli-helper/scripts/gemini_run.sh "Your prompt"
```

### 3. Verify Traces (Optional)
```bash
curl -s "http://localhost:1957/api/observatory/traces?limit=10" | jq '.[].service_name' | sort -u
```

## Resources

### Reference Guide
See [`resources/reference.md`](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 `gemini` command
- Scripts handle Node version detection automatically
- Telemetry goes to GCP Cloud Trace, then imported to Observatory
- JSON output mode recommended for programmatic use
Pliki w paczce (4)
  • SKILL.md 4 KB
  • resources/reference.md 4 KB
  • scripts/gemini_run.sh 2 KB
  • scripts/gemini_status.sh 3 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · sunholo-data/ailang100Apache-2.0
sunholo-data/ailang100Apache-2.0

Migawka bazy z 13.11.2026 · wersja paczki d49ad2a71b4a (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100gemini-cli
    Uruchamia Gemini CLI do zapytań AI, porównań Claude z Gemini i delegowania zadań do Gemini.
  • 100gemini
    Uruchamia Gemini CLI (gemini, gemini resume) do analizy kodu, refaktoryzacji i automatycznej edycji.
  • 100working-with-gemini
    Opisuje Gemini CLI i Antigravity CLI: rozszerzenia, skille, hooki, plik GEMINI.md, modele i konfigurację.
  • 100code-mate-gemini
    Uruchamia Gemini CLI nieinteraktywnie do zadań programistycznych, gdy użytkownik chce przekazać pracę do Gemini.
  • 100gemini
    Uruchamia Gemini CLI do jednorazowych pytań, streszczeń i generowania treści, gdy potrzebna jest szybka odpowiedź od modelu Google.
  • 100gemini-cli
    Opisuje Gemini CLI, otwartego agenta AI Google dla terminala: instalacja, uwierzytelnianie, tryb headless, GEMINI.md, serwery MCP i sandbox.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.