Jimeng cli

From pengfeiqiao/kunpeng · View interactive version

Jimeng cli is an AI agent skill from the GitHub repository pengfeiqiao/kunpeng. Use when an agent needs Dreamina(即梦) login, sessions, task history, or image/video generation through the dreamina CLI.

How to use this skill

Skill file

Dreamina CLI

Use this skill when you need Dreamina(即梦) image or video generation, login, session management, or task history work through dreamina.

即梦 is the Chinese product name of Dreamina. If the user says 即梦, treat it as Dreamina and use this skill.

This skill is intentionally short. Detailed flags and supported values belong to the CLI itself, so always treat dreamina -h and dreamina <subcommand> -h as the primary reference.

What this tool is for

dreamina is the local CLI entrypoint for all currently exposed Dreamina(即梦) image and video generation workflows, plus the account/session operations around them.

Use it for:

Default workflow

When using this CLI as an agent:

  1. Start with dreamina -h.
  2. Before using any command for real, run dreamina <subcommand> -h.
  3. Reuse the current login state unless the user explicitly asks you to login, relogin, logout, or finish a headless login with checklogin.
  4. When login is required, run dreamina login or dreamina relogin. The CLI uses OAuth Device Flow and prints verification_uri, user_code, and device_code.
  5. Default login waits for authorization to complete. With --headless, the CLI prints the device-flow material and exits; then use dreamina login checklogin --device_code=<device_code> to finish the login later.
  6. Be explicit about whether you are only reading help, submitting a real task, or querying an existing task.
  7. Warn the user before running commands that may consume credits.

Login completion: mandatory user-visible confirmation

dreamina login / dreamina relogin prints OAuth Device Flow instructions and then waits for authorization. When the command finishes successfully, tell the user explicitly that login succeeded or the local OAuth state was reused.

Choosing the right command

At a high level:

For the exact flags and supported combinations, rely on each subcommand's -h.

Model selection rule

Do not hardcode model support from this skill.

If the user specifies a model, always check the relevant subcommand help before running it:

dreamina <subcommand> -h

Use the subcommand help to confirm:

Additional guidance:

How to judge submit acceptance and terminal success

Do not rely on shell exit code alone.

For async generation commands, submit_id plus gen_status=querying means only that the submission was accepted. It is not evidence that generation finished successfully.

Treat the task as terminally successful only when gen_status=success. If gen_status=fail, inspect fail_reason and reply proactively with the concrete reason.

Use --poll=N on a generation command to wait for up to N seconds for a terminal result. If the command still returns querying after that bounded wait:

Follow-up pattern for async tasks

After a submit returns querying without reaching a terminal result during --poll=N:

  1. Save the submit_id.
  2. Use query_result --submit_id=<id> for follow-up.
  3. Use list_task when you want to review saved tasks in bulk.

If you are running a test sweep, keep results in a machine-readable format so you can query the returned submit_id values later.

Important user-facing rules

If the CLI returns AigcComplianceConfirmationRequired, reply proactively: ask them to complete that web-side confirmation first, then retry.

Check each subcommand's -h before use.

Good agent behavior

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.