lov-cli2anything
БесплатноЗапускает вложенные скриптыНе проверен将已授权观察到的网站 API 转成可验证的 OpenAPI、SDK、Swagger 或任务型 CLI。适用于“把这个网站 API 变成 CLI”“生成可调用 Swagger”以及 “turn observed APIs into a CLI”。
от 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
- Resolve
SKILL_DIRfrom the active Skill context. - Verify these required resources exist:
scripts/cli2anything.pyscripts/profile_store.pyreferences/skill-composition.md
- Read the shared Profile for
lov-cli2anything. - 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, orcli. - 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.aifor authorized dashboard log workflows,dshfind.comfor its public read-only plugin directory and market feed,localhostfor a user-owned self-hosted Plane instance, andsuanli.cnfor 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
Установить lov-cli2anything в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic