Command Palette

Search for a command to run...

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

lov-cli-creator

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

把本地项目或当前目录转换为可安装、可测试、支持 JSON 的真实后端 CLI;当用户说“给这个项目做 CLI”“把应用变成命令行”或 “build a CLI for this project” 时使用。

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

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

CLI 工坊 · CLI Studio

Turn a real local project into an installable command-line interface that both people and agents can operate. The generated CLI exposes the project's actual backend, emits stable JSON, documents its contract, and carries executable tests.

Triggers

Activate when

  • “给这个项目做一个 CLI”“把当前应用变成命令行”“为这个仓库生成 Agent CLI”。
  • “从这个项目路径输出一个可安装的命令行工具”。
  • “Build a CLI for this project” or “make this application agent-accessible”.
  • The user wants to refine or validate a CLI previously generated by this Skill.

Do not activate when

  • The user only wants a new Web/Tauri application; use an app-generation workflow.
  • The user only needs one shell alias or a single ad-hoc command, not a maintained CLI.
  • The user asks to publish a package or release; this Skill stops at a locally installed and verified CLI.
  • The target is a closed binary with no callable API, scripting surface, protocol, or native file format. Diagnose the missing backend boundary before generating.

User Profile (cross-session)

Read skill.yaml on every invocation. Resolve values in this order: the current request, project context, skills.lov-cli-creator.records, shared preferences, the shared user/workspace Profile, then safe defaults. Project path defaults to the directory in which the Skill is invoked; output defaults to agent-harness/ inside that project.

Persist only a directly stated durable preference, such as a user's long-term command prefix or output-directory convention:

python3 "$SKILL_DIR/scripts/profile_store.py" record \
  --skill-id lov-cli-creator \
  --path records.command_prefix \
  --value '"lov-cli"' \
  --confirm

Report the saved Profile path. Never persist inferred paths, credentials, or tokens. See the Profile contract.

Skill Group Composition

Read the composition record before invoking an adjacent Skill. lov-cli-creator owns the finished CLI; other Skills are optional artifact-level handoffs and never hidden runtime dependencies.

Workflow (MANDATORY)

Follow these steps in order. Do not report a scaffold as a completed CLI.

Step 0: Resolve the Skill and target project

  1. Resolve SKILL_DIR from the active Skill context.
  2. Resolve the target from the user's path; if omitted, use the Skill invocation working directory, not the installed Skill directory.
  3. Resolve symlinks, confirm the directory exists, and read applicable AGENTS.md, CLAUDE.md, repository instructions, and dirty-worktree state.
  4. Preserve unrelated files and changes. Never overwrite an occupied output directory with the scaffold helper.

Manual helper invocation:

python3 "$SKILL_DIR/scripts/inspect_project.py" . --format markdown

Step 1: Analyze the real callable surface

Run the inspector and then verify its signals against source code:

python3 "$SKILL_DIR/scripts/inspect_project.py" PROJECT \
  --format json --output PROJECT_ANALYSIS.json

Identify the product domains, existing commands, public APIs, native data model, state lifecycle, export/render path, and external runtime dependencies. Map user actions to real callable functions or executables. Prefer, in order:

  1. an existing project CLI or scripting API;
  2. the project's public library/service API;
  3. direct manipulation of its documented native format followed by its real renderer or runtime;
  4. a narrow subprocess or protocol adapter.

Do not rebuild the product in the harness. For GUI/media applications, rendering must use the real engine. For services, use the real local service/API boundary. For libraries, call the public API rather than copying implementation logic. Read project analysis rules.

Step 2: Design the CLI contract before generating files

Define command groups around user tasks, not source filenames. Every CLI must include doctor, info, and capabilities, plus at least one project-specific command. Every command must work in human-readable mode and with global --json.

Write a lov-cli-plan/v1 JSON plan. For existing executables, declare fixed argv prefixes and typed parameters so the generated bridge can be complete without shell evaluation. For an in-process library or protocol, use the plan to scaffold the command contract, then implement the adapter in generated source.

Read the plan schema and the CLI contract. Include:

  • command name, description, inputs, output, mutability, and exit behavior;
  • state persistence, concurrency, undo/redo, and idempotency rules when relevant;
  • real backend dependency and install diagnostics;
  • output verification for every export or mutation with a material artifact.

Step 3: Scaffold the harness

Generate into PROJECT/agent-harness unless the request or Profile supplies a different output directory:

python3 "$SKILL_DIR/scripts/scaffold_cli.py"
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

.gitignoreCHANGELOG.mdLICENSEREADME.mdassets/cli-template/CLI_SPEC.md.tmplassets/cli-template/LICENSE.tmplassets/cli-template/README.md.tmplassets/cli-template/TEST.md.tmplassets/cli-template/package/__init__.py.tmplassets/cli-template/package/__main__.py.tmplassets/cli-template/package/backend.py.tmplassets/cli-template/package/cli.py.tmplassets/cli-template/pyproject.toml.tmplassets/cli-template/requirements.txt.tmplassets/cli-template/setup.py.tmplcases/cases.jsoncases/evidence/generated-cli-help.txtcases/evidence/skill-creator-analysis.jsoncases/evidence/skill-creator-plan.jsoncases/evidence/skill-creator-result.jsonpricing-card.yamlreferences/cli-contract.mdreferences/cli-plan.mdreferences/project-analysis.mdreferences/skill-card-standard.mdreferences/skill-composition.mdreferences/testing.mdreferences/upstream-research.mdreferences/user-profile.mdscripts/inspect_project.pyscripts/profile_store.pyscripts/scaffold_cli.pyscripts/test_cli_creator.pyscripts/validate_cli.pyscripts/validate_skill.pyskill-card.mdskill-card.yamlskill.yaml

FAQ

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

把本地项目或当前目录转换为可安装、可测试、支持 JSON 的真实后端 CLI;当用户说“给这个项目做 CLI”“把应用变成命令行”或 “build a CLI for this project” 时使用。

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

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

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

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

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

Сравнить lov-cli-creator с