Lov Cli2anything logo

Lov Cli2anything

Organization
lovstudio
lov-cli2anything

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

Overview

Publisherlovstudio
Repositoryskills
Skill namelov-cli2anything
Stars
67
Forks
17
Bundled files
35
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 35 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by lovstudio on GitHub. Read the source before you install it.

Installation

Install the Lov Cli2anything AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lovstudio/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/cli2anything .claude/skills/lov-cli2anything
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Lov Cli2anything in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Lov Cli2anything on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Lov Cli2anything is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

接口工坊 · API Studio

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

Triggers

Activate when

  • “把这个网站的 API 变成 CLI / SDK / OpenAPI。”
  • “从 ZenMux 日志接口生成可交互 Swagger。”
  • “用 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:

bash
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 target: zenmux.ai. 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:

bash
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:

bash
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

Use --output cli only when a task-focused generated CLI is requested. Do not run npm link unless local installation is part of the current request; pass --no-link for generation-only work.

Step 3: Validate the result

For a generated bundle, verify:

  • manifest.json names the expected target and scope;
  • openapi.json parses as OpenAPI 3.1 and contains the expected operations;
  • api-graph.json contains the workflow edges required by the selected scope;
  • sdk/index.mjs and any generated CLI entrypoint pass node --check;
  • Swagger mode writes swagger/index.html, swagger/drilldown.html, and swagger/server.mjs without embedding cookies or API keys.

Run the maintained project regression suite after behavior changes:

bash
python3 "$SKILL_DIR/scripts/cli2anything.py" --project-test

Report the concrete output directory, selected target/scope, validation result, and any missing target adapter or live authorization evidence.

Dependencies

  • Python 3.8+ for the Skill wrapper and Profile reader.
  • Node.js 20+ and npm dependencies declared by cli2anything++.
  • An authorized account/browser session only for live browser-session workflows.
  • No third-party credentials are required for offline generation from an existing discovery artifact.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Lov Cli2anything AI skill do?

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

Why use Lov Cli2anything on TypingMind?

Because you install it once and use it with any model. Lov Cli2anything is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Lov Cli2anything in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/lovstudio/skills/tree/main/skills/cli2anything. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Lov Cli2anything?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Lov Cli2anything?

As many as you like. As long as a model supports skills, you can use Lov Cli2anything with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Lov Cli2anything AI skill free?

Yes. It is published on GitHub by lovstudio under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇