Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

gemini-exploration-patternsGemini exploration 模式

Agent Skill

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

总安装

1

周安装

8

GitHub Stars

61

下载量

65
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于查找、检索和筛选相关信息。gemini-exploration-patterns 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据关键词快速定位候选结果或来源线索。
  • 通过 GitHub 安装,建议确认搜索范围和结果过滤方式。
  • 可能触发联网请求,需评估数据源可靠性和更新频率。
  • 适用于 Codex、Claude、Cursor 和 Gemini CLI 研究场景。

SKILL.md

Gemini Exploration Patterns

🚨 MANDATORY: Invoke gemini-cli-docs First

STOP - Before providing ANY response about Gemini exploration: 1. INVOKE gemini-cli-docs skill 2. QUERY for the specific exploration/context topic 3. BASE all responses EXCLUSIVELY on official documentation loaded

Overview

This skill provides strategic guidance for leveraging Gemini CLI's large context window for codebase exploration. It covers when to delegate exploration to Gemini, which model to use, and how to structure outputs for Claude to consume.

When to Use This Skill

Keywords: explore codebase, analyze architecture, large context, token limit, gemini exploration, codebase analysis, when to use gemini, model selection

Use this skill when:

  • Deciding whether to explore with Claude or Gemini
  • Planning a large codebase analysis
  • Choosing between Flash and Pro models
  • Structuring exploration output for cross-CLI consumption
  • Optimizing exploration for cost vs quality

Token Threshold Decision Matrix

Codebase SizeTokensRecommended AgentRationale
Small<50KClaude nativeClaude's tools are faster
Medium50K-500KGemini FlashGood balance of speed/cost
Large500K-1MGemini Flash + chunkingStay within Flash limits
Very Large1M-2MGemini ProNeed extended context
Massive>2MGemini Pro + progressiveMulti-pass exploration

Token Estimation

# Quick estimation: 1 token ~ 4 characters
chars=$(find . -name "*.ts" -o -name "*.py" | xargs wc -c | tail -1 | awk '{print $1}')
tokens=$((chars / 4))
echo "Estimated tokens: $tokens"

Decision Rule

IF estimated_tokens < 50,000:
    USE Claude's native Explore agent

ELIF estimated_tokens < 1,000,000:
    USE Gemini Flash via /gemini-explore

ELIF estimated_tokens < 2,000,000:
    USE Gemini Pro via /gemini-explore --pro

ELSE:
    USE Progressive exploration (chunk by module)

Model Selection Guide

Gemini Flash (gemini-2.5-flash)

Context: Large (exact limits set by Google, check current API docs) Cost: Lower Speed: Faster

Best for:

  • Bulk file analysis
  • Pattern detection across codebase
  • Dependency mapping
  • Initial exploration passes
  • Log file analysis
  • Documentation generation

Gemini Pro (gemini-2.5-pro)

Context: Very large (exact limits set by Google, check current API docs) Cost: Higher Speed: Slower

Best for:

  • Complex architectural reasoning
  • Security-critical analysis
  • Nuanced code quality assessment
  • Very large codebases (>1M tokens)
  • Tasks requiring deep understanding

Exploration Strategies

Strategy 1: Full Codebase Sweep

Best for: Understanding overall architecture

# Collect all source files
find . -type f \( -name "*.ts" -o -name "*.tsx" \) \
  -not -path "*/node_modules/*" \
  -not -path "*/.git/*" \
  | xargs cat | gemini "Analyze architecture" --output-format json

Strategy 2: Module-by-Module

Best for: Very large codebases (>2M tokens)

# Explore each top-level module separately
for dir in src/*/; do
  echo "=== Exploring $dir ==="
  find "$dir" -name "*.ts" | xargs cat | gemini "Analyze this module" --output-format json
done

Strategy 3: Entry-Point Focused

Best for: Understanding execution flow

# Focus on entry points and their dependencies
cat package.json src/index.ts src/main.ts | gemini "Analyze entry points and startup flow" --output-format json

Strategy 4: Dependency-First

Best for: Understanding relationships

# Package manifests + import statements
find . -name "package.json" -o -name "requirements.txt" -o -name "go.mod" | xargs cat
grep -r "^import\|^from" src/ | head -1000

Strategy 5: Progressive Depth

Best for: Iterative understanding

  1. Pass 1: File tree + READMEs only
  2. Pass 2: Package manifests + configs
  3. Pass 3: Entry points + main modules
  4. Pass 4: Deep dive on specific areas

Output Format Standards

All Gemini exploration outputs should follow this format for Claude consumption:

YAML Frontmatter (Required)

---
generated-by: gemini-cli
model: gemini-2.5-flash
timestamp: 2025-11-30T12:00:00Z
tokens: 150000
scope: architecture|dependencies|patterns|all
---

Machine-Readable Summary (Required)

{
  "type": "exploration",
  "scope": "architecture",
  "tokens_used": 150000,
  "model": "gemini-2.5-flash",
  "key_findings": [
    "Uses Clean Architecture pattern",
    "React frontend with Express backend",
    "PostgreSQL database with Prisma ORM"
  ],
  "files_analyzed": 245,
  "entry_points": ["src/index.ts", "src/server.ts"]
}

Human-Readable Content (Required)

Structured markdown with clear sections:

  • Overview: 2-3 sentence summary
  • Architecture: Directory structure, patterns
  • Key Components: Core modules and responsibilities
  • Dependencies: External and internal
  • Patterns: Conventions and style
  • Recommendations: What to read first, areas of concern

Recommendations for Claude (Required)

Specific, actionable guidance:

## Recommendations for Claude

### Files to Read First
1. `src/index.ts` - Main entry point
2. `src/config/index.ts` - Configuration patterns
3. `CLAUDE.md` - Project conventions

### Patterns to Follow
- Use dependency injection for services
- Follow the existing error handling pattern in `src/errors/`

### Areas of Concern
- Complex state management in `src/store/` - read carefully
- Database migrations in `prisma/migrations/` - check before schema changes

File Filtering Patterns

Include Patterns

# Source code
-name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.jsx"
-name "*.py" -o -name "*.go" -o -name "*.rs" -o -name "*.java"

# Configuration
-name "*.json" -o -name "*.yaml" -o -name "*.yml" -o -name "*.toml"

# Documentation
-name "*.md" -o -name "README*"

Exclude Patterns

-not -path "*/node_modules/*"
-not -path "*/.git/*"
-not -path "*/dist/*"
-not -path "*/build/*"
-not -path "*/__pycache__/*"
-not -path "*/.next/*"
-not -path "*/coverage/*"
-not -path "*/.cache/*"

Cost Optimization

Reduce Token Usage

  1. Filter aggressively: Only include relevant file types
  2. Limit file count: Use head -500 for file lists
  3. Truncate large files: Cap individual files at reasonable sizes
  4. Exclude generated code: dist/, build/, vendor/

Batch Efficiently

# Bad: Many small calls
for file in *.ts; do gemini "analyze $file"; done

# Good: One large call
cat *.ts | gemini "analyze all files"

Related Skills

  • gemini-delegation-patterns - When to delegate any task to Gemini
  • gemini-token-optimization - Cost optimization strategies
  • gemini-cli-execution - CLI invocation patterns
  • gemini-workspace-bridge - Artifact storage and exchange

Related Commands

  • /gemini-explore - Execute exploration with standard output
  • /gemini-plan - Generate implementation plans

Keyword Registry

TopicKeywords
Token limitscontext window, token limit, large context
Model selectionflash vs pro, which model, model routing
Explorationexplore codebase, analyze architecture, understand code
Costreduce tokens, optimize cost, batch calls
Outputexploration format, cross-cli artifact, claude readable

Test Scenarios

Scenario 1: Token Threshold Decision

Query: "Should I use Claude or Gemini to explore this codebase?" Expected Behavior:

  • Skill activates on "explore codebase" or "large context"
  • Provides token threshold decision matrix Success Criteria: User receives clear guidance based on codebase size

Scenario 2: Model Selection

Query: "Should I use Flash or Pro for codebase analysis?" Expected Behavior:

  • Skill activates on "flash vs pro" or "which model"
  • Provides model comparison and use cases Success Criteria: User receives model recommendation with rationale

Scenario 3: Exploration Strategy

Query: "How do I analyze a very large codebase with Gemini?" Expected Behavior:

  • Skill activates on "very large" or "analyze architecture"
  • Provides progressive exploration strategy Success Criteria: User receives module-by-module or chunking approach

Version History

  • v1.1.0 (2025-12-01): Added MANDATORY section, Test Scenarios, Version History
  • v1.0.0 (2025-11-25): Initial release

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.75%
按下载量换算24

Claude

30.01%
按下载量换算20

Cursor

20.09%
按下载量换算13

Gemini CLI

10.01%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills