Token导航 LogoToken导航

Agent Skill · 研究检索

gemini-cli-docs(Gemini CLI 文档)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

gemini-cli-docs 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 68,015。

总安装 238周安装 10GitHub Stars 61下载 83核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/melodic-software/claude-code-plugins --skill gemini-cli-docs

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助文档、Markdown 和内容稿件的整理与改写。适合提炼结构、补齐章节或统一术语。gemini-cli-docs 属于研究检索类 Skill,可作为该场景下的辅助能力补充。使用时应保留项目已有事实和路径,避免写成确定结论。安装方式:通过 npx skills add 命令从指定仓库添加技能。

涉及对外文案时需控制语气,避免过度营销或夸大能力。

来源仓库内路径:skills/gemini-cli-docs

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/melodic-software/claude-code-plugins --skill g…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

gemini-cli-docs 怎么安装?

在终端执行 npx skills add https://github.com/melodic-software/claude-code-plugins --skill gemini-cli-…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

gemini-cli-docs 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

gemini-cli-docs 需要什么权限?

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

gemini-cli-docs 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

gemini-cli-docs 用的人多吗?

公开数据是累计安装 238 次,近一周安装 10 次,下载 83 次,GitHub 61 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

gemini-cli-docs 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
gemini-cli-docs

Gemini CLI 文档 · 本页

23861接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Gemini CLI Documentation Skill

CRITICAL: Path Doubling Prevention - MANDATORY

ABSOLUTE PROHIBITION: NEVER use cd with && in PowerShell when running scripts from this skill.

The Problem: If your current working directory is already inside the skill directory, using relative paths causes PowerShell to resolve paths relative to the current directory instead of the repository root, resulting in path doubling.

REQUIRED Solutions (choose one):

  1. ALWAYS use absolute paths (recommended)
  2. Use separate commands (never cd with &&)
  3. Run from repository root with relative paths

NEVER DO THIS:

  • Chain cd with &&: cd <relative-path> && python <script> causes path doubling
  • Assume current directory
  • Use relative paths when current dir is inside skill directory

CRITICAL: Large File Handling - MANDATORY SCRIPT USAGE

ABSOLUTE PROHIBITION: NEVER use read_file tool on the index.yaml file

The file exceeds context limits and will cause issues. You MUST use scripts.

REQUIRED: ALWAYS use manage_index.py scripts for ANY index.yaml access:

python scripts/management/manage_index.py count
python scripts/management/manage_index.py list
python scripts/management/manage_index.py get <doc_id>
python scripts/management/manage_index.py verify

All scripts automatically handle large files via index_manager.py.

Available Slash Commands

Use the consolidated docs-ops skill for common workflows:

  • /google-ecosystem:docs-ops scrape - Scrape Gemini CLI documentation from geminicli.com, then refresh index and validate
  • /google-ecosystem:docs-ops refresh - Refresh the local index and metadata without scraping from remote sources
  • /google-ecosystem:docs-ops validate - Validate the index and references for consistency and drift without scraping
  • /google-ecosystem:docs-ops rebuild-index - Force rebuild the search index
  • /google-ecosystem:docs-ops clear-cache - Clear the documentation search cache

Overview

This skill provides automation tooling for Gemini CLI documentation management. It manages:

  • Canonical storage (encapsulated in skill) - Single source of truth for official docs
  • Subsection extraction - Token-optimized extracts (60-90% savings)
  • Drift detection - Hash-based validation against upstream sources
  • Sync workflows - Maintenance automation
  • Documentation discovery - Keyword-based search and doc_id resolution
  • Index management - Metadata, keywords, tags, aliases for resilient references

Core value: Prevents link rot, enables offline access, optimizes token costs, automates maintenance, and provides resilient doc_id-based references.

When to Use This Skill

This skill should be used when:

  • Scraping documentation - Fetching docs from geminicli.com llms.txt
  • Finding documentation - Searching for docs by keywords, category, or natural language
  • Resolving doc references - Converting doc_id to file paths
  • Managing index metadata - Adding keywords, tags, aliases, updating metadata
  • Rebuilding index - Regenerating index from filesystem (handles renames/moves)

Workflow Execution Pattern

CRITICAL: This section defines HOW to execute operations in this skill.

Delegation Strategy

Default approach: Delegate to Task agent

For ALL scraping, validation, and index operations, delegate execution to a general-purpose Task agent.

How to invoke:

Use the Task tool with:

  • subagent_type: "general-purpose"
  • description: Short 3-5 word description
  • prompt: Full task description with execution instructions

Execution Pattern

Scripts run in FOREGROUND by default. Do NOT background them.

When Task agents execute scripts:

  • Run directly: python plugins/google-ecosystem/skills/gemini-cli-docs/scripts/core/scrape_docs.py --llms-txt https://geminicli.com/llms.txt
  • Streaming logs: Scripts emit progress naturally via stdout
  • Wait for completion: Scripts exit when done with exit code
  • NEVER use run_in_background=true: Scripts are designed for foreground execution
  • NEVER poll output: Streaming logs appear automatically, no BashOutput polling needed
  • NEVER use background jobs: No &, no nohup, no background process management

Anti-Pattern Detection

Red flags indicating incorrect execution:

  • Using run_in_background=true in Bash tool
  • Repeated BashOutput calls in a loop
  • Checking process status with ps or pgrep
  • Manual polling of script output
  • Background job management (&, nohup, jobs)
  • Using BashOutput AFTER Task agent completes

If you recognize these patterns, STOP and correct immediately.

Error and Warning Reporting

CRITICAL: Report ALL errors, warnings, and issues - never suppress or ignore them.

When executing scripts via Task agents:

  • Report script errors: Exit codes, exceptions, error messages
  • Report warnings: Deprecation warnings, import issues, configuration problems
  • Report unexpected output: 404s, timeouts, validation failures
  • Include context: What was being executed when the error occurred

Red flags that indicate issues:

  • Non-zero exit code
  • Lines containing "ERROR", "FAILED", "Exception", "Traceback"
  • "WARNING" or "WARN" messages
  • "404 Not Found", "500 Internal Server Error"

Quick Start

Refresh Index End-to-End (No Scraping)

Use this when you want to rebuild and validate the local index/metadata without scraping:

Use Python 3.13 for validation - spaCy/Pydantic have compatibility issues with Python 3.14+

# Use Python 3.13 for full compatibility with spaCy
py -3.13 plugins/google-ecosystem/skills/gemini-cli-docs/scripts/management/manage_index.py refresh

Scrape All Documentation

Use this when the user explicitly wants to hit the network and scrape docs:

# Scrape from llms.txt
python plugins/google-ecosystem/skills/gemini-cli-docs/scripts/core/scrape_docs.py \
  --llms-txt https://geminicli.com/llms.txt

# Refresh index after scraping (use Python 3.13)
py -3.13 plugins/google-ecosystem/skills/gemini-cli-docs/scripts/management/manage_index.py refresh

With options:

# Skip existing files (incremental update)
python plugins/google-ecosystem/skills/gemini-cli-docs/scripts/core/scrape_docs.py \
  --llms-txt https://geminicli.com/llms.txt \
  --skip-existing

# Filter to specific section
python plugins/google-ecosystem/skills/gemini-cli-docs/scripts/core/scrape_docs.py \
  --llms-txt https://geminicli.com/llms.txt \
  --filter "/docs/"

Find Documentation

# Resolve doc_id to file path
python plugins/google-ecosystem/skills/gemini-cli-docs/scripts/core/find_docs.py resolve <doc_id>

# Search by keywords (default: 25 results)
python plugins/google-ecosystem/skills/gemini-cli-docs/scripts/core/find_docs.py search checkpointing session

# Search with custom limit
python plugins/google-ecosystem/skills/gemini-cli-docs/scripts/core/find_docs.py --limit 10 search tools

# Natural language search
python plugins/google-ecosystem/skills/gemini-cli-docs/scripts/core/find_docs.py query "how to use checkpointing"

# List by category
python plugins/google-ecosystem/skills/gemini-cli-docs/scripts/core/find_docs.py category docs

# List by tag
python plugins/google-ecosystem/skills/gemini-cli-docs/scripts/core/find_docs.py tag cli

Search Options:

OptionDefaultDescription
--limit N25Maximum number of results to return
--no-limit-Return all matching results (no limit)
--min-score N-Only return results with relevance score >= N
--fast-Index-only search (skip content grep)
--json-Output results as JSON
--verbose-Show relevance scores

Configuration System

The gemini-cli-docs skill uses a unified configuration system with a single source of truth.

Configuration Files:

  • config/defaults.yaml - Central configuration file with all default values
  • config/config_registry.py - Canonical configuration system with environment variable support
  • config/filtering.yaml - Content filtering rules
  • config/tag_detection.yaml - Tag detection patterns
  • references/sources.json - Documentation sources configuration

Environment Variable Overrides:

All configuration values can be overridden using environment variables: GEMINI_DOCS_<SECTION>_<KEY>

Full details: references/configuration.md

Dependencies

Required: pyyaml, requests, beautifulsoup4, markdownify, filelock Optional (recommended): spacy with en_core_web_sm model (for keyword extraction)

Check dependencies:

python plugins/google-ecosystem/skills/gemini-cli-docs/scripts/setup/check_dependencies.py

Python Version: Python 3.13 recommended (required for spaCy operations)

Full details: references/dependencies.md

Core Capabilities

1. Scraping Documentation

Fetch documentation from geminicli.com using llms.txt format. Features: llms.txt parsing, HTML to Markdown conversion, automatic metadata tracking, URL-based folder organization.

Guide: references/capabilities/scraping-guide.md

2. Extracting Subsections

Extract specific markdown sections for token-optimized responses. Features: ATX-style heading structure parsing, section boundaries detection, provenance frontmatter, token economics (60-90% savings typical).

Guide: references/capabilities/extraction-guide.md

3. Change Detection

Detect documentation drift via 404 checking and hash comparison. Features: 404 URL detection, missing file detection, content hash comparison, orphaned file detection, cleanup automation.

Guide: references/capabilities/change-detection-guide.md

4. Finding and Resolving Documentation

Discover and resolve documentation references using doc_id, keywords, or natural language queries. Features: doc_id resolution, keyword-based search, natural language query processing, category and tag filtering.

Guide: references/capabilities/discovery-guide.md

5. Index Management and Maintenance

Maintain index metadata, keywords, tags, and rebuild index from filesystem.

Guide: references/capabilities/index-management-guide.md

Workflows

Common maintenance and operational workflows:

  • Scraping Gemini CLI Documentation - Fetching docs from geminicli.com
  • Refreshing the Index - Rebuilding metadata after changes
  • Detecting and Cleaning Drift - Finding and removing stale docs
  • Adding Documentation Categories - Onboarding new doc sections

Detailed Workflows: references/workflows.md

Metadata & Keyword Audit Workflows

Quick validation:

py -3.13 plugins/google-ecosystem/skills/gemini-cli-docs/scripts/validation/quick_validate.py

Search audit:

py -3.13 plugins/google-ecosystem/skills/gemini-cli-docs/scripts/validation/run_search_audit.py
py -3.13 plugins/google-ecosystem/skills/gemini-cli-docs/scripts/validation/analyze_search_audit.py

Tag configuration audit:

py -3.13 plugins/google-ecosystem/skills/gemini-cli-docs/scripts/validation/audit_tag_config.py

Platform-Specific Requirements

Windows Users

MUST use PowerShell (recommended) or prefix Git Bash commands with MSYS_NO_PATHCONV=1

Git Bash on Windows converts Unix paths to Windows paths, breaking filter patterns.

Example:

MSYS_NO_PATHCONV=1 python scripts/core/scrape_docs.py \
    --llms-txt https://geminicli.com/llms.txt \
    --filter "/docs/"

See: references/troubleshooting.md#git-bash-path-conversion

Troubleshooting

spaCy Installation Issues

Problem: spaCy installation fails with Python 3.14+.

Solution: Use Python 3.13:

py -3.13 -m pip install spacy
py -3.13 -m spacy download en_core_web_sm

Unicode Encoding Errors

Status: FIXED - Scripts auto-detect Windows and configure UTF-8 encoding.

404 Errors During Scraping

Status: EXPECTED - Some llms.txt entries may reference docs that don't exist yet. Scripts handle gracefully and continue.

Full troubleshooting: references/troubleshooting.md

Public API

The gemini-cli-docs skill provides a clean public API for external tools:

from gemini_docs_api import (
    find_document,
    resolve_doc_id,
    get_docs_by_tag,
    get_docs_by_category,
    search_by_keywords,
    get_document_section,
    detect_drift,
    cleanup_drift,
    refresh_index
)

# Natural language search
docs = find_document("model routing configuration")

# Resolve doc_id to metadata
doc = resolve_doc_id("geminicli-com-docs-checkpointing")

# Get docs by tag
cli_docs = get_docs_by_tag("cli")

# Extract specific section
section = get_document_section("geminicli-com-docs-commands", "Built-in Commands")

# Detect drift
drift = detect_drift(check_404s=True, check_hashes=True)

# Cleanup drift (dry run first)
result = cleanup_drift(clean_404s=True, dry_run=True)

# Refresh index with drift detection
result = refresh_index(check_drift=True, cleanup_drift=False)

Plugin Maintenance

For plugin-specific maintenance workflows:

See: references/plugin-maintenance.md

Quick reference:

  • Update workflow: Scrape -> Validate -> Review -> Commit -> Version bump -> Push
  • Version bumps: Patch for doc refresh, Minor for new features, Major for breaking changes
  • Testing: Run manage_index.py verify and test search before pushing

Development Mode

When developing this plugin locally, you may want changes to go to your dev repo instead of the installed plugin location.

Enabling Dev Mode

PowerShell:

$env:GEMINI_DOCS_DEV_ROOT = "D:\repos\gh\melodic\claude-code-plugins"

Bash/Zsh:

export GEMINI_DOCS_DEV_ROOT="/path/to/claude-code-plugins"

Verifying Mode

When you run any major script (scrape, refresh, rebuild), a mode banner will display:

Dev mode:

[DEV MODE] Using local plugin: D:\repos\gh\melodic\claude-code-plugins

Prod mode:

[PROD MODE] Using installed skill directory

Disabling Dev Mode

PowerShell:

Remove-Item Env:GEMINI_DOCS_DEV_ROOT

Bash/Zsh:

unset GEMINI_DOCS_DEV_ROOT

Documentation Categories

CategoryTopics
Get Startedinstallation, authentication, configuration, quickstart
CLIcommands, settings, themes, checkpointing, telemetry, trusted folders
Corearchitecture, tools API, policy engine, memport
Toolsfile system, shell, web fetch, web search, memory tool, MCP servers
Extensionscreating, managing, releasing extensions
IDEVS Code, JetBrains, IDE companion

Gemini CLI Features

Key features documented:

  • Checkpointing: File state snapshots, session management, rewind
  • Model Routing: Flash vs Pro selection, automatic routing
  • Token Caching: Prompt compression, cost optimization
  • Policy Engine: Security controls, trusted folders
  • Memport: Memory import/export
  • MCP Servers: Model Context Protocol integration
  • Extensions: Plugin system for CLI
  • Sandbox: Isolated execution environment

Directory Structure

gemini-cli-docs/
  SKILL.md                    # This file (public)
  gemini_docs_api.py          # Public API
  canonical/                  # Documentation storage (private)
    geminicli-com/            # Scraped from geminicli.com
    index.yaml                # Metadata index
    index.json                # JSON mirror
  scripts/                    # Implementation (private)
    core/                     # Scraping, discovery
    management/               # Index management
    maintenance/              # Cleanup, drift detection
    validation/               # Validation scripts
    utils/                    # Shared utilities
    setup/                    # Setup scripts
  config/                     # Configuration
    defaults.yaml             # Default settings
    filtering.yaml            # Content filtering
    tag_detection.yaml        # Tag patterns
  references/                 # Technical documentation (public)
    technical-details.md
    workflows.md
    troubleshooting.md
    plugin-maintenance.md
    configuration.md
    dependencies.md
    capabilities/
      scraping-guide.md
      extraction-guide.md
      change-detection-guide.md
      discovery-guide.md
      index-management-guide.md
  .cache/                     # Cache storage (inverted index)
  logs/                       # Log files

Related Documentation

Source

Documentation is scraped from: https://geminicli.com/llms.txt

Test Scenarios

Scenario 1: Keyword Search

Query: "Search for checkpointing documentation" Expected Behavior:

  • Skill activates on keyword "documentation"
  • Returns relevant docs from index Success Criteria: User receives matching documentation entries

Scenario 2: Natural Language Query

Query: "How do I configure model routing in Gemini CLI?" Expected Behavior:

  • Skill activates on "Gemini CLI"
  • Uses find_docs.py query command Success Criteria: Returns relevant documentation with configuration steps

Scenario 3: Doc ID Resolution

Query: "Resolve geminicli-com-docs-checkpointing" Expected Behavior:

  • Resolves doc_id to file path
  • Returns document metadata Success Criteria: User receives full path and document content

Scenario 4: Drift Detection

Query: "Check for stale documentation" Expected Behavior:

  • Runs drift detection script
  • Reports 404 URLs, missing files, hash mismatches Success Criteria: User receives drift report with actionable items

Scenario 5: Section Extraction

Query: "Get the 'Built-in Commands' section from the commands doc" Expected Behavior:

  • Extracts specific section from document
  • Returns only the requested content Success Criteria: User receives targeted section, not full document

Version History

  • v2.0.0 (2025-12-05): Full feature parity with docs-management - added maintenance scripts, validation scripts, enhanced API, comprehensive documentation
  • v1.1.0 (2025-12-01): Added Test Scenarios section
  • v1.0.0 (2025-11-25): Initial release

Last Updated

Date: 2025-12-05 Model: claude-opus-4-5-20251101

Status: Production-ready with full feature parity to docs-management skill.

平台分布

Codex

39.37%
按下载量换算33

Claude

29.06%
按下载量换算24

Cursor

19.38%
按下载量换算16

Gemini CLI

9.5%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills