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

google-search-consoleGoogle Search Console 搜索

Agent Skill

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

总安装

847

周安装

36

GitHub Stars

公开资料未说明

下载量

297
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jakenuts/agent-skills --skill google-search-console

简介

google-search-console 用于查找、检索和筛选相关信息。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 支持 Codex、Claude、Cursor、Gemini CLI 等宿主环境。
  • 通过 npx skills add 从 GitHub 仓库安装使用。
  • 建议核对原始 README 确认具体功能和使用限制。

SKILL.md

Google Search Console Skill

Created by Return Zero Inc.

Comprehensive Google Search Console API skill for Claude Code providing search analytics, URL inspection, sitemap management, and site verification capabilities.

When to Use

  • User mentions "Google Search Console", "GSC", "search console"
  • User asks about search performance, clicks, impressions, CTR
  • User needs URL indexing status or inspection
  • User wants to manage sitemaps
  • User asks about search rankings or index status
  • User needs SEO analytics data from Google

Features

1. Search Analytics

  • Query search performance data (clicks, impressions, CTR, position)
  • Filter by date range, page, query, country, device
  • Group by dimensions (query, page, country, device, date)
  • Compare time periods
  • Export to CSV/JSON

2. URL Inspection

  • Check indexing status of specific URLs
  • View crawl information
  • Check mobile usability
  • Identify indexing issues
  • Request indexing for URLs

3. Sitemap Management

  • List all sitemaps for a site
  • Submit new sitemaps
  • Delete sitemaps
  • Check sitemap status and errors

4. Site Management

  • List all verified sites
  • Add new sites
  • Remove sites
  • Check verification status

Environment Variables

This skill uses environment variables managed by jelly-dotenv. See skills/jelly-dotenv/SKILL.md for configuration details.

Option 1: Service Account (Recommended)

# Service account JSON key file path
GOOGLE_SERVICE_ACCOUNT_KEY_FILE=/path/to/service-account.json

# Or inline JSON (for CI/CD environments)
GOOGLE_SERVICE_ACCOUNT_KEY_JSON='{"type":"service_account","project_id":"...","private_key":"..."}'

Option 2: OAuth 2.0 Client Credentials

GOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-client-secret
GOOGLE_REFRESH_TOKEN=your-refresh-token

Common Settings

# Default site URL (optional, can be specified per request)
GOOGLE_SEARCH_CONSOLE_SITE_URL=https://your-site.com

# Alternative naming patterns (auto-detected)
GSC_SITE_URL=https://your-site.com
SEARCH_CONSOLE_SITE=sc-domain:your-site.com

Variables can be configured in either:

  • skills/jelly-dotenv/.env (skill-common, highest priority)
  • Project root /.env (project-specific, fallback)

Configuration

Setting Up Service Account

  1. Go to Google Cloud Console
  2. Create a new project or select existing one
  3. Enable "Google Search Console API"
  4. Create a Service Account:

- Go to IAM & Admin → Service Accounts - Create service account - Download JSON key file

  1. Add service account email to Search Console:

- Go to Search Console - Settings → Users and permissions - Add user with service account email - Grant "Full" or "Restricted" access

Setting Up OAuth 2.0

  1. Go to Google Cloud Console
  2. Create OAuth 2.0 credentials (Web application)
  3. Set authorized redirect URI
  4. Use OAuth playground or your app to get refresh token
  5. Required scope: https://www.googleapis.com/auth/webmasters.readonly

Usage Scenarios

Scenario 1: Search Performance Overview

User Request: "Show me search performance for the last 7 days"

Skill Actions:

  1. Load credentials from environment
  2. Query Search Analytics API with date range
  3. Aggregate clicks, impressions, CTR, position
  4. Format as Markdown table with trends

Output:

## Search Performance (Last 7 Days)

| Metric | Value | Change |
|--------|-------|--------|
| Clicks | 1,234 | +12% |
| Impressions | 45,678 | +8% |
| CTR | 2.7% | +0.3% |
| Avg Position | 15.2 | -2.1 |

### Top Queries
| Query | Clicks | Impressions | CTR | Position |
|-------|--------|-------------|-----|----------|
| keyword 1 | 234 | 5,678 | 4.1% | 8.5 |
| keyword 2 | 189 | 4,321 | 4.4% | 12.3 |

Scenario 2: URL Inspection

User Request: "Check indexing status for https://example.com/page"

Skill Actions:

  1. Call URL Inspection API
  2. Parse indexing result
  3. Check coverage status
  4. Display mobile usability

Output:

## URL Inspection: https://example.com/page

| Property | Status |
|----------|--------|
| Index Status | ✅ Indexed |
| Crawled | 2024-01-15 |
| Canonical | https://example.com/page |
| Mobile Usability | ✅ Mobile friendly |
| Rich Results | ⚠️ 2 warnings |

Scenario 3: Sitemap Management

User Request: "Show all sitemaps and submit a new one"

Skill Actions:

  1. List existing sitemaps
  2. Show status and last submitted date
  3. Submit new sitemap URL
  4. Confirm submission

Scenario 4: Top Pages Analysis

User Request: "What are my top performing pages?"

Skill Actions:

  1. Query Search Analytics grouped by page
  2. Sort by clicks
  3. Include impressions, CTR, position
  4. Highlight pages with high impressions but low CTR

API Reference

Search Analytics Query

interface SearchAnalyticsRequest {
  startDate: string;      // YYYY-MM-DD
  endDate: string;        // YYYY-MM-DD
  dimensions?: ('query' | 'page' | 'country' | 'device' | 'date')[];
  searchType?: 'web' | 'image' | 'video' | 'news';
  dimensionFilterGroups?: FilterGroup[];
  aggregationType?: 'auto' | 'byPage' | 'byProperty';
  rowLimit?: number;      // Max 25000
  startRow?: number;
}

URL Inspection

interface UrlInspectionRequest {
  inspectionUrl: string;
  siteUrl: string;
  languageCode?: string;
}

Sitemap Operations

OperationMethodEndpoint
ListGET/webmasters/v3/sites/{siteUrl}/sitemaps
GetGET/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}
SubmitPUT/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}
DeleteDELETE/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}

Output Formats

Markdown (Default)

  • Formatted tables with metrics
  • Trend indicators (↑↓)
  • Status icons (✅⚠️❌)
  • Summary insights

JSON

  • Raw API response
  • Full data structure
  • Programmatic access

CSV

  • Spreadsheet-compatible export
  • All data rows
  • For further analysis

Error Handling

Authentication Errors

ErrorCauseSolution
401 UnauthorizedInvalid credentialsCheck service account key or OAuth tokens
403 ForbiddenNo access to siteAdd service account to Search Console
Invalid scopeWrong OAuth scopeUse webmasters.readonly scope

API Errors

ErrorCauseSolution
404 Not FoundSite not in Search ConsoleAdd site to Search Console first
400 Bad RequestInvalid parametersCheck date format (YYYY-MM-DD)
429 Rate LimitToo many requestsWait and retry with backoff

Common Issues

"Configuration error: No Google credentials found"

# Solution: Add credentials to .env
GOOGLE_SERVICE_ACCOUNT_KEY_FILE=/path/to/key.json

"Site not found or no access"

# Solution: Add service account email to Search Console
# Go to: Search Console → Settings → Users and permissions

"Invalid date range"

# Solution: Use YYYY-MM-DD format, max 16 months historical data

Security Policy

Authentication

  • Service Account: Recommended for server-side usage
  • OAuth 2.0: For user-authenticated requests
  • Credentials: Loaded from environment variables only
  • Logging: Private keys and tokens automatically redacted

Data Access

  • Read-Only by Default: Uses webmasters.readonly scope
  • Write Operations: Sitemap submit/delete requires full scope
  • Site-Scoped: Access limited to authorized sites only

Rate Limiting

  • Automatic: Respects Google API quotas
  • Retry: Exponential backoff on 429 errors
  • Daily Quota: 1,200 queries per day (default)

Limitations

  • Historical Data: Maximum 16 months of search data
  • Data Freshness: 2-3 day delay for search analytics
  • URL Inspection: 2,000 requests per day per site
  • Row Limit: Maximum 25,000 rows per query
  • Dimensions: Maximum 3 dimensions per query

Integration with Claude Code

This skill activates automatically when users mention:

  • "google search console", "gsc", "search console"
  • "search performance", "search analytics"
  • "url inspection", "index status"
  • "sitemap", "sitemap management"
  • "seo analytics", "seo data"

The skill will:

  1. Load Google credentials from.env
  2. Execute the requested query/operation
  3. Format results as Markdown tables
  4. Provide actionable insights and recommendations

References

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.4%
按下载量换算102

Claude

31.38%
按下载量换算93

Cursor

16.67%
按下载量换算50

Gemini CLI

9.96%
按下载量换算30

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills