TopRank Skills

Home / Claw Skills / 其他 / provider-sync
Official OpenClaw rules 15%

provider-sync

Review and sync one provider's models and related fields into a local OpenClaw config file. Usage: /provider_sync [provider=<id>] [mode=dry-run|check-only|apply]

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 provider-sync 技能。 若已安装,则直接安装 provider-sync 技能。

Overview

Skill Key
c-joey/provider-sync
Author
c-joey
Source Repo
openclaw/skills
Version
-
Source Path
skills/c-joey/provider-sync
Latest Commit SHA
aa3f6d48e3a3b5469f94295e2fb6465f2b1406a6

Extracted Content

SKILL.md excerpt

# Provider Sync

**触发方式:在聊天里输入 `/provider_sync`**

Sync upstream provider metadata into local OpenClaw config with a review-first workflow.

## v2.0.0 重要变更(Breaking)
- 默认会**裁剪**(prune)`agents.defaults.models`:让 `/models` 的菜单条目数 **永远与** `models.providers.<provider>.models`(上游真实返回)对齐。
- 如你希望保留旧行为(不删除白名单条目),使用 `--no-prune-agent-aliases`。

## What it does

- fetches upstream provider metadata or model lists
- maps and normalizes model entries for OpenClaw
- previews diffs before any real write
- writes minimal changes to one provider subtree and creates a backup

## Slash command (规范流程)

### Scope / 权限收紧(你已确认启用)

- **群聊**:只允许 `dry-run` / `check-only`(只读)。
- **私聊**:允许 `dry-run` + `apply` + `新增 provider` + `重启`。
- 群聊中如果触发 `apply` / `新增 provider` / `重启`:直接拒绝,并提示“请私聊操作”。

This skill is **user-invocable** as: `/provider_sync` (note the underscore).

Design goals:

- **Always dry-run first** → show diff summary → explicit confirmation → apply.
- Default to **provider-scoped writes only** (`models.providers.<provider-id>`).
- Treat **Gateway restart** as a separate, explicit step.

### Canonical usage

- Interactive wizard (recommended):
  - `/provider_sync`
- Dry-run (default):
  - `/provider_sync provider=<id>`
- Check-only:
  - `/provider_sync provider=<id> mode=check-only`
- Apply (still gated by an explicit confirmation step; button tap is acceptable confirmation):
  - `/provider_sync provider=<id> mode=apply`

Supported args (all optional unless noted):

- `provider=<id>` (required)
- `config=<path>` (default: `/root/.openclaw/openclaw.json`)
- `endpoint=<url>` (default: derived from provider baseUrl: `${baseUrl}/models`)
- `mapping=<path>` (default: `{baseDir}/references/mapping.openai-models.json`)
- `mode=dry-run|check-only|apply` (default: `dry-run`)
- `normalize=1|0` (default: `1`)
- `profile=generic|gemini` (default: `generic`)
- `pres...

Related Claw Skills

captchasco

captchas-openclaw

★ 0

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.

capncoconut

x402hub

★ 0

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.

capt-marbles

Task Router Skill

★ 0

Task Router

carol-gutianle

Modelready

★ 0

name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}

cartoonitunes

Ethereum History

★ 0

Read-only factual data about historical Ethereum mainnet contracts. Use when the user asks about a specific contract address, early Ethereum contracts, deployment era, deployer, bytecode, decompiled code, or documented history (what a contract is and is not). Data is non-opinionated and includes runtime bytecode, decompiled code, and editorial history when available. Base URL https://ethereumhistory.com (or set BASE_URL for local/staging).

cameron-jovan

landing-page-converter

★ 0

Build high-converting landing pages and product sales pages using proven 10-section conversion frameworks. Includes Hero → Social Proof → Benefits → CTA flow for both lead capture and e-commerce pages.