简介
Skill Hub Gateway
原始描述
Unified gateway skill for async execute/poll, portal user closure, and telemetry feedback workflows.
通过你的 Agent 添加
安装目录:skill-hub-gateway/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: skill-hub-gateway
description: Unified gateway skill for async execute and poll workflows.
version: 2.3.2
metadata:
openclaw:
skillKey: skill-hub-gateway
emoji: "🧩"
homepage: https://gateway.binaryworks.app
requires:
bins:
- node
Skill Hub Gateway
Default API base URL: https://gateway-api.binaryworks.app
Chinese documentation: SKILL.zh-CN.md
Version Check Protocol (Agent)
- Official latest version source:
GET /skills/manifest.json -> data.version.
- Local current version source: this installed
SKILL.md frontmatter version.
- Compare versions using semantic version order (
major.minor.patch).
- Check timing: once at session start, then at most once every 24 hours within the same session.
- If version check fails (network/timeout/parse error), do not block runtime execution. Continue current workflow and retry at the next allowed check window.
Agent Decision Flow
- If
latest_version > current_version, read the matching section under Release Notes in this document to build update_summary.
- Agent should show the user:
current_version
latest_version
update_summary
- User decision options:
Update now
Remind me later in this session
- If user chooses
Remind me later in this session, suppress repeated prompts for the same target version until a new session starts.
First-Time Onboarding (install_code)
GET /skills/manifest.json -> data.version.SKILL.md frontmatter version.major.minor.patch).- If
latest_version > current_version, read the matching section underRelease Notesin this document to buildupdate_summary. - Agent should show the user:
current_versionlatest_versionupdate_summary
- User decision options:
Update nowRemind me later in this session
- If user chooses
Remind me later in this session, suppress repeated prompts for the same target version until a new session starts.
First-Time Onboarding (install_code)
Scripts auto-complete onboarding by default:
POST /agent/install-code/issuewith{"channel":"local"}or{"channel":"clawhub"}.- Read
data.install_code. POST /agent/bootstrapwith{"agent_uid":"<agent_uid>","install_code":"<install_code>"}.- Read
data.api_key, then call runtime APIs withX-API-KeyorAuthorization: Bearer <api_key>.
Manual override:
- You can still provide
api_keyexplicitly. - If
agent_uidandowner_uid_hintare omitted, scripts derive stable local defaults from the current workspace path.
Runtime Contract (V2)
- Execute:
POST /skill/execute
- Poll:
GET /skill/runs/:run_id
- Image-based capabilities use
image_url and support both file uploads and URL mode. If URL mode is used, image_url must be a direct image file URL (response Content-Type should be image/*), not a webpage URL.
- Terminal states:
succeeded and failed
succeeded returns output
failed returns error (code, message)
Input Source Clarification
- Image-based capabilities, including
human_detect, image_tagging, and all Roboflow image capabilities, accept uploaded images or explicit image_url.
- The bundled CLI scripts (
scripts/execute.mjs / scripts/poll.mjs) do not include upload parameters. They only send the JSON input you provide.
- The skill accepts user-uploaded media/documents (including chat attachments) for:
- image capabilities using
image_url
asr using audio_url
markdown_convert using file_url
- Runtime may normalize uploaded files to temporary object URLs internally before provider execution.
- If your client uses explicit URL mode, use directly downloadable
image_url, audio_url, or file_url values. Local filesystem paths and webpage URLs are invalid.
- For bootstrap/execute/poll failures, keep
request_id from response JSON. Script stderr now logs status, code, message, and request_id for troubleshooting.
Capability IDs
human_detect
image_tagging
tts_report
embeddings
reranker
asr
tts_low_cost
markdown_convert
face-detect
person-detect
hand-detect
body-keypoints-2d
body-contour-63pt
face-keypoints-106pt
head-pose
face-feature-classification
face-action-classification
face-image-quality
face-emotion-recognition
face-physical-attributes
face-social-attributes
political-figure-recognition
designated-person-recognition
exhibit-image-recognition
person-instance-segmentation
person-semantic-segmentation
concert-cutout
full-body-matting
head-matting
product-cutout
Bundled Files
scripts/execute.mjs (CLI args: [api_key] [capability] [input_json] [base_url] [agent_uid] [owner_uid_hint])
scripts/poll.mjs (CLI args: [api_key] <run_id> [base_url] [agent_uid] [owner_uid_hint])
scripts/runtime-auth.mjs (shared auto-bootstrap helper)
references/capabilities.json
references/openapi.json
SKILL.zh-CN.md
Release Notes
POST /skill/executeGET /skill/runs/:run_idimage_url and support both file uploads and URL mode. If URL mode is used, image_url must be a direct image file URL (response Content-Type should be image/*), not a webpage URL.succeeded and failedsucceeded returns outputfailed returns error (code, message)- Image-based capabilities, including
human_detect,image_tagging, and all Roboflow image capabilities, accept uploaded images or explicitimage_url. - The bundled CLI scripts (
scripts/execute.mjs/scripts/poll.mjs) do not include upload parameters. They only send the JSON input you provide. - The skill accepts user-uploaded media/documents (including chat attachments) for:
- image capabilities using
image_url asrusingaudio_urlmarkdown_convertusingfile_url
- image capabilities using
- Runtime may normalize uploaded files to temporary object URLs internally before provider execution.
- If your client uses explicit URL mode, use directly downloadable
image_url,audio_url, orfile_urlvalues. Local filesystem paths and webpage URLs are invalid. - For bootstrap/execute/poll failures, keep
request_idfrom response JSON. Script stderr now logsstatus,code,message, andrequest_idfor troubleshooting.
Capability IDs
human_detect
image_tagging
tts_report
embeddings
reranker
asr
tts_low_cost
markdown_convert
face-detect
person-detect
hand-detect
body-keypoints-2d
body-contour-63pt
face-keypoints-106pt
head-pose
face-feature-classification
face-action-classification
face-image-quality
face-emotion-recognition
face-physical-attributes
face-social-attributes
political-figure-recognition
designated-person-recognition
exhibit-image-recognition
person-instance-segmentation
person-semantic-segmentation
concert-cutout
full-body-matting
head-matting
product-cutout
Bundled Files
scripts/execute.mjs (CLI args: [api_key] [capability] [input_json] [base_url] [agent_uid] [owner_uid_hint])
scripts/poll.mjs (CLI args: [api_key] <run_id> [base_url] [agent_uid] [owner_uid_hint])
scripts/runtime-auth.mjs (shared auto-bootstrap helper)
references/capabilities.json
references/openapi.json
SKILL.zh-CN.md
Release Notes
human_detectimage_taggingtts_reportembeddingsrerankerasrtts_low_costmarkdown_convertface-detectperson-detecthand-detectbody-keypoints-2dbody-contour-63ptface-keypoints-106pthead-poseface-feature-classificationface-action-classificationface-image-qualityface-emotion-recognitionface-physical-attributesface-social-attributespolitical-figure-recognitiondesignated-person-recognitionexhibit-image-recognitionperson-instance-segmentationperson-semantic-segmentationconcert-cutoutfull-body-mattinghead-mattingproduct-cutoutscripts/execute.mjs(CLI args:[api_key] [capability] [input_json] [base_url] [agent_uid] [owner_uid_hint])scripts/poll.mjs(CLI args:[api_key] <run_id> [base_url] [agent_uid] [owner_uid_hint])scripts/runtime-auth.mjs(shared auto-bootstrap helper)references/capabilities.jsonreferences/openapi.jsonSKILL.zh-CN.md
Release Notes
When publishing a new version, add a new section here. Agent update summaries must be generated from this block.
2.3.2 (2026-03-10)
What's New
- Aligned capability reference docs with runtime behavior: file uploads/chat attachments are supported by host flows, and runtime may normalize uploads to URL form.
- Synced package reference OpenAPI version with SKILL frontmatter version to avoid release metadata drift.
- Added package-level test guards to catch future doc/version mismatches before publish.
Breaking/Behavior Changes
- None.
Migration Notes
- Existing runtime API calls remain unchanged.
- If your integration reads capability descriptions from manifest references, refresh cached docs to pick up the clarified upload wording.
2.3.1 (2026-03-10)
What's New
- Clarified upload behavior: CLI scripts do not perform uploads; upload support depends on the host client flow.
- Added structured runtime failure logs in CLI scripts (
status,code,message,request_id) for bootstrap/execute/poll troubleshooting.
Breaking/Behavior Changes
- None.
Migration Notes
- Existing API calls remain unchanged.
- If you parse script stderr, allow the new JSON error log events.
2.3.0 (2026-03-10)
What's New
- Added a formal Agent-side version check protocol based on
/skills/manifest.json. - Added a formal Agent decision flow for update confirmation (
Update now/Remind me later in this session). - Defined this
Release Notessection as the canonical source for user-facing update summaries.
Breaking/Behavior Changes
- None.
Migration Notes
- Existing integrations can keep current runtime API calls unchanged.
- To enable update notifications, Agent implementations should parse this section and compare installed version vs.
data.version.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。