开发与测试
register-generated-program
Register a runnable project created or modified by Claude Code in LLMPET Launcher after it passes a real launch check. Use for websites, apps, demos, servers, CLIs, and other executable deliverables. Do not use for source-only libraries, incomplete scaffolds, build-only outputs, or anything that has not actually launched successfully.
myunwang · 已有静态检查记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add myunwang/LLMPET --skill register-generated-program技能说明
name: register-generated-program description: Register a runnable project created or modified by Claude Code in LLMPET Launcher after it passes a real launch check. Use for websites, apps, demos, servers, CLIs, and other executable deliverables. Do not use for source-only libraries, incomplete scaffolds, build-only outputs, or anything that has not actually launched successfully.
Register Claude Code Program
Add a Claude Code-created shortcut to LLMPET Launcher only after proving the deliverable really runs.
Workflow
- Identify the user-facing launch path. Prefer the same command or file the user should run later.
- Launch it in the real target environment. Compilation, lint, or unit tests alone do not count.
- Confirm an observable successful startup. If that remains unverified, do not register anything.
- Use exactly one of the following forms. Keep
--provider claude; this skill must never attribute a program to Codex.
For a command:
node "$HOME/.octopus/bin/register-generated-program.js" --verified \
--name "Program name" \
--description "What the shortcut opens" \
--cwd "/absolute/project/path" \
--command "npm" --arg "run" --arg "dev" \
--provider claude
For an app bundle or directly openable file:
node "$HOME/.octopus/bin/register-generated-program.js" --verified \
--name "Program name" \
--cwd "/absolute/project/path" \
--open "/absolute/project/path/Program.app" \
--provider claude
- Add
--icon /absolute/pathonly when a suitable local icon already exists. - Report registration only after the command prints JSON with
"ok": true.
Boundaries
- Use absolute paths.
- If the registrar is missing, ask the user to open LLMPET Workbench → Generated Programs and authorize the Claude Code skill. Do not recreate LLMPET's registry format manually.
- Pass arguments as repeated
--argvalues. Do not embed shell pipelines in--command. - Register the canonical project once; the same path and launch command update the existing shortcut.
- Never pass
--verifiedbefore a real launch succeeds. - Registration changes only LLMPET's local shortcut index. It does not copy, deploy, publish, or delete the project.