lov-cli-creator
БесплатноЗапускает вложенные скриптыНе проверен把本地项目或当前目录转换为可安装、可测试、支持 JSON 的真实后端 CLI;当用户说“给这个项目做 CLI”“把应用变成命令行”或 “build a CLI for this project” 时使用。
от 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
- Resolve
SKILL_DIRfrom the active Skill context. - Resolve the target from the user's path; if omitted, use the Skill invocation working directory, not the installed Skill directory.
- Resolve symlinks, confirm the directory exists, and read applicable
AGENTS.md,CLAUDE.md, repository instructions, and dirty-worktree state. - 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:
- an existing project CLI or scripting API;
- the project's public library/service API;
- direct manipulation of its documented native format followed by its real renderer or runtime;
- 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"
Установить lov-cli-creator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lov-cli-creator?
把本地项目或当前目录转换为可安装、可测试、支持 JSON 的真实后端 CLI;当用户说“给这个项目做 CLI”“把应用变成命令行”或 “build a CLI for this project” 时使用。
Как установить скилл lov-cli-creator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lov-cli-creator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic