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

pangolin-ai-serp穿山甲亚种

Agent Skill

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

总安装

3,305

周安装

135

GitHub Stars

公开资料未说明

下载量

1,058
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:pangolin-ai-serp(穿山甲亚种)
来源仓库:https://github.com/liuyu020923/pangolin-ai-serp
安装命令:
openclaw skills install pangolin-ai-serp
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install pangolin-ai-serp

简介

pangolin-ai-serp 用于通过 Pangolin API 搜索 Google 并获取 AI 概述与结构化 SERP 数据。

  • 适用于需要 AI 答案摘要与搜索引擎结果分析的场景。
  • 输入关键词后自动提取 AI 模式后续、引文与屏幕截图。
  • 需配置有效的 API 密钥并遵守服务条款。
  • 安装前建议测试网络延迟与反爬策略应对能力。

SKILL.md

name
pangolinfo-ai-serp
description
>

Pangolinfo AI SERP Skill

Search Google and retrieve AI Overviews, organic search results, and screenshots via Pangolin APIs.

When to Use This Skill

Activate this skill when the user's intent matches any of these patterns:

  • "Search Google for ...", "Google ...", "Look up ..."
  • "What does Google say about ...", "Search the web for ..."
  • "Get AI overview for ...", "AI search for ..."
  • "Get search results for ...", "SERP for ..."
  • "Take a screenshot of Google results for ..."
  • "Follow up on the search with ..."
  • Chinese equivalents: "搜索一下...", "谷歌搜索...", "帮我查一下...", "用Google搜...", "搜一下...", "AI搜索..."

Do not use this skill for Amazon product searches, price lookups, or review scraping -- those require a different skill.

Prerequisites

Runtime

  • Python 3.8+ (uses only the standard library -- no pip install needed)

Pangolin Account

Register at pangolinfo.com to obtain credentials.

Environment Variables

Set one of the following:

VariableRequiredDescription
PANGOLIN_API_KEYOption AAPI Key (skips login)
PANGOLIN_EMAILOption BAccount email
PANGOLIN_PASSWORDOption BAccount password

API key resolution order: PANGOLIN_API_KEY env var > cached ~/.pangolin_api_key > fresh login.

macOS SSL Certificate Fix

On macOS, Python may fail with CERTIFICATE_VERIFY_FAILED because it ships without root certificates by default.

Symptoms: The script outputs an error with code SSL_CERT.

Solutions (pick one):

  1. Run the certificate installer that ships with Python:
   /Applications/Python\ 3.x/Install\ Certificates.command

(Replace 3.x with your Python version, e.g. 3.11)

  1. Set the SSL_CERT_FILE environment variable:
   pip3 install certifi
   export SSL_CERT_FILE=$(python3 -c "import certifi; print(certifi.where())")

First-Time Setup Guide

When a user tries to use this skill and authentication fails (error code MISSING_ENV), do not just repeat the error hint. Instead, walk the user through the full setup process interactively:

Step 1: Explain what's needed

Tell the user (in their language):

To use this skill, you need a Pangolin API account. Pangolin provides Google search and AI Overview data through its APIs. 使用本技能需要 Pangolin API 账号。Pangolin 提供 Google 搜索和 AI 概览数据的 API 服务。

Step 2: Guide registration

1. Go to pangolinfo.com and create an account 2. After login, find your API Key in the dashboard 1. 访问 pangolinfo.com 注册账号 2. 登录后在控制台找到你的 API Key

Step 3: Collect credentials and authenticate automatically

When the user provides their credentials, you (the AI agent) should configure them securely. The script will automatically cache the API key at ~/.pangolin_api_key for all future calls.

If user provides an API key (recommended): Write it directly to the cache file — avoids shell history entirely:

echo "<api_key>" > ~/.pangolin_api_key
chmod 600 ~/.pangolin_api_key 2>/dev/null
python3 scripts/pangolin.py --auth-only

If user provides email + password: Set env vars in the session and clean up after auth:

export PANGOLIN_EMAIL="user@example.com"
export PANGOLIN_PASSWORD="their-password"
python3 scripts/pangolin.py --auth-only
unset PANGOLIN_EMAIL PANGOLIN_PASSWORD

This avoids passwords appearing in shell history (unlike inline VAR=x command syntax) and cleans up credentials after the API key is cached.

Both methods cache the API key automatically. After this one-time setup, no environment variables are needed — all future calls will use the cached API key at ~/.pangolin_api_key.

Step 4: Confirm and proceed

After auth returns "success": true:

  1. Tell the user: "认证成功!API Key 已自动缓存,后续使用无需再次输入。" / "Authentication successful! API key cached — no need to enter credentials again."
  2. Immediately retry their original request.

Important

  • The user only needs to provide credentials ONCE — the script caches the API key permanently at ~/.pangolin_api_key
  • Do not ask the user to manually edit .bashrc or .zshrc — the script handles persistence automatically
  • If the user doesn't have an account yet, explain Pangolin's credit system (2 credits per AI Mode search, 0.5 credits per SERP search) and direct them to pangolinfo.com
  • If auth succeeds but credits are exhausted (error code 2001), tell the user to top up at pangolinfo.com
  • API key is permanent and does not expire unless the account is deactivated

Script Execution

The main script is located at scripts/pangolin.py relative to this skill directory.

Path resolution: When invoking the script, resolve the absolute path from this skill's directory. Example:

SKILL_DIR="$(cd "$(dirname "$0")" && pwd)"
python3 "$SKILL_DIR/scripts/pangolin.py" --q "your query"

Or invoke directly:

python3 scripts/pangolin.py --q "your query"

Intent-to-Command Mapping

AI Mode Search (default)

User wants AI-generated answers with references. This is the default mode.

python3 scripts/pangolin.py --q "what is quantum computing"

Standard SERP

User wants traditional Google search results (organic links + optional AI overview).

python3 scripts/pangolin.py --q "best databases 2025" --mode serp

SERP with Screenshot

User wants to see the actual Google results page.

python3 scripts/pangolin.py --q "best databases 2025" --mode serp --screenshot

SERP with Region

User wants SERP results from a specific geographic region.

python3 scripts/pangolin.py --q "best databases 2025" --mode serp --region us

Multi-Turn Dialogue

User wants to ask follow-up questions in an AI Mode conversation.

python3 scripts/pangolin.py --q "kubernetes" --follow-up "how to deploy" --follow-up "monitoring tools"

Auth Check

Verify credentials are working without consuming credits.

python3 scripts/pangolin.py --auth-only

Smart Defaults

ParameterDefaultNotes
--modeai-modeAI Mode with Google AI Overviews
--num10Number of results to request
--screenshotoffPass flag to enable
--follow-upnoneRepeatable; keep to 5 or fewer for speed

When the user simply says "search for X" without specifying a mode, use the default ai-mode.

Output Format

The script outputs JSON to stdout on success and structured error JSON to stderr on failure.

Success Example (AI Mode)

{
  "success": true,
  "task_id": "1768988520324-766a695d93b57aad",
  "results_num": 1,
  "ai_overview_count": 1,
  "ai_overview": [
    {
      "content": ["Quantum computing uses quantum bits (qubits)..."],
      "references": [
        {
          "title": "Quantum Computing - Wikipedia",
          "url": "https://en.wikipedia.org/wiki/Quantum_computing",
          "domain": "Wikipedia"
        }
      ]
    }
  ],
  "screenshot": "https://image.datasea.network/screenshots/..."
}

Success Example (SERP)

{
  "success": true,
  "task_id": "1768988520324-abcdef123456",
  "results_num": 3,
  "ai_overview_count": 1,
  "ai_overview": [
    {
      "content": ["Java works by compiling source code..."],
      "references": [
        {"title": "How Java Works", "url": "https://docs.oracle.com/...", "domain": "Oracle"}
      ]
    }
  ],
  "organic_results": [
    {
      "title": "Java Tutorial for Beginners",
      "url": "https://example.com/java-tutorial",
      "text": "Learn how Java works from the ground up..."
    }
  ]
}

Error Example

{
  "success": false,
  "error": {
    "code": "MISSING_ENV",
    "message": "No authentication credentials found.",
    "hint": "Set PANGOLIN_API_KEY, or both PANGOLIN_EMAIL and PANGOLIN_PASSWORD environment variables."
  }
}

Response Presentation

When presenting results to the user:

  1. Use natural language -- never dump raw JSON to the user.
  2. Match the user's language -- if the user writes in Chinese, respond in Chinese; if English, respond in English.
  3. Summarize the AI overview first (if present), then list relevant organic results with titles and URLs.
  4. Include source URLs so the user can verify or explore further.
  5. Mention the screenshot URL if one was captured, so the user can view the rendered page.
  6. If no AI overview is present, note that Google did not generate one for this query and present organic results instead.
  7. On error, explain the issue in plain language and suggest corrective action based on the hint field.

All CLI Options

OptionTypeDefaultDescription
--qstring*required*Search query
--modeai-mode \serpai-modeAPI mode
--screenshotflagoffCapture page screenshot
--follow-upstring (repeatable)noneFollow-up question (ai-mode only)
--numint10Number of results
--regionstringnoneGeographic region for SERP results (e.g., us, uk). SERP mode only.
--auth-onlyflagoffAuth check only (no query needed)
--rawflagoffOutput raw API response

Output Schema

See references/output-schema.md for the complete JSON output schema documentation.

Cost

  • AI Mode: 2 credits per request
  • SERP: 0.5 credits per request

Credits are only consumed on successful requests (API code 0). Auth checks (--auth-only) do not consume credits.

Exit Codes

CodeMeaning
0Success
1API error (non-zero code from Pangolin)
2Usage error (bad arguments)
3Network error (connection, SSL, timeout, rate limit)
4Authentication error

Troubleshooting

Error Communication Table

Error CodeMeaningUser-Facing MessageResolution
MISSING_ENVNo credentials"Authentication credentials are not configured."Set PANGOLIN_EMAIL + PANGOLIN_PASSWORD or PANGOLIN_API_KEY.
AUTH_FAILEDWrong credentials"Authentication failed. Please check your credentials."Verify email and password are correct.
RATE_LIMITToo many requests"The API is rate-limiting requests. Please wait and try again."Wait a moment, then retry.
NETWORKConnection issue"A network error occurred. Please check your connection."Check internet, firewall, proxy settings.
SSL_CERTCertificate error"SSL certificate verification failed."See macOS SSL Certificate Fix section above.
API_ERRORPangolin API error"The search API returned an error."Check the hint field; see references/error-codes.md.

Pangolin API Error Codes

API CodeMeaningResolution
1004Invalid/expired API keyAuto-retried by the script. If persistent, delete ~/.pangolin_api_key and retry.
2001Insufficient creditsTop up credits at pangolinfo.com.
2007Account expiredRenew subscription at pangolinfo.com.
10000Task execution failedRetry the request. Check query format.
10001Task execution failedRetry. May be a temporary server issue.

Important Notes for AI Agents

  1. Always run --auth-only first if you are unsure whether credentials are configured, before spending credits on a real query.
  2. Default to ai-mode unless the user explicitly asks for standard/traditional search results.
  3. Never expose raw JSON to the user. Parse the output and present it in natural language.
  4. Respect the user's language. Respond in the same language the user is writing in.
  5. Keep follow-ups to 5 or fewer for optimal response time. Warn the user if they request more.
  6. Handle errors gracefully. If the script exits with a non-zero code, read stderr for the structured error and present the hint to the user.
  7. Do not log or echo API keys, passwords, or cookies in any output, logs, or error messages.
  8. Credit awareness: AI Mode costs 2 credits per search; SERP costs 0.5 credits. If a user requests many searches in a row, mention the credit cost.
  9. Screenshot is optional. Only pass --screenshot when the user explicitly wants to see the rendered page or when visual context is needed.
  10. Multi-turn is ai-mode only. Do not attempt --follow-up with --mode serp.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

85.84%
按下载量换算908

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills