闲社服务运行正常AI智能体自动化平台
x

XCrawl地图

技能标识:xcrawl-map

Use this skill for XCrawl map tasks, including site URL discovery, regex filtering, scope estimation, and crawl planning before full-site crawling.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.2
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

XCrawl地图

XCrawl Map

概述

此技能使用 XCrawl Map API 来发现网站的 URL。
默认行为是原始透传:按原样返回上游 API 响应体。

所需本地配置

使用此技能前,用户必须创建本地配置文件并在其中写入 XCRAWLAPIKEY。

路径:~/.xcrawl/config.json

json
{
XCRAWLAPIKEY: apikey>
}

仅从本地配置文件读取 API 密钥。不需要全局环境变量。

积分与账户设置

使用 XCrawl API 会消耗积分。
如果用户没有账户或可用积分,请引导他们前往 https://dash.xcrawl.com/ 注册。
注册后,他们可以在运行请求前激活免费的 1000 积分套餐。

工具权限策略

仅请求 curl 和 node 的运行时权限。
不请求 Python、Shell 辅助脚本或其他运行时权限。

API 接口

  • - 启动地图任务:POST /v1/map
  • 基础 URL:https://run.xcrawl.com
  • 必需请求头:Authorization: Bearer APIKEY>

使用示例

cURL

bash
APIKEY=$(node -e const fs=require(fs);const p=process.env.HOME+/.xcrawl/config.json;const k=JSON.parse(fs.readFileSync(p,utf8)).XCRAWLAPI_KEY||;process.stdout.write(k))

curl -sS -X POST https://run.xcrawl.com/v1/map \
-H Content-Type: application/json \
-H Authorization: Bearer ${API_KEY} \
-d {url:https://example.com,filter:/docs/.*,limit:2000,includesubdomains:true,ignorequery_parameters:false}

Node

bash
node -e
const fs=require(fs);
const apiKey=JSON.parse(fs.readFileSync(process.env.HOME+/.xcrawl/config.json,utf8)).XCRAWLAPIKEY;
const body={url:https://example.com,filter:/docs/.*,limit:3000,includesubdomains:true,ignorequery_parameters:false};
fetch(https://run.xcrawl.com/v1/map,{
method:POST,
headers:{Content-Type:application/json,Authorization:Bearer ${apiKey}},
body:JSON.stringify(body)
}).then(async r=>{console.log(await r.text());});

请求参数

请求端点和请求头

  • - 端点:POST https://run.xcrawl.com/v1/map
  • 请求头:
  • Content-Type: application/json
  • Authorization: Bearer

请求体:顶层字段

字段类型必需默认值描述
url字符串是-网站入口 URL
filter
字符串 | 否 | - | URL 的正则过滤器 | | limit | 整数 | 否 | 5000 | 最大 URL 数量(上限 100000) | | include_subdomains | 布尔值 | 否 | true | 包含子域名 | | ignorequeryparameters | 布尔值 | 否 | true | 忽略带查询参数的 URL |

响应参数

字段类型描述
map_id字符串任务 ID
endpoint
字符串 | 始终为 map | | version | 字符串 | 版本号 | | status | 字符串 | completed | | url | 字符串 | 入口 URL | | data | 对象 | URL 列表数据 | | started_at | 字符串 | 开始时间(ISO 8601) | | ended_at | 字符串 | 结束时间(ISO 8601) | | totalcreditsused | 整数 | 总消耗积分 |

data 字段:

  • - links:URL 列表
  • totallinks:URL 数量
  • creditsused:消耗积分
  • credits_detail:积分明细

工作流程

  1. 1. 明确地图绘制目标。
  • - 仅发现、选择性爬取规划或结构分析。
  1. 2. 构建并执行 POST /v1/map。
  • - 保持过滤器明确且可复现。
  1. 3. 直接返回原始 API 响应。
  • - 除非被要求,否则不合成 URL 族摘要。

输出约定

返回:

  • - 使用的端点(POST /v1/map)
  • 请求使用的 request_payload
  • 地图调用的原始响应体
  • 请求失败时的错误详情

除非用户明确要求摘要,否则不生成摘要。

防护措施

  • - 如果达到 limit 限制,不要声称覆盖了全站。
  • 不要将推断的 URL 与返回的 URL 混在一起。
  • 不要在核心逻辑中硬编码特定提供商的工具模式。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 xcrawl-map-1776122912 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 xcrawl-map-1776122912 技能

通过命令行安装

skillhub install xcrawl-map-1776122912

下载

⬇ 下载 xcrawl-map v1.0.2(免费)

文件大小: 2.57 KB | 发布时间: 2026-4-15 15:02

v1.0.2 最新 2026-4-15 15:02
Initial release of xcrawl-map skill for site URL discovery and crawl planning:

- Supports XCrawl Map API for site URL mapping with regex filtering, subdomain inclusion, and optional query ignoring.
- Reads API key only from `~/.xcrawl/config.json`; no global environment variables required.
- Requires `curl` or `node` tools; no Python or extra scripts.
- Includes setup guidance for XCrawl account and free credits activation.
- Provides sample Bash (curl) and Node usage examples.
- Raw API responses are returned as-is unless a summary is explicitly requested.
返回顶部