dsh-imagegen-skill
Manifest validBundled imagegen skill for DeepSeek Harness: generate or edit raster images from the agent through any OpenAI-compatible GPT Image endpoint.
dsh-imagegen-skill
Bundled imagegen skill for DeepSeek Harness: one dsh plugin add puts image generation and image editing in every session's skill catalog — no copying files into $DSH_HOME/skills by hand.
dsh plugin --profile web add dsh-imagegen-skill
After a restart the agent can load the skill with the skill tool (or you can invoke it with /imagegen), and it will generate or edit raster images through the CLI that ships with this package.
What it does
The skill teaches the agent to drive scripts/image_gen.py — a small openai-SDK CLI — against any OpenAI-compatible endpoint that serves GPT Image:
generate— text to image, including transparent-background cutoutsedit— one or more reference images in, one image out (image-to-image, chain edits)generate-batch— many jobs from a JSONL file, only when you explicitly ask for CLI/API/model control
Artifacts land in the project (output/imagegen/ by default), never in a temp directory, and never overwrite an existing asset unless you ask.
Configuration
| Variable | Meaning |
|---|---|
OPENAI_API_KEY | Credential for your endpoint. Required for real calls. |
OPENAI_BASE_URL | Base URL of an OpenAI-compatible /v1 root. Leave unset for api.openai.com. |
Any relay works as long as it exposes /v1/images/generations: the official API, an Azure-style gateway, a company proxy, or a local relay in front of a ChatGPT subscription. Billing follows whatever that endpoint charges — a subscription relay spends subscription quota, not API credit, and surfaces exhaustion as 429 usage_limit_reached with resets_in_seconds in the body.
--dry-run validates arguments and the real output path with no key, no network, and no cost.
Requirement
On Windows the python on PATH is often the Microsoft Store placeholder with no real interpreter. Install uv and let the skill load dependencies per run:
$env:OPENAI_BASE_URL = "https://api.openai.com/v1"
$env:OPENAI_API_KEY = "<your key>"
uv run --quiet --with openai python scripts/image_gen.py generate --prompt "a small red dot on white" --size 1024x1024 --out out.png
Distribution requires dsh plugin add to reach npm or GitHub; nothing else is needed, because this package ships plain JavaScript and no build step.
Layout
package.json dsh.bundle.patch -> cordis.patch.yml (inserts this plugin into the web composition)
cordis.patch.yml the insert row
src/index.js Cordis plugin: registers the bundled skill on ctx.skills
skills/imagegen/
SKILL.md the instructions the model loads
scripts/ image_gen.py, remove_chroma_key.py
references/ CLI, API, prompting and sample-prompt notes
assets/ skill icons
test/ contract tests for the provider
src/index.js registers a provider on the skill registry (ctx.skills.registerProvider) with resourceBase pointing at skills/imagegen/, so relative paths in SKILL.md resolve against the installed copy wherever node_modules happens to be.
Install from a local checkout
dsh plugin --profile web add D:\Projects\dsh-imagegen-skill
dsh plugin --profile web list
Uninstall
dsh plugin --profile web remove dsh-imagegen-skill
Note on shadowing a hand-installed copy
A hand-installed $DSH_HOME/skills/imagegen and this package both register a skill named imagegen. The packaged provider uses the standard packaged rank (600) and the filesystem user root ranks lower (400), so the packaged copy wins and the registry logs a notice about the ignored duplicate. Keep one of the two: if you install this package, remove the hand-copied directory (or the reverse).
Attribution and license
Apache-2.0. The reference documents, the assets, and the Python scripts under skills/imagegen/ come from the Codex imagegen system skill; SKILL.md and the Cordis provider are this repository's work. See NOTICE for the full provenance statement, and LICENSE for the license text.
Installing any dsh plugin runs third-party code with your own permissions. This one is a skill provider: it reads files inside its own package and registers a catalog entry. It makes no network request of its own — the skill only runs
scripts/image_gen.pywhen an agent or a user actually asks for an image.
Comments
Loading…
From the same category
by tt-a1i
Agent skill for beautiful, verifiable architecture, workflow, sequence, data-flow, and lifecycle diagrams—self-contained HTML with motion and crisp export.
★ 67.1k
↓ 4.3k/wk
MIT
JavaScript
Sep 19, 2026
dsh plugin --profile web add @tt-a1i/archify-dshDeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.
★ 41.7k
↓ 332/wk
MIT
Aug 24, 2026
dsh plugin --profile web add dsh-plugin-reactive-resumeby anywhere-labs
为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 27.7k
↓ 281/wk
MIT
TypeScript
Sep 19, 2026
dsh plugin --profile web add dsh-plugin-desktopby Tencent
Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
★ 27.2k
↓ 811/wk
NOASSERTION
Go
Sep 19, 2026
dsh plugin --profile web add @wxg-prc-cpg/dsh-weknoraby titanwings
Distilly — Distill how they think into reusable Skills for any Agent or Bot. Formerly Colleague Skill(原同事 Skill).
★ 24.9k
MIT
TypeScript
Sep 16, 2026
by Nagi-ovo
Enhancement suite for Gemini, AI Studio, Claude & ChatGPT — plus a prompt manager for any websites, DeepSeek Harness included. / 面向 Gemini、AI Studio、Claude 与 ChatGPT 的增强套件;其中的提示词管理器可用于任意网站,如 DeepSeek
★ 20.1k
GPL-3.0
TypeScript
Sep 18, 2026