Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

OpenGemini CLI

Use the local Gemini CLI for one-shot prompts, structured JSON output, shell-assisted research, and delegated AI-to-AI workflows on this Linux host. Use when...

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 22 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
The name/description match the implementation: SKILL.md and helper scripts call the local `gemini` CLI via exec for one-shot prompts, JSON-output requests, file review, and AI-to-AI workflows. No unrelated binaries, env vars, or installs are requested.
!
Instruction Scope
The runtime instructions explicitly tell OpenClaw to read files and send their contents to the Gemini CLI (e.g., the provided scripts embed full file content in prompts). That behavior is coherent with the stated purpose (reviewing files with Gemini), but it creates a real risk of exposing sensitive local data to whatever backend the `gemini` CLI uses. The SKILL.md includes sensible warnings about reviewing AI-generated shell before execution, but it does not require or demonstrate sanitization/filtering of secrets before sending files. The helper script gemini_review.sh includes file content in a command-line prompt (expected for the purpose) — overall scope is as-advertised, but privacy/exfiltration risk is notable.
Install Mechanism
No install spec is included (instruction-only skill). This is low-risk from an installation perspective because nothing will be downloaded or written by the skill itself.
Credentials
The skill declares no required environment variables or credentials, which is appropriate for a thin wrapper around a local CLI. However, the `gemini` CLI typically requires authentication (handled externally), and that auth may cause network calls outside the host — the skill does not request credentials but does instruct sending local content to the CLI, so the effective data flow depends on the CLI's behavior and authentication method.
Persistence & Privilege
The skill does not request always:on execution or system-wide configuration changes. It is user-invocable and does not claim elevated persistence or privileges.
What to consider before installing
This skill is essentially a wrapper around whatever `gemini` CLI binary is installed on the machine. Before installing or using it: 1) Verify the gemini binary's origin and what network/backend it contacts (is it truly local-only or a client that sends data to a remote model?). 2) Do not use the helper scripts on files containing secrets, credentials, or private data — the scripts embed full file content into Gemini prompts and will transmit that content if the CLI sends requests to a remote service. 3) If you need to use file-review automation, modify scripts to explicitly sanitize or redact secrets before sending, or prefer interactive/manual review. 4) If you are concerned about injection or argument issues, prefer passing file contents safely (e.g., read from stdin or use safe quoting/escaping) and audit the scripts accordingly. 5) Ensure Gemini CLI auth is completed in a controlled way and test with non-sensitive data first. These steps will reduce the main risk (data exposure) while keeping the skill's functionality.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.1
Download zip
latestvk975jq0974qtsb0sqxhrpbmavs83ym80

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

Gemini CLI

Use the locally installed gemini command through exec.

What this skill is for

Use this skill when you want Gemini CLI as a second brain on the same Linux machine. Typical uses:

  • Get a second opinion from another model
  • Ask Gemini to draft code, UI text, page copy, SQL, shell, or content
  • Ask Gemini for structured JSON that OpenClaw can post-process
  • Let OpenClaw inspect/edit files while Gemini generates plans, code, or rewrites
  • Run quick one-shot prompts without spawning a separate ACP harness

This skill is for local CLI usage, not browser automation. If the user wants deep coding delegation over many steps, prefer ACP sessions or coding-agent.

Safety boundary

Gemini CLI can influence what gets executed, but it does not get direct tool access by itself. Keep the control loop like this:

  1. OpenClaw reads files and inspects the environment
  2. OpenClaw sends a bounded prompt to Gemini CLI
  3. OpenClaw reviews Gemini output
  4. OpenClaw decides what to execute, edit, or reject

Do not blindly pipe Gemini-generated shell into execution. Review before running anything destructive or external.

First-time setup and preflight

If this is the first time using Gemini CLI on a machine, do not assume install alone is enough. The user should complete Gemini CLI authentication first, then run a smoke test.

Basic checks:

which gemini
gemini --help
gemini -p "hello"

Interpretation:

  • If gemini --help works but gemini -p "hello" fails, auth is usually missing or expired.
  • If gemini -p "hello" returns a normal answer, the CLI is ready.

Practical rule:

  1. Install Gemini CLI
  2. Complete Gemini CLI login/authentication if prompted by the CLI
  3. Run gemini -p "hello"
  4. Only then rely on this skill

Known note on this machine:

  • Gemini CLI may warn that keytar is missing and fall back to FileKeychain.
  • That is not fatal if the prompt still completes.

Core usage patterns

1) Simple one-shot prompt

gemini -p "Summarize the tradeoffs between Astro and Next.js for a landing page site."

Use for quick answers, rewrites, summaries, naming, content ideas, or code snippets.

2) Save output to a file for later processing

gemini -p "Generate 5 hero headline options for a SaaS analytics site." > /tmp/gemini-headlines.txt

Then read or parse that file with OpenClaw tools.

3) Request strict JSON

Ask Gemini to return only JSON.

gemini -p 'Return only valid JSON: {"pages":[{"path":"/","title":"...","sections":["..."]}]}'

Best practice:

  • Explicitly say "Return only valid JSON"
  • Give the exact schema shape
  • Avoid markdown fences
  • Validate before trusting

4) Feed file context safely

Prefer bounded context, not giant dumps.

cat ./src/app/page.tsx | gemini -p "Review this file and suggest a cleaner component structure. Return concise bullet points only."

Better yet, use OpenClaw read first and then craft a focused prompt.

5) Multi-step AI-to-AI workflow

Recommended pattern:

  1. OpenClaw inspects repo/files
  2. Gemini produces plan/spec/UI copy/code draft
  3. OpenClaw applies edits locally
  4. Gemini reviews diff or rewritten file
  5. OpenClaw finalizes

This is the right way to get “AI同士が会話して自律的に作る” behavior without surrendering execution control.

Good prompts for website generation

Site spec prompt

gemini -p 'You are helping design a small website. Return only JSON with keys: stack, pages, components, copy_style, seo_keywords, risks. Product: local Instagram analytics service for Japanese small businesses. Goal: conversion-focused landing page.'

Copywriting prompt

gemini -p 'Write Japanese landing page copy for a service that improves Instagram operations for stores. Tone: energetic, trustworthy, masculine, conversion-focused. Return sections for hero, pain points, benefits, CTA, FAQ.'

UI implementation prompt

gemini -p 'Generate a single-file HTML landing page with embedded CSS for a Japanese marketing service. Make it mobile-first, bold, readable, and production-lean. Output code only.'

Refactor/review prompt

gemini -p 'Review this React component for readability and conversion-focused UX. Return only: issues, fixes, rewritten component.'

When to use exec vs ACP/session delegation

Use Gemini CLI via exec when:

  • The task is one-shot or short-loop
  • You want another model's wording or plan quickly
  • OpenClaw remains the main orchestrator
  • You only need text/code output from Gemini

Do not force Gemini CLI through exec when:

  • The task needs a persistent coding agent loop
  • The task needs thread-bound collaboration in chat
  • The task needs autonomous repo exploration over a long time
  • The task needs tool use beyond shell text I/O

For those, prefer ACP sessions.

Recommended command patterns

Clean text response

gemini -p "<prompt>"

Model switching

If the installed Gemini CLI supports model selection flags in its current version, prefer explicit model selection when you need predictable behavior. Check supported options first:

gemini --help

Common practice:

  • inspect help output for model-related flags or config options
  • set the model explicitly when running important prompts
  • reuse the same model during a multi-step workflow to reduce drift

Safe guidance for this skill:

  • do not guess unsupported flags
  • verify the exact syntax from gemini --help on the current machine
  • if a default model changed unexpectedly, re-run with an explicit model setting supported by that CLI version

JSON capture

gemini -p 'Return only valid JSON with keys ...' > /tmp/gemini.json

Large prompt from file

Use a temp file when the prompt gets long or must be reproducible.

cat /tmp/prompt.txt | gemini -p "$(cat)"

If shell quoting gets ugly, write a temp prompt file first with write and use shell substitution carefully.

Operating rules for this workspace

  • Use Gemini CLI as an advisor/generator, not an unsupervised executor
  • Let OpenClaw own file edits, command execution, and validation
  • For coding work, prefer this loop: inspect → ask Gemini → edit locally → test → ask Gemini to review
  • If Gemini outputs code, save it to a temp file or inspect inline before applying
  • If the output is meant to drive shell commands, require an explicit review step
  • If authentication fails or Gemini hangs, fall back to OpenClaw-native work or ACP delegation

Optional helper scripts

If you need repeatable flows, use the bundled scripts in scripts/:

  • scripts/gemini_json.sh — ask Gemini for JSON-only output
  • scripts/gemini_review.sh — send a file to Gemini for review with a fixed prompt wrapper

Read those scripts before modifying them.

Troubleshooting

CLI exists but prompts fail

  • Check auth state by running a tiny prompt like gemini -p "hello"
  • If that fails, complete Gemini CLI login/authentication first
  • Expect possible FileKeychain fallback warning
  • If output still returns, it is usable

Need to change models but not sure how

  • Run gemini --help
  • Look for model-selection flags or config options supported by that installed version
  • Use explicit model selection for important or repeatable workflows
  • Do not rely on guessed flags copied from a different Gemini CLI version

Output is too fluffy

  • Demand exact format
  • Say Return only valid JSON
  • Say Output code only
  • Give explicit section names or schema

Shell quoting is breaking the prompt

  • Write the prompt to a temp file first
  • Avoid nested quote hell
  • Keep prompts plain and deterministic

User wants full autonomous site building

That is possible only in a controlled loop. Use Gemini CLI to generate plans/code, but keep execution and editing in OpenClaw. For larger builds, combine this skill with ACP or coding-agent.

Files

3 total
Select a file
Select a file to preview.

Comments

Loading comments…