Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

gemini-textGemini text 搜索

Agent Skill

gemini-text 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

188

周安装

8

GitHub Stars

2

下载量

66
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gemini-text(Gemini text 搜索)
来源仓库:https://github.com/akrindev/google-studio-skills
仓库路径:skills/gemini-text
安装命令:
npx skills add https://github.com/akrindev/google-studio-skills --skill gemini-text
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/akrindev/google-studio-skills --skill gemini-text

简介

gemini-text 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Gemini Text Generation

Generate content using Google's Gemini API through executable scripts with advanced capabilities including system instructions, thinking mode, JSON output, and Google Search grounding.

When to Use This Skill

Use this skill when you need to:

  • Generate any type of text content (blogs, emails, code, stories)
  • Process images with text descriptions or analysis
  • Perform complex reasoning requiring step-by-step thinking
  • Get structured JSON outputs for data processing
  • Access real-time information via Google Search
  • Apply specific personas or behavior patterns
  • Combine text generation with other Gemini skills (images, TTS, embeddings)

Available Scripts

scripts/generate.js

Purpose: Full-featured text generation with all Gemini capabilities

When to use:

  • Any text generation task
  • Multimodal prompts (text + image)
  • Complex reasoning requiring thinking mode
  • Structured JSON output requirements
  • Real-time information needs (grounding)
  • Custom system instructions/personas

Key parameters:

ParameterDescriptionExample
promptText prompt (required)"Explain quantum computing"
--model, -mModel to usegemini-3-flash-preview
--system, -sSystem instruction"You are a helpful assistant"
--thinking, -tEnable thinking modeFlag
--json, -jForce JSON outputFlag
--grounding, -gEnable Google SearchFlag
--image, -iImage for multimodalphoto.png
--temperatureSampling 0.0-2.00.7 for creative
--max-tokensOutput limit1000

Output: Generated text string, optionally with grounding sources

Workflows

Workflow 1: Basic Text Generation

node scripts/generate.js "Explain quantum computing in simple terms"
  • Best for: Simple content creation, explanations, summaries
  • Model: gemini-3-flash-preview (default, fast)

Workflow 2: With System Instruction (Persona)

node scripts/generate.js "How do I read a file in Python?" --system "You are a helpful coding assistant"
  • Best for: Domain-specific tasks, expert personas, consistent tone
  • Use when: You need specific behavioral constraints

Workflow 3: Complex Reasoning (Thinking Mode)

node scripts/generate.js "Analyze the ethical implications of AI in healthcare" --thinking
  • Best for: Complex analysis, step-by-step reasoning, multi-step problems
  • Use when: Task requires careful consideration and logical progression

Workflow 4: Structured JSON Output

node scripts/generate.js "Generate a user profile object with name, email, and preferences" --json
  • Best for: Data extraction, structured data generation, API responses
  • Output: Valid JSON ready for parsing
  • Note: Prompt must clearly request JSON structure

Workflow 5: Real-Time Information (Grounding)

node scripts/generate.js "Who won the latest Super Bowl?" --grounding
  • Best for: Current events, news, factual information after training cutoff
  • Output: Response + grounding sources with citations
  • Use when: Accuracy of current information is critical

Workflow 6: Multimodal (Image Analysis)

node scripts/generate.js "Describe what's in this image in detail" --image photo.png
  • Best for: Image captioning, visual analysis, image-based Q&A
  • Requires: Image file in PNG or JPEG format
  • Combines well with: gemini-files for file upload

Workflow 7: Content Creation Pipeline (Batch + Text + TTS)

# 1. Create batch requests (gemini-batch skill)
# 2. Generate content
node scripts/generate.js "Create a 500-word blog post about sustainable energy"
# 3. Convert to audio (gemini-tts skill)
  • Best for: High-volume content production, podcasts, audiobooks

Parameters Reference

Model Selection

ModelSpeedIntelligenceContextBest For
gemini-3-flash-previewFastHigh1MGeneral use, agentic tasks (default)
gemini-3-pro-previewMediumHighest1MComplex reasoning, research
gemini-2.5-flashFastMedium1MStable, reliable generation
gemini-2.5-proSlowHigh1MCode, math, STEM tasks

Temperature Settings

ValueCreativityBest For
0.0-0.3LowCode, facts, formal writing
0.4-0.7MediumBalanced output
0.8-1.0HighCreative writing, brainstorming
1.0-2.0Very HighHighly creative, varied outputs

Thinking Budget

ValueDescription
0Disabled (default behavior)
512-1024Standard reasoning
2048+Deep analysis (slower, more tokens)

Output Interpretation

Standard Text Output

  • Plain text response ready for use
  • Check for truncation if max-tokens was set
  • May include markdown formatting

JSON Output

  • Valid JSON object (use --json flag)
  • Parse with: import json; data = json.loads(output)
  • Verify structure matches your requirements
  • Handle potential parsing errors

Grounded Response

When --grounding is used, the script prints:

  1. Main response text
  2. "--- Grounding Sources ---" section
  3. List of sources with titles and URLs

Thinking Mode Output

  • May include reasoning steps before final answer
  • Longer response times due to thinking process
  • Better for tasks requiring careful analysis

Common Issues

"google-genai not installed"

npm install @google/genai@latest dotenv@latest

"API key not set"

Set environment variable:

export GOOGLE_API_KEY="your-key-here"
# or
export GEMINI_API_KEY="your-key-here"

"Model not available"

  • Check model name spelling
  • Verify API access for selected model
  • Try gemini-3-flash-preview (most available)

JSON parse errors

  • Ensure prompt explicitly requests JSON structure
  • Check output for JSON formatting
  • Consider using system instruction: "You always respond with valid JSON"

Image file not found

  • Verify image path is correct
  • Use absolute paths if relative paths fail
  • Supported formats: PNG, JPEG

Response truncated

  • Increase --max-tokens value
  • Break task into smaller requests
  • Use pro models with higher token limits

Best Practices

Performance Optimization

  • Use flash models for speed, pro for quality
  • Lower temperature (0.0-0.3) for deterministic outputs
  • Set appropriate max-tokens to control costs
  • Use thinking mode only for complex tasks

Prompt Engineering

  • Be specific and clear in your prompts
  • Use system instructions for consistent behavior
  • Include examples in prompts for better results
  • For JSON: specify exact structure in prompt

Error Handling

  • Wrap script calls in try-except blocks
  • Validate JSON output before parsing
  • Handle network timeouts with retries
  • Check API quota limits for batch operations

Cost Management

  • Use flash models when possible (lower cost)
  • Limit max-tokens for simple queries
  • Cache results for repeated queries
  • Use batch API for high-volume tasks

Related Skills

  • gemini-image: Generate images from text
  • gemini-tts: Convert text to speech
  • gemini-embeddings: Create vector embeddings for semantic search
  • gemini-files: Upload files for multimodal processing
  • gemini-batch: Process multiple requests efficiently

Quick Reference

# Basic
node scripts/generate.js "Your prompt"

# Persona
node scripts/generate.js "Prompt" --system "You are X"

# Thinking
node scripts/generate.js "Complex task" --thinking

# JSON
node scripts/generate.js "Generate JSON" --json

# Search
node scripts/generate.js "Current event" --grounding

# Multimodal
node scripts/generate.js "Describe this" --image photo.png

Reference

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.03%
按下载量换算25

Claude

28.85%
按下载量换算19

Cursor

19.25%
按下载量换算13

Gemini CLI

10.59%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills