agentleFS
leaf76leaf76/agent-skills/gemini-cli/SKILL.md

gemini-cli

Skill0 starsChanged 3 months agoMITView on GitHub

Use when a task benefits from local Gemini CLI for text-first analysis, summarization, critique, drafting, rewriting, translation, or structured planning artifacts, especially when the user asks for Gemini CLI directly or wants a second-pass large-context review without changing project files.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use mcp-builder and skill-creator.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    mcp-builder

    Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

    Also in 3 projects that use this

  • SentrySkill

    skill-creator

    Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.

    Also in 4 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 18 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 18

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use local Gemini CLI as a bounded helper for text-first reasoning and artifact generation.

    line 10
  2. Distinctive:

    Use this skill as the only Gemini CLI entrypoint.

    line 19
  3. Distinctive:

    Keep secrets, credentials, tokens, cookies, private keys, and production-only configuration out of prompts and saved prompt files.

    line 23
  4. Distinctive:

    Prefer focused excerpts over whole repositories or broad log dumps.

    line 24
  5. Distinctive:

    Do not let Gemini output directly edit files.

    line 25
  6. Distinctive:

    Do not paste untrusted external input into shell commands.

    line 27
  7. Distinctive:

    Keep retries bounded. A Gemini failure is not a reason to weaken validation or skip verification.

    line 28
  8. Distinctive:

    Write the prompt to a file first:

    line 32
  9. Distinctive:

    Run Gemini CLI in non-interactive mode:

    line 46
  10. Distinctive:

    Use one focused prompt file.

    line 78
  11. Distinctive:

    Add only high-signal context.

    line 79
  12. Distinctive:

    Remove secrets and environment-specific values.

    line 80
  13. Distinctive:

    Keep exact file paths or code references only when they are necessary for review.

    line 82
  14. Distinctive:

    Prefer a command that is easy to rerun:

    line 86
  15. Distinctive:

    If the task requires a saved artifact:

    line 98
  16. Distinctive:

    Before acting on Gemini output, check:

    line 106
  17. Distinctive:

    no secrets or private data are echoed

    line 109
  18. Distinctive:

    Use Gemini output as source material, not as an authority.

    line 117

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Gemini CLI

Overview

Use local Gemini CLI as a bounded helper for text-first reasoning and artifact generation. Treat Gemini output as a draft or second opinion that must be reviewed before it drives code, product, deployment, or security decisions.

When to Use

  • The user explicitly asks to use Gemini CLI.
  • A text brief, notes file, log excerpt, design brief, or document needs summarization, critique, rewrite, translation, or structured Markdown output.
  • A large text context needs a second-pass review before implementation planning.
  • Existing specialized skills do not fit the request.

Use this skill as the only Gemini CLI entrypoint. Keep specialized needs explicit in the prompt, and do not use Gemini CLI to handle secrets, production credentials, private tokens, or raw sensitive data.

Safety Rules

  • Keep secrets, credentials, tokens, cookies, private keys, and production-only configuration out of prompts and saved prompt files.
  • Prefer focused excerpts over whole repositories or broad log dumps.
  • Do not let Gemini output directly edit files. Review the output, then apply changes yourself using the normal repository workflow.
  • For security, auth, data mutation, deploy, or database work, treat Gemini output as advisory only and verify against source code, tests, docs, and runtime evidence.
  • Do not paste untrusted external input into shell commands. Put prompt text in a file when it includes quotes, code blocks, logs, or user-provided content.
  • Keep retries bounded. A Gemini failure is not a reason to weaken validation or skip verification.

Quick Start

Write the prompt to a file first:

cat > prompt.md <<'EOF'
Summarize the following notes into:
- key decisions
- open questions
- implementation risks
- next actions

<paste focused text here>
EOF

Run Gemini CLI in non-interactive mode:

gemini -p "Follow the instructions from stdin." < prompt.md

Save output only when it is useful as an artifact:

gemini -p "Follow the instructions from stdin." < prompt.md > gemini-output.md

Workflow

1. Define the task

State the desired output shape before running Gemini:

  • summary
  • critique
  • rewrite
  • translation
  • comparison
  • implementation plan
  • risk list
  • test matrix
  • Markdown document

Include constraints, non-goals, audience, language, and exact terms that must remain unchanged.

2. Prepare input

  • Use one focused prompt file.
  • Add only high-signal context.
  • Remove secrets and environment-specific values.
  • Replace sensitive identifiers with stable placeholders when needed.
  • Keep exact file paths or code references only when they are necessary for review.

3. Run Gemini

Prefer a command that is easy to rerun:

gemini -p "Follow the instructions from stdin." < prompt.md

For commands that need model selection, keep the model explicit and document why:

gemini --model "<model-name>" -p "Follow the instructions from stdin." < prompt.md

If the task requires a saved artifact:

gemini -p "Follow the instructions from stdin." < prompt.md > docs/gemini-draft.md

4. Review output

Before acting on Gemini output, check:

  • assumptions are explicit
  • no secrets or private data are echoed
  • claims match project files or cited sources
  • recommendations fit the requested scope
  • risks, open questions, and verification steps are concrete
  • user-facing copy follows the requested language and tone

5. Apply or discard

Use Gemini output as source material, not as an authority. Apply only the parts that survive local review, project constraints, and normal verification.

Prompt Pattern

Task:
<one sentence goal>

Output format:
<exact sections, bullets, table, or Markdown structure>

Constraints:
- <must keep>
- <must avoid>
- <language and tone>
- <non-goals>

Context:
<focused source text>

Review requirements:
- List assumptions.
- List uncertainty separately from conclusions.
- Do not invent facts that are not present in the context.

Verification

  • For documentation-only output, review the generated file for accuracy, scope, and formatting.
  • For code-affecting output, verify with source inspection and the project test/check commands.
  • For UI-affecting output, verify with the appropriate browser or layout-review workflow.
  • For deploy, auth, security, database, or payment decisions, verify with primary project evidence and do not rely on Gemini alone.

Common Mistakes

  • Sending too much context and getting generic output.
  • Treating Gemini's draft as verified truth.
  • Saving prompts that contain secrets or private production data.
  • Using Gemini CLI for a specialized workflow that already has a narrower skill.
  • Skipping local tests because Gemini's explanation sounds plausible.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.