Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

lov-cli2anything

БесплатноЗапускает вложенные скриптыНе проверен

将已授权观察到的网站 API 转成可验证的 OpenAPI、SDK、Swagger 或任务型 CLI。适用于“把这个网站 API 变成 CLI”“生成可调用 Swagger”以及 “turn observed APIs into a CLI”。

lovstudioот lovstudio★ 72 звезды на GitHub

Об этом скилле

接口工坊 · API Studio

使用项目内的 cli2anything++ 运行时,把已授权的 API 观察证据转为可回读的 OpenAPI、JavaScript SDK、Swagger UI 或本地 CLI 包。当前内置目标适配器是 ZenMux、dshfind、自托管 Plane 与共绩算力(suanli.cn);其他站点必须先实现并验证 目标适配器,不能伪装成已支持。

Triggers

Activate when

  • “把这个网站的 API 变成 CLI / SDK / OpenAPI。”
  • “从 ZenMux 日志接口生成可交互 Swagger。”
  • “生成导入 Apifox 后可直接调试的 OpenAPI。”
  • “用 cli2anything++ 分析这份授权的 API discovery 证据。”
  • “Turn these authorized observed APIs into a CLI or Swagger bundle.”

Do not activate when

  • 为已有本地应用或源码项目从零设计通用 CLI;使用 lov-cli-creator。
  • 为 uni-app 新增 FastAPI 聚合网关;使用 lov-api-creator。
  • 用户无权访问目标账户、流量或接口,或要求导出他人的 Cookie、Token、密钥。
  • 只需要调用一份现成 OpenAPI,而不需要发现、生成或封装能力。

User Profile (cross-session)

Read skill.yaml on every invocation. Resolve context in this order: the current request, project context, skills.lov-cli2anything.records, shared preferences, shared user/workspace Profile, then safe defaults. Keep resolved personal values out of the portable source.

Persist only a directly stated durable preference, such as a default output mode:

python3 "$SKILL_DIR/scripts/profile_store.py" record \
  --skill-id lov-cli2anything \
  --path records.output_mode \
  --value '"swagger"' \
  --confirm

Report the saved Profile path. Never persist inferred paths, credentials, cookies, tokens, captured payloads, or private traffic. See references/user-profile.md.

Skill Group Composition

Read references/skill-composition.md before invoking an adjacent Skill. This is a Single Skill backed by the cli2anything++ project; sibling Skills are optional artifact handoffs and never hidden runtime dependencies.

Workflow (MANDATORY)

Follow these steps in order. Do not report generated files as usable until their manifest, OpenAPI document, runtime source, and tests have been checked.

Step 0: Resolve runtime context

  1. Resolve SKILL_DIR from the active Skill context.
  2. Verify these required resources exist:
    • scripts/cli2anything.py
    • scripts/profile_store.py
    • references/skill-composition.md
  3. Read the shared Profile for lov-cli2anything.
  4. Confirm Node.js 20+ is available by running node --version.

If a required resource is missing, name its relative path and stop before producing a partial result.

Step 1: Establish target, authority, and output

  • Identify the target host, intended API workflow, filter keyword, discovery evidence, and desired output: bundle, swagger, or cli.
  • Confirm the user owns the account/traffic or is otherwise authorized before any live browser-session or traffic discovery step. Existing public or user-supplied discovery artifacts may be processed offline.
  • Current built-in targets: zenmux.ai for authorized dashboard log workflows, dshfind.com for its public read-only plugin directory and market feed, localhost for a user-owned self-hosted Plane instance, and suanli.cn for the 共绩算力 Open API plus its OpenAI-compatible LLM service, built from the vendor's public Apifox share and docs. For another host, inspect the project and report that a target adapter is required; do not claim generic support exists.
  • Default to offline supplied evidence when available. Never copy browser cookies or tokens into Skill files, generated examples, logs, or Profile records.

Step 2: Generate the requested artifact

Run the project through the portable wrapper:

python3 "$SKILL_DIR/scripts/cli2anything.py" zenmux.ai \
  --filter-keyword log \
  --discovery artifacts/zenmux-discovered.json \
  --out generated/zenmux-ai-log

For Swagger without opening a browser:

python3 "$SKILL_DIR/scripts/cli2anything.py" zenmux.ai \
  --filter-keyword log \
  --output swagger \
  --no-open \
  --discovery artifacts/zenmux-discovered.json \
  --out generated/zenmux-ai-log

For a self-hosted Plane instance, export the evidence from the running container first, then generate; the export runs as a one-off process and does not change the instance configuration:

docker exec -e ENABLE_DRF_SPECTACULAR=1 plane-api-1 \
  sh -c 'cd /code && python manage.py spectacular --file /tmp/plane-schema.json --format openapi-json'
docker cp plane-api-1:/tmp/plane-schema.json "$SKILL_DIR/artifacts/plane-schema.raw.json"

python3 "$SKILL_DIR/scripts/cli2anything.py" localhost \
  --output cli --no-link --no-open \
  --discovery artifacts/plane-discovered.json \
  --out generated/lov-plane-cli

The Plane bundle grades every operation with x-observation: live-probe-401-403 for endpoints confirmed by unauthenticated/invalid-key probes, and vendor-generated-schema for the rest. Write operations are additionally marked x-write-operation and must not be reported as executed. servers must name the proxy-exposed address first and the container-internal one second. The generated CLI builds its command table from the bundled openapi.json at startup, so its command count must equal the manifest operationCount.

For 共绩算力 (suanli.cn), col

Полный SKILL.md на GitHub

Установить lov-cli2anything в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.gitignore.npmignoreCHANGELOG.mdLICENSEREADME.mdartifacts/dshfind-discovered.jsonartifacts/dshfind-schema.graphqlartifacts/plane-discovered.jsonartifacts/plane-schema.raw.jsonartifacts/zenmux-discovered.jsonbin/cli2anything.mjscases/cases.jsonopenapi/zenmux.openapi.jsonpackage.jsonpricing-card.yamlreferences/skill-card-standard.mdreferences/skill-composition.mdreferences/user-profile.mdscripts/cli2anything.pyscripts/profile_store.pyscripts/suanli_discover.pyscripts/validate_skill.pyskill-card.mdskill-card.yamlskill.yamlsrc/api-graph.mjssrc/apifox-openapi.mjssrc/browser-cdp.mjssrc/drilldown-html.mjssrc/dshfind-client.d.tssrc/dshfind-client.mjssrc/dshfind-openapi.mjssrc/dshfind-target.mjssrc/extension-bridge.mjssrc/json-shape.mjssrc/plane-cli-runtime.mjssrc/plane-client.mjssrc/plane-target.mjssrc/suanli-cli-runtime.mjssrc/suanli-client.mjs

FAQ

Что делает скилл lov-cli2anything?

将已授权观察到的网站 API 转成可验证的 OpenAPI、SDK、Swagger 或任务型 CLI。适用于“把这个网站 API 变成 CLI”“生成可调用 Swagger”以及 “turn observed APIs into a CLI”。

Как установить скилл lov-cli2anything?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл lov-cli2anything запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить lov-cli2anything с