Coding

智能体上手手册 Start

Try it

Quickstart for AI orchestrators (Claude Code / Cursor / Codex / Copilot) driving @dlazy/cli. Covers install, auth, capability discovery, invoking cloud + local tools, polling async tasks, and recovering from common failures. AI 编排器(Claude Code / Cursor / Codex / Copilot)驱动 @dlazy/cli 的快速上手手册。覆盖安装、鉴权、能力探测、调用云端/本地工具、轮询异步任务,以及常见故障恢复。

What it does

Quickstart for AI orchestrators (Claude Code / Cursor / Codex / Copilot) driving @dlazy/cli. Covers install, auth, capability discovery, invoking cloud + local tools, polling async tasks, and recovering from common failures. AI 编排器(Claude Code / Cursor / Codex / Copilot)驱动 @dlazy/cli 的快速上手手册。覆盖安装、鉴权、能力探测、调用云端/本地工具、轮询异步任务,以及常见故障恢复。

The skill document

智能体上手手册 Start

English · 中文

A minimal contract for AI orchestrators using @dlazy/cli. The CLI is a tool-dispatch surface: every registered cloud + local tool becomes a top-level subcommand. There is no built-in project workspace or pipeline state machine — those are agent-side concepts.

License: AGPL-3.0-or-later.

What this skill teaches

You drive @dlazy/cli from auth through tool invocation:

  • Cloud tools (40+) — image / video / audio / text providers (Seedream, Recraft, MJ, Veo, Seedance, Kling, ElevenLabs, …)
  • Local tools (40+) — state_lock_profile, video_compose, post_render_gate, scene_detect, frame_sampler, audio_mixer, audio_probe, transcribe, subtitle, color_grade, extract_segment, ffmpeg_run, … (full list via dlazy tools list)
  • CLI commands: auth, doctor, tools list, tools describe, status, plus one top-level subcommand per registered tool.

Phase 0 — Install & auth

# Install once
npm install -g @dlazy/cli

# Authenticate (device-code flow; works in remote shells)
dlazy auth login

Alternate auth: dlazy auth set YOUR_API_KEY, or set the DLAZY_API_KEY env var. Config lives at ~/.dlazy/config.json (Windows: %USERPROFILE%\.dlazy\).

Global flags every command accepts: --api-key, --base-url, --verbose, --format , --refresh-manifest, -l/--lang .


Phase 1 — Discover capabilities

dlazy --help                         # top-level command surface
dlazy tools list                     # registered tools with type + cost shape
dlazy tools describe           # input/output JSON schema, hasCosts, examples

Optional local runtimes need a one-time install:

dlazy doctor remotion                # report Remotion composer state
dlazy doctor remotion --install      # ~50s, installs the bundled composer

dlazy doctor yt-dlp --install        # for video_downloader on YouTube et al.
dlazy doctor yt-dlp --install --proxy http://127.0.0.1:1087

Some sandboxes restrict the tool surface via DLAZY_DISABLED_TOOLS=; disabled tools are hidden from dlazy --help and refuse invocation with a clear tool_disabled error.


Phase 2 — Invoke a tool

Every tool is a top-level subcommand:

# Inline flags (mirrors the input schema)
dlazy gpt-image-2 --prompt "cyberpunk cat at dusk"

# JSON input file (preferred for complex shapes)
dlazy video_compose --input @work/compose.json --format json

# Dry-run for validation only (no remote call, no credit consumption)
dlazy seedance-2-0 --input @plan.json --dry-run

Per-tool help is generated from the schema:

dlazy  --help

Output modes:

  • --format json (default) — machine-readable envelope; parse with jq
  • --format url — bare URL when the tool produces a single asset
  • --format text — human-readable text payload
  • --save — download the asset straight to disk (mkdir + retry handled for you)

Phase 3 — Poll async cloud tasks

Long-running generations return a generateId instead of the final asset:

dlazy status 
dlazy status  --format json

Repeat until status is succeeded (then the asset URL is in the payload) or failed (with error.code + error.message).


Phase 4 — Common failure recovery

dlazy doctor remotion --install fails on npm install:

  • Check Node ≥ 18 (node --version).
  • Behind a corp proxy: set npm_config_proxy / npm_config_https_proxy.

video_downloader returns "Sign in to confirm you're not a bot":

  • YouTube anti-bot challenge. Pass "cookies_from_browser": "chrome" (or firefox / safari / edge) in the input JSON.

video_compose returns "render_runtime=hyperframes not yet implemented":

  • HyperFrames runtime not shipped. Switch edit_decisions.render_runtime to remotion or ffmpeg, then re-validate via pre_render_validator.

ElevenLabs STT returns an empty words array:

  • Pass timestamps_granularity: "word" explicitly.

Need to know a tool's cost before invoking:

  • dlazy tools describe exposes hasCosts and the cost shape. Log the estimate to a local file or your audit log before calling the tool.

Unknown command suggestion:

  • dlazy returns error: unknown command '' plus a "Did you mean …?" suggestion line based on edit distance. Trust the suggestion only after confirming via dlazy tools list.

Anti-patterns

  • Calling a tool whose existence you haven't verified via dlazy tools list.
  • Memorizing provider names from prior sessions instead of re-checking the registry (tools come and go).
  • Silently swapping render runtime mid-pipeline (govern via state_lock_profile
    • post_render_gate parity checks instead).
  • Calling paid generation without announcing provider / model / cost first.

Reference card

INSTALL       npm install -g @dlazy/cli && dlazy auth login
DISCOVER      dlazy tools list  |  dlazy tools describe 
LOCAL RT      dlazy doctor remotion --install   (or yt-dlp)
INVOKE        dlazy  --input @file.json --format json
DRY RUN       dlazy  --input @file.json --dry-run
POLL          dlazy status 
HELP          dlazy --help  |  dlazy  --help
RECOVER       dlazy doctor   |  dlazy tools describe 

Related skills

Chat with the dlazy sandbox agent — a project-scoped assistant that runs skills end-to-end over multiple turns. Discover skills and projects with dlazy skills list / dlazy projects list. 与 dlazy 沙箱 agent 对话 —— 一个以项目为单位、可端到端运行技能的多轮助手。用 dlazy skills list / dlazy projects list 发现可用技能与项目。

7 installs

Reference for the ai-assistant API / ai-provider SDK — model ids, pricing, params, streaming, tool use, 工具协议, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; do Use when 需要Development领域自动化处理、数据分析和流程编排时使用。不适用于无明确需求的模糊场景。

1 installs

轻量级AI图片生成工具,支持文生图与基础图片编辑,适合个人创意原型制作。Use when 需要AI模型调用、智能对话、Agent编排、LLM应用时使用。不适用于需要100%确定性的关键决策。适用于独立开发者、企业团队和自动化工作流场景。支持中文交互,无需复杂配置即开即用。输出结果可直接使用,减少二次加工成本。

1 installs

调度 Claude Code(小c)执行重度编码任务:代码审查、完整模块生成、复杂 Debug 诊断、架构设计。笨笨统筹,小c干重活。

Route image, video, and audio requests to the right dlazy CLI model based on intent.

by dlazy68 installs1 stars

Anthropic's flagship multimodal model. Strong at long-context reasoning, code generation, and complex tool orchestration. Supports text, image, and video inp...

19 installs