Token导航 LogoToken导航

Agent Skill · 研究检索

external-ai-integration(外部 AI 集成)

external-ai-integration 用于处理浏览器自动化、网页检查和页面信息提取,适合在 OpenClaw 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

external-ai-integration 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 6,819。

总安装 20,832周安装 868GitHub Stars 公开资料未说明下载 6,944核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install external-ai-integration

这个 Skill 是做什么的

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

调用外部 AI 模型(如 ChatGPT、Claude)增强推理能力。结合浏览器自动化实现网页内容理解与交互操作。可选择 Hugging Face API 作为备选推理引擎。依赖 Chrome Relay 服务稳定性,网络延迟可能影响响应速度。

external-ai-integration 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install external-ai-integration;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

external-ai-integration 怎么安装?

在终端执行 openclaw skills install external-ai-integration。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

external-ai-integration 支持哪些 AI 工具?

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

external-ai-integration 需要什么权限?

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

external-ai-integration 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

external-ai-integration 用的人多吗?

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

external-ai-integration 安全吗?

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

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 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调用外部服务未明确有提醒
external-ai-integration

外部 AI 集成 · 本页

20,832—接触敏感数据MIT-0有提醒

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

SKILL.md 原文

name
external-ai-integration
description
Leverage external AI models (ChatGPT, Claude, Hugging Face, etc.) as tools via browser automation (Chrome Relay) and optional Hugging Face API. Use when you need to augment the assistant's capabilities with external LLMs for reasoning, summarization, code generation, or other tasks without spawning isolated sub‑agents.

External AI Integration Skill

This skill provides patterns for using external AI models as tools that the assistant can call on‑demand. It extends existing browser‑automation and API‑integration skills, enabling the assistant to:

  • Automate interactions with ChatGPT, Claude, Gemini, or other web‑based LLMs via Chrome Relay (browser automation).
  • Call Hugging Face Inference API for models hosted on Hugging Face Spaces (text‑generation, summarization, translation, etc.).
  • Integrate external reasoning into the assistant's own workflow—e.g., asking ChatGPT for a second opinion, using Claude for detailed analysis, or leveraging Hugging Face for domain‑specific tasks.
  • Avoid spawning isolated sub‑agents by treating external models as tools, keeping control and context within the main assistant session.

When to use

  • You need additional reasoning power, a different model's perspective, or a specialized model (e.g., code generation, translation) that your primary model lacks.
  • The task benefits from a second opinion or parallel evaluation (e.g., reviewing code, analyzing strategy).
  • You want to use a model with a larger context window, better coding ability, or specific domain knowledge (Claude, ChatGPT, Hugging Face models).
  • You are asked to “integrate external AI via browser” or “use ChatGPT/Claude as a tool”.
  • You need to call Hugging Face Inference API for a specific model (e.g., summarization, sentiment analysis) and incorporate the result into your response.

Core patterns

1. Browser Automation (Chrome Relay) for Web‑Based LLMs

Use Chrome Relay to automate interactions with ChatGPT, Claude, Gemini, or any other web‑based LLM that requires a browser interface.

Prerequisites:

  • Chrome Relay extension installed and a tab attached (user must click the OpenClaw Browser Relay toolbar icon).
  • The target LLM website (e.g., chatgpt.com, claude.ai) already logged in (session cookies present).
  • Basic familiarity with the browser automation playbook (memory/patterns/playbooks.md – “Browser Automation (Chrome Relay)”).

Steps:

  1. Attach to the Chrome Relay profile (profile="chrome").
  2. Navigate to the target LLM (or reuse an already‑open tab).
  3. Take a snapshot to locate the input field and send button (use refs="aria" for stable references).
  4. Type the prompt into the input field and submit (click send button or press Enter).
  5. Wait for the response (poll for a new element, detect typing indicators, or use a fixed timeout).
  6. Extract the response text from the appropriate DOM element.
  7. Return the response to the assistant's workflow.

Example workflow:

# This is a conceptual example; actual implementation uses browser tool calls.
def ask_chatgpt(prompt):
    # 1. Ensure Chrome Relay is attached
    browser(action="open", profile="chrome", targetUrl="https://chatgpt.com")
    # 2. Snapshot to get references
    snap = browser(action="snapshot", refs="aria")
    # 3. Find input field (aria role="textbox") and send button
    input_ref = snap.find_element(role="textbox", name="Message")
    send_ref = snap.find_element(role="button", name="Send")
    # 4. Type prompt and click send
    browser(action="act", request={"kind":"type", "ref":input_ref, "text":prompt})
    browser(action="act", request={"kind":"click", "ref":send_ref})
    # 5. Wait for response (simplified)
    time.sleep(10)
    # 6. Snapshot again, extract response from last message bubble
    snap2 = browser(action="snapshot", refs="aria")
    response_element = snap2.find_last_message()
    return response_element.text

Key considerations:

  • Session persistence: The attached tab must stay logged in; avoid actions that log out.
  • Rate limits: Be aware of the LLM's rate limits and usage policies.
  • Error handling: Detect captchas, “network error” messages, or “try again” buttons and fall back gracefully.
  • Multi‑turn conversations: Maintain conversation context by keeping the same tab and not refreshing.

2. Hugging Face Inference API Integration

For models hosted on Hugging Face Spaces or the Inference API, you can call them directly via HTTP requests.

Prerequisites:

  • Hugging Face API token (stored in 1Password or environment variable).
  • Model identifier (e.g., "gpt2", "google/flan-t5-large", "microsoft/DialoGPT-medium").
  • Knowledge of the model's expected input/output format.

Steps:

  1. Retrieve the API token (use 1Password skill or read from ~/.huggingface/token).
  2. Construct the request (URL, headers, JSON payload).
  3. Send the request via curl or exec with requests Python module.
  4. Parse the response and extract the generated text.
  5. Handle errors (rate limits, model loading, invalid token).

Example script (using curl):

#!/bin/bash
set -e

MODEL="google/flan-t5-large"
PROMPT="Translate English to German: How are you?"
API_TOKEN=$(op read "op://Personal/HuggingFace/api_token")

curl -s "https://api-inference.huggingface.co/models/$MODEL" \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d "{\"inputs\": \"$PROMPT\"}" | jq -r '.[0].generated_text'

Example Python function (using requests):

import requests
import os

def hf_inference(model, inputs, parameters=None):
    api_token = os.getenv("HF_TOKEN")  # or retrieve via 1Password
    url = f"https://api-inference.huggingface.co/models/{model}"
    headers = {"Authorization": f"Bearer {api_token}"}
    payload = {"inputs": inputs}
    if parameters:
        payload.update(parameters)
    resp = requests.post(url, headers=headers, json=payload)
    resp.raise_for_status()
    return resp.json()

Key considerations:

  • Cost: Inference API may have costs; monitor usage.
  • Model readiness: Some models need to be loaded; include {"options":{"wait_for_model":true}} in parameters.
  • Output format: Response structure varies by model; inspect with a test call first.

3. Orchestrating External AI as a Tool

Instead of spawning a sub‑agent, the assistant calls external AI within its own reasoning flow.

Pattern:

  1. Determine need: Decide which external model is appropriate (ChatGPT for creative tasks, Claude for analysis, Hugging Face for specialized models).
  2. Prepare the prompt: Format the prompt with clear instructions, context, and expected output format.
  3. Call the tool: Use browser automation for web‑based LLMs or API call for Hugging Face.
  4. Integrate the result: Parse, validate, and incorporate the external response into your own answer.
  5. Fallback: If the external call fails, continue with your own reasoning or try an alternative.

Example decision logic:

def external_ai_assist(task_type, prompt):
    if task_type == "code_review":
        # Use Claude via browser automation
        return ask_claude(prompt)
    elif task_type == "translation":
        # Use Hugging Face translation model
        return hf_inference("Helsinki-NLP/opus-mt-en-de", prompt)
    elif task_type == "creative_writing":
        # Use ChatGPT via browser automation
        return ask_chatgpt(prompt)
    else:
        raise ValueError(f"No external AI configured for {task_type}")

4. Prompt Engineering for External Models

External models may require different prompting styles than the assistant's native model.

  • ChatGPT/Claude: Use conversational style, system prompts, and markdown formatting.
  • Hugging Face models: Follow the model's expected input format (e.g., "Translate English to German: ..." for T5).
  • Include context: Provide necessary background, constraints, and examples in the prompt.
  • Specify output format: Ask for JSON, bullet points, code blocks, etc.

Example prompt for code review:

You are an expert software engineer reviewing the following code snippet. Please:
1. Identify potential bugs or security issues.
2. Suggest performance improvements.
3. Comment on code style and readability.
4. Output your review as a JSON with keys "bugs", "performance", "style".

Code:

def calculate_average(numbers): total = 0 for n in numbers: total += n return total / len(numbers)

5. Error Handling and Fallbacks

External services can fail; plan for graceful degradation.

  • Browser automation failures: Captchas, login required, network errors. Fallback: try Hugging Face API or continue without external help.
  • API failures: Rate limits, model not found, token invalid. Fallback: use a different model or skip external step.
  • Timeouts: Set reasonable timeouts (e.g., 30 seconds for browser automation, 10 seconds for API). Fallback: proceed with assistant's own reasoning.
  • Log failures: Record external AI failures in memory/YYYY‑MM‑DD.md with tag external‑ai‑failure for later analysis.

Example fallback structure:

try:
    response = ask_chatgpt(prompt)
except (BrowserError, TimeoutError) as e:
    log_failure("ChatGPT", e)
    # Fallback to Hugging Face
    response = hf_inference("google/flan-t5-xxl", prompt)
except Exception as e:
    log_failure("All external AI", e)
    response = None

if response:
    integrate(response)
else:
    # Continue with assistant's own reasoning
    pass

Examples

Example 1: Code Review with Claude

Scenario: The assistant is asked to review a complex React component. It uses Claude (via Chrome Relay) for a detailed second opinion.

Steps:

  1. Assistant prepares a prompt with the component code and review instructions.
  2. Calls ask_claude(prompt) using browser automation.
  3. Claude returns a structured review.
  4. Assistant incorporates Claude's feedback into its final answer.

Example 2: Translation via Hugging Face

Scenario: User provides a paragraph in English and asks for a German translation. Assistant calls Hugging Face translation model.

Steps:

  1. Assistant constructs prompt: "Translate English to German: <text>".
  2. Calls hf_inference("Helsinki-NLP/opus-mt-en-de", prompt).
  3. Parses the generated text.
  4. Returns translation to user.

Example 3: Creative Brainstorming with ChatGPT

Scenario: User needs ideas for a blog post title. Assistant uses ChatGPT to generate 10 options.

Steps:

  1. Assistant navigates to ChatGPT tab, inputs “Generate 10 catchy blog post titles about AI assistants”.
  2. Waits for response, extracts list.
  3. Presents the list to user, adding its own commentary.

Example 4: Combined Analysis (Assistant + External)

Scenario: User asks for a strategic analysis of a business decision. Assistant uses its own reasoning, then asks ChatGPT for potential blind spots.

Steps:

  1. Assistant produces its own analysis.
  2. Assistant prompts ChatGPT: “What are potential blind spots in the following analysis? <analysis>”
  3. Integrates ChatGPT's blind‑spot list into final answer.

Anti‑Patterns

  • Over‑reliance on external AI: Using external models for trivial tasks increases latency and dependency. Use only when value added justifies the cost/risk.
  • Ignoring context size: Web‑based LLMs have context limits; sending huge contexts may truncate or fail. Summarize or chunk appropriately.
  • Exposing secrets: Never paste API tokens, passwords, or sensitive data into external AI prompts (especially web‑based). Use 1Password for tokens.
  • Assuming correctness: External AI can be wrong, biased, or hallucinate. Always validate critical outputs.
  • Breaking conversation flow: Browser automation that logs out or loses the tab breaks future calls. Keep session alive and avoid destructive actions.
  • Cost unawareness: Hugging Face Inference API may incur costs; monitor usage and set budgets.
  • Neglecting fallbacks: Not planning for external AI failure leaves the assistant stuck. Always have a fallback path.

Related Patterns

  • Browser Automation (Chrome Relay) playbook – detailed steps for Chrome Relay automation.
  • Hugging Face skill – using Hugging Face Hub, Spaces, and Inference API with budget management.
  • 1Password skill – retrieving API tokens securely.
  • API‑Tool Integration skill – general patterns for calling external APIs.
  • Error Recovery Automation skill – handling failures in external services.
  • Health Monitoring skill – monitoring external service availability.

References

  • docs/browser-automation.md – Chrome Relay setup and commands.
  • skills/huggingface/SKILL.md – Hugging Face API usage.
  • skills/1password/SKILL.md – retrieving secrets.
  • memory/patterns/playbooks.md – Browser Automation playbook.
  • scripts/external_ai_integration.py (this skill's core implementation).
  • playbooks/external-ai-integration-playbook.md (orchestration playbook).

Skill Integration

When a task would benefit from external AI reasoning, read this skill to decide which model to use and how to call it. Store successful patterns in memory/patterns/tools.md. Update pending.md if external AI fails repeatedly and needs manual configuration.

This skill increases autonomy by expanding the assistant's toolset with external AI models, allowing it to tackle a wider range of tasks without spawning sub‑agents and maintaining control over the workflow.

平台分布

OpenClaw

94.13%
按下载量换算6,536

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills