Agent skill

Image Generate

by huangruiteng in huangruiteng/CS-Notes

使用内置 imagegenerate.py 脚本生成图片, 准备清晰具体的 prompt. An agent skill from huangruiteng/CS-Notes.

MITAuto-check passed

Install Image Generate

skills CLI
$ npx skills add huangruiteng/CS-Notes --skill image-generate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install huangruiteng/CS-Notes image-generate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/huangruiteng/CS-Notes.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.trae/openclaw-skills/image-generate .claude/skills/image-generate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
image-generate
GitHub stars
4k
Used in
1 other repo
Token cost
~132 tokens
SKILL.md length
37 words
Files
2 (incl. scripts)
Skills in repo
39
Repo updated
First seen
Licence
MIT

At a glance

使用内置 imagegenerate.py 脚本生成图片, 准备清晰具体的 prompt. An agent skill from huangruiteng/CS-Notes.

  • Works in 3 steps: 准备清晰具体的 prompt。 → 运行脚本 python scripts/image_generate.py… → 脚本将返回生成图片的 URL。
  • SKILL.md covers 适用场景, 使用步骤, 认证与凭据来源 and 输出格式, plus 1 more section
  • Runs Python scripts from its folder; calls python; needs MODEL_IMAGE_API_KEY and ARK_API_KEY

What it does

Image Generate is an agent skill from huangruiteng/CS-Notes. 使用内置 imagegenerate.py 脚本生成图片, 准备清晰具体的 prompt。

Its SKILL.md is about 130 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/image_generate.py`).

The licence is MIT.

Example prompts

  • “/image-generate”

Requirements

  • Python 3
  • A credential in MODEL_IMAGE_API_KEY
  • A credential in ARK_API_KEY

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 准备清晰具体的 prompt。
  2. 运行脚本 python scripts/image_generate.py ""。运行之前cd到对应的目录。
  3. 脚本将返回生成图片的 URL。

What it can do on your machine

Read from SKILL.md and the folder at commit f7b4e92. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • MODEL_IMAGE_API_KEY
    • ARK_API_KEY
    • VOLCENGINE_ACCESS_KEY
    • VOLCENGINE_SECRET_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Image Generate loads about 132 tokens when it runs. Until then it costs about 16 tokens; SKILL.md has 37 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~16
When it runs · the whole SKILL.md, loaded when a task matches
~132

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from huangruiteng/CS-Notes at commit f7b4e92, republished under its MIT licence (© huangruiteng). 37 words, ~132 tokens.

Download SKILL.mdSave it as .claude/skills/image-generate/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
image-generate
description
使用内置 image_generate.py 脚本生成图片, 准备清晰具体的 `prompt`。

Image Generate

适用场景

当需要根据文本描述生成图片时,使用该技能调用 image_generate 函数。

使用步骤

  1. 准备清晰具体的 prompt。
  2. 运行脚本 python scripts/image_generate.py "<prompt>"。运行之前cd到对应的目录。
  3. 脚本将返回生成图片的 URL。

认证与凭据来源

  • 优先读取 MODEL_IMAGE_API_KEY 或 ARK_API_KEY 环境变量。
  • 若未配置,将尝试使用 VOLCENGINE_ACCESS_KEY 与 VOLCENGINE_SECRET_KEY 获取 Ark API Key。

输出格式

  • 输出生成的图片 URL。
  • 若调用失败,将打印错误信息。

示例

bash
python scripts/image_generate.py "一只可爱的猫"

© huangruiteng, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in .trae/openclaw-skills/image-generate of huangruiteng/CS-Notes.

  • SKILL.md
  • scripts/image_generate.py

Open the folder on GitHubat commit f7b4e92

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in huangruiteng/CS-Notes, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Image Generate next to the 3 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Image Generate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Image Generate this skillhuangruiteng/CS-Notes4k1 repos~132Automated safety check: PassMIT
Zui Buildeasysoft/zui2.8k—~1.4kAutomated safety check: PassMIT
Funboost Faas Deployydf0509/funboost893—~956Automated safety check: PassNone
Link Readerhuangruiteng/CS-Notes4k—~124Automated safety check: PassApache-2.0

Similar skills

  • Zui Build

    easysoft/zui

    使用内置 ZUI 资源从零创建可运行的独立网页或小型静态站点。向已有应用集成 ZUI 时使用 zui 技能. An agent skill from easysoft/zui.

    2.8k GitHub stars~1.4k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Funboost Faas Deploy

    ydf0509/funboost

    当需要将 funboost 任务部署为 HTTP 微服务时使用。触发场景:通过 FastAPI/Flask/Django 暴露发布和查询接口、使用内置 FaaS router、无需手写 API 代码。关键词:FaaS, 微服务, FastAPI, Flask, Django, HTTP API, REST, fastapirouter, flaskblueprint, web deploy。

    893 GitHub stars~956 tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Link Reader

    huangruiteng/CS-Notes

    使用内置 linkreader 函数读取网页、PDF或抖音视频内容。准备 URL 列表。运行脚本 python scripts/linkreader.py "url1" "url2" ...。

    4k GitHub stars~124 tokensUpdated today
    Documents & OfficeAuto-check passed

More from huangruiteng/CS-Notes

All 39 skills in this repo
  • CLI Creator

    huangruiteng/CS-Notes

    Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script.

    4k GitHub starsUsed in 2 repos~2.7k tokens
    Auto-check passed
  • Codex Thread Heartbeat

    huangruiteng/CS-Notes

    Inspect and manage guarded Codex App-native or launchd heartbeats for Codex main control threads.

    4k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Slack

    huangruiteng/CS-Notes

    A skill your agent uses when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.

    4k GitHub starsUsed in 10 repos~578 tokens
    Auto-check passed
  • Codex Thread Reader

    huangruiteng/CS-Notes

    Locate and read a Codex thread by a codex thread link, thread id, or rollout path across all local CODEXHOME directories (~/.codex, ~/.codex-gpt, ...).

    4k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Research Material Scout

    huangruiteng/CS-Notes

    A skill your agent uses when the user asks Codex to research, find learning materials, process "素材:" links, "请你读" / "精读" a material, build a material radar, or use SenSight-like broad information…

    4k GitHub stars~8.3k tokensUpdated today
    Auto-check passed
  • GitHub

    huangruiteng/CS-Notes

    Interact with GitHub using the gh CLI. An agent skill from huangruiteng/CS-Notes.

    4k GitHub starsUsed in 27 repos~279 tokens
    Auto-check passed

Questions about Image Generate

What does Image Generate do?

使用内置 imagegenerate.py 脚本生成图片, 准备清晰具体的 prompt. An agent skill from huangruiteng/CS-Notes. Image Generate is an agent skill from huangruiteng/CS-Notes.

How do I install Image Generate in Claude Code?

Run `npx skills add huangruiteng/CS-Notes --skill image-generate -a claude-code`. Or copy the skill folder (.trae/openclaw-skills/image-generate in huangruiteng/CS-Notes) into .claude/skills/image-generate in your project. Claude Code loads it when a task matches its description.

How do I install Image Generate in Codex?

Run `npx skills add huangruiteng/CS-Notes --skill image-generate -a codex`. Or copy the skill folder (.trae/openclaw-skills/image-generate in huangruiteng/CS-Notes) into .agents/skills/image-generate in your project. Codex loads it when a task matches its description.

Can I use Image Generate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add huangruiteng/CS-Notes --skill image-generate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/image-generate, .gemini/skills/image-generate, .github/skills/image-generate and .opencode/skills/image-generate in your project.

What does Image Generate need to run?

Going by SKILL.md and its folder, Image Generate needs Python for the scripts in its folder, the command-line tools its instructions call (python) and credentials named MODEL_IMAGE_API_KEY, ARK_API_KEY, VOLCENGINE_ACCESS_KEY and VOLCENGINE_SECRET_KEY. Our summary lists: Python 3; A credential in MODEL_IMAGE_API_KEY; A credential in ARK_API_KEY.

Does Image Generate access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Image Generate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Image Generate use?

Image Generate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Image Generate use?

About 132 tokens (SKILL.md is roughly 528 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Image Generate?

Skills that share tags, products or a category with Image Generate: Zui Build (easysoft/zui, 2.8k stars), Funboost Faas Deploy (ydf0509/funboost, 893 stars) and Link Reader (huangruiteng/CS-Notes, 4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Image Generate?

huangruiteng (a GitHub user) maintains it in huangruiteng/CS-Notes, which has 4,000 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on October 8, 2026.

Source: huangruiteng/CS-Notes on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.