SkillsReviewed · lessweb

Deep Code CLI Image Generator

Image Generator is a Deep Code CLI skill for people who want an assistant to create or edit images, but generation requires a Deep Code Plus API key and uses service credits. It combines assistant instructions with a Python helper that estimates charges, accepts up to ten reference images and optionally saves the result locally.

Researched 15 Nov 2026

In short.

Image Generator is a Deep Code CLI skill for assistant users and developers who want image creation or editing, but it depends on a credit-based Deep Code Plus service. Its Python helper estimates the charge, checks the confirmed amount again before generation and can download the returned image. Reference images are included even in estimation requests. Image quality, actual charges, service availability and provider data-handling terms are unknown; nothing was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage comprises the captured SKILL.md and scripts/image_generator.py in packages/core/templates/skills/bundled/image-generator, plus the repository-root MIT LICENSE at revision bd19227135469ec7dbd555e3059cda06f814ee76. The wider CLI, service backend, provider terms and later revisions are outside this material. No code or commands were executed. Runtime compatibility, API availability, actual charges, output quality and generated-image rights remain unassessed or unknown.

The overview

identity

The resource is the image-generator skill bundled under packages/core/templates/skills/bundled/image-generator in lessweb/deepcode-cli. Its two captured files are SKILL.md, which tells an assistant how to handle requests, and scripts/image_generator.py, which communicates with Deep Code Plus.

The original source folder is [https://github.com/lessweb/deepcode-cli/tree/main/packages/core/templates/skills/bundled/image-generator]. This report concerns that skill and its helper, rather than the wider CLI or the service backend.

assessment

The skill provides a concrete path from an image request to a cost estimate and a generation request. Its useful feature is the combination of guided request preparation and a second price check immediately before generation.

It is a plausible fit when Deep Code Plus is already an acceptable dependency. The source establishes the request flow, but supplies no generated examples, quality measurements or runtime results. Its suitability for production use remains unassessed.

users

Beginners can use the assistant-facing instructions to express a scene, choose image proportions and review the estimated credit charge. Developers can inspect or invoke the Python helper directly. The assistant-facing route depends on an environment that can run commands and ask interactive questions; compatibility with other assistants is not documented.

capabilities

The instructions cover text-to-image requests, combining elements from multiple references and editing visibly marked regions. The helper accepts up to ten references as local paths, HTTP(S) image URLs or image data URLs. Local files are encoded into the request.

Supported ratio arguments are 1:1, 3:4, 4:3, 16:9, 9:16, 2:3, 3:2 and 21:9. Resolution labels are 1k, 1.5k, 2k and 4k; exact pixel dimensions are not established. Each generation response is expected to contain one image URL, with an optional local download.

Using it

requirements

The helper needs Python, network access and readable files for any local references. It imports only Python standard-library modules. Its annotations imply Python 3.10 or newer, although the supplied files do not declare a supported-version matrix.

Generation requires a valid PLUS_API_KEY in a local JSON settings file. Estimation can operate without a key, but malformed settings or an invalid key already present can still stop it. Prompts and supplied reference content go to the service during estimation as well as generation.

mechanism

The helper builds a JSON payload containing the prompt, ratio, resolution and optional image list. It posts that payload to /api/plugin/calc-image-gen-cost. Generation repeats the estimate, compares it with --confirmed-credits and calls /api/plugin/image-gen only when the amounts match.

The API key format selects either [https://deepcode.vegamo.cn] or [https://www.deepcodeplus.com]. Cost requests omit the API key header; generation requests include PLUS-API-KEY. The code exposes no choice of underlying image model.

Requests also attempt to include a persistent Token identifier from ~/.deepcode/machine-id. When absent, the helper creates one using the hostname, random data and a timestamp. Local reference files become base64 data URLs, while supplied HTTP(S) URLs are forwarded to the service.

setup

Keep SKILL.md with its scripts directory; the documented commands run from the skill directory. Configure the access key as the PLUS_API_KEY field inside an env object in ~/.deepcode-plus/settings.json. The helper also accepts --settings for an alternative settings file. The instructions point to [https://deepcode.vegamo.cn/plus/api-keys] for obtaining a key.

The assistant instructions call for gathering the prompt and references, explicitly choosing ratio and resolution, estimating credits and obtaining confirmation. Installation of the wider CLI and registration of this folder with another assistant are not explained in the captured files.

example

An illustrative estimate command is: python3 scripts/image_generator.py cost --prompt "A watercolor illustration of a red bicycle beside a garden wall" --ratio 4:3 --resolution 1k. This example was not executed and has no known credit charge.

After reviewing the returned amount, a corresponding generate invocation would retain those arguments and add --confirmed-credits N --output ./bicycle.png, replacing N with the confirmed integer. For a reference-based request, add --image ./reference.png and describe its role in the prompt. Any changed request should receive a fresh estimate.

Assessment & evidence

limitations

Marked-region editing is expressed through a reference image and prompt; there is no separate mask or coordinate argument. Preservation of unmarked areas, reference fidelity and editing quality are unassessed. The instructions describe watermark-free PNG output, but the downloader saves returned bytes without checking format or watermarks.

Local-image validation relies on the filename's inferred MIME type rather than inspecting image contents. Remote URLs are forwarded without checking that they contain images. Provider retention, training use and deletion practices are not documented.

Generation uses a synchronous request with a 360-second timeout and no retry or job-resume logic. Downloading has a separate 120-second timeout. A failed download or timed-out request does not establish whether generation completed or credits were charged. The image URL is described as temporary, with no stated expiry period.

reasoning

The design can make individual image requests easier to inspect: the assistant prepares the inputs, the service estimates credits and the helper checks the amount before submission. This is a useful structure for interactive work where a person reviews each request.

The consent step depends on the assistant or operator. The script accepts a caller-supplied integer; it cannot prove that a person approved it. It also does not bind the earlier estimate to an immutable prompt or reference-image snapshot. Its suitability therefore depends on both the surrounding interaction and the external service.

alternatives

A concrete alternative within the supplied files is using the Python helper directly from a terminal, handling request preparation and approval yourself. A provider's own image interface or a locally run image tool are other approaches to investigate, but no competing products are documented here. Comparative quality, cost and privacy are unknown.

evidence

The assistant instructions are available at [https://raw.githubusercontent.com/lessweb/deepcode-cli/bd19227135469ec7dbd555e3059cda06f814ee76/packages/core/templates/skills/bundled/image-generator/SKILL.md]. The implementation is at [https://raw.githubusercontent.com/lessweb/deepcode-cli/bd19227135469ec7dbd555e3059cda06f814ee76/packages/core/templates/skills/bundled/image-generator/scripts/image_generator.py]. These establish documented intent and visible client-side behavior, without demonstrating successful service responses.

The related licence notice is at [https://raw.githubusercontent.com/lessweb/deepcode-cli/bd19227135469ec7dbd555e3059cda06f814ee76/LICENSE]. No generated images, execution logs, billing receipts, backend implementation or service terms accompany these files.

Access & freshness

costs

The service returns a request-specific integer credit estimate. No actual estimate, currency price, credit purchase rate, free allowance or subscription requirement is established by the supplied material. Anonymous estimation means no API key is required for that request; it does not establish free generation.

The helper refuses to generate when the new estimate differs from --confirmed-credits. This comparison does not establish backend billing behavior, refunds or charges after timeouts and failed downloads.

rights

The supplied repository LICENSE is MIT, copyright 2026 lessweb. It permits use, modification, redistribution and commercial reuse of the covered software and documentation, provided the copyright and permission notice accompany copies or substantial portions. It disclaims warranties.

That software licence does not establish the service's terms, permission to upload particular reference images or ownership and commercial-use rights for generated images. Those matters remain unknown.

freshness

The source snapshot was captured on 15 November 2026 at 22:25:25.918 UTC from revision bd19227135469ec7dbd555e3059cda06f814ee76. No release number, underlying model version or API compatibility guarantee is stated. Later source changes and the service's current behavior are unknown.

actions

Before using private references or relying on commercial output rights, establish the provider's current data-handling and image-use terms. Check credit purchase prices separately, because the helper returns credits rather than a currency total.

For an initial evaluation, use a non-sensitive request, inspect its estimate and explicitly approve the amount before generation. Assess the actual output format, editing fidelity and download behavior before depending on them. A cost estimate alone does not demonstrate successful image generation.

Evidence for this report

LICENSEnotice · checked 2026-11-15