agentleFS
thoitiettxl-cyberthoitiettxl-cyber/Claw-II/skills/image-generation/SKILL.md

image-generation

Skill2 starsChanged 7 months agoMITView on GitHub

Build structured image-generation prompts, handle optional reference-image inputs, and optionally invoke an imported helper that calls the configured cliproxy image API path. Use when the user explicitly wants a generated image concept, prompt package, or image artifact.

63 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use gift-evaluator, Podcast Generate and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • dav-niu474Skill

    gift-evaluator

    The PRIMARY tool for Spring Festival gift analysis and social interaction generation. Use this skill when users upload photos of gifts (alcohol, tea, supplements, etc.) to inquire about their value, authenticity, or how to respond socially. Integrates visual perception, market valuation, and HTML card generation.

    Also in 5 projects that use this

  • dav-niu474Skill

    Podcast Generate

    Generate podcast episodes from user-provided content or by searching the web for specified topics. If user uploads a text file/article, creates a dual-host dialogue podcast (or single-host upon request). If no content is provided, searches the web for information about the user-specified topic and generates a podcast. Duration scales with content size (3-20 minutes, ~240 chars/min). Uses z-ai-web-dev-sdk for LLM script generation and TTS audio synthesis. Outputs both a podcast script (Markdown) and a complete audio file (WAV).

    Also in 5 projects that use this

  • huang-x-hSkill

    Video Generation

    Implement AI-powered video generation capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to generate videos from text prompts or images, create video content programmatically, or build applications that produce video outputs. Supports asynchronous task management with status polling and result retrieval.

    Also in 6 projects that use this

  • huang-x-hSkill

    VLM

    Implement vision-based AI chat capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to analyze images, describe visual content, or create applications that combine image understanding with conversational AI. Supports image URLs and base64 encoded images for multimodal interactions.

    Also in 6 projects that use this

  • +1 more from huang-x-h
  • +7 more from dav-niu474

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 54 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If execution would upload prompt/reference content to an external API, obtain approval first.

    line 64
  2. Distinctive:

    If approved and prerequisites exist, invoke the helper.

    line 72
  3. Distinctive:

    ask for the minimum missing details or provide a bounded default prompt draft with assumptions labeled.

    line 78
  4. Distinctive:

    stop at prompt-package output.

    line 82
  5. Distinctive:

    no fabricated generated artifact

    line 92
  6. Distinctive:

    no silent external upload

    line 93

“Common” is measured: kept by at least 6 in 10 of the 54 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Image Generation

Indexed Reference Map

  • @[SKILL.md#L1-L93] Frontmatter, scope, KB notes, trigger rules, SOP, error handling, output contract.
  • @[references/INDEX.md#L1-L11] Reading order and file map.
  • @[references/QUICK_REFERENCE.md#L1-L20] Trigger boundary, approval split, and stop conditions.
  • @[references/CORE_API.md#L1-L43] Prompt package contract, helper/API behavior, and privacy boundary.
  • @[references/PATTERNS.md#L1-L16] Prompt-shaping and reference-image handling patterns.
  • @[references/EXAMPLES.md#L1-L15] Representative generation requests and handling.
  • @[references/AI_WORKFLOW.md#L1-L14] Bounded orchestration flow.
  • @[scripts/generate.py#L1-L112] Imported external image-generation helper.
  • @[templates/doraemon.md#L1-L95] Optional specialized storyboard template retained from upstream.

Scope

  • In-scope:
    • structure image-generation prompts from user intent
    • organize optional reference-image inputs
    • prepare prompt files/specs for later generation
    • execute the imported helper only when external API use is approved
  • Out-of-scope:
    • blind execution of upstream helper without review/approval
    • pretending an image was generated when only a prompt draft exists
    • searching/downloading reference images unless separately requested and approved

KB Mode Notes

  • Reading order:
    1. references/INDEX.md
    2. references/QUICK_REFERENCE.md
    3. references/CORE_API.md
    4. references/PATTERNS.md
    5. references/EXAMPLES.md
    6. references/AI_WORKFLOW.md
    7. scripts/generate.py
    8. templates/doraemon.md
  • Coverage Matrix:
    • trigger boundary + approval split -> QUICK_REFERENCE.md
    • prompt package + helper/API contract -> CORE_API.md
    • prompt engineering and reference handling -> PATTERNS.md
    • representative use cases -> EXAMPLES.md
    • orchestration order -> AI_WORKFLOW.md
  • Portability note:
    • Local governance treats the helper as an external API adapter; re-check model endpoint, auth, and file-handling policy before porting.

Trigger Rules

  • Positive:
    • The user explicitly wants an image to be generated, designed, imagined, storyboarded, or prompt-packaged.
    • The task needs a reusable structured prompt for later image generation.
  • Negative:
    • The task is primarily about editing an existing local image artifact with a different dedicated workflow.
    • The user only wants textual brainstorming without preparing generation specs.
    • External API/image upload is disallowed and a prompt-only output would not satisfy the request.
  • Escalation:
    • If execution would upload prompt/reference content to an external API, obtain approval first.
    • Without approval, return the structured prompt package and generation notes only.

SOP

  1. Confirm the user wants image generation or a generation-ready prompt package.
  2. Extract subject, style, composition, lighting, constraints, and optional reference-image role.
  3. Build a structured prompt/package in English unless the target workflow explicitly requires otherwise.
  4. Validate that prompt details are traceable to user instructions; do not invent hidden requirements.
  5. If approved and prerequisites exist, invoke the helper.
  6. Otherwise, return the prompt/spec package and state that execution was deferred.
  7. Report actual output artifact path or explicit deferral.

Error Handling

  • Missing visual requirements:
    • ask for the minimum missing details or provide a bounded default prompt draft with assumptions labeled.
  • Invalid reference images:
    • exclude invalid files and report which were skipped.
  • Missing API credential/runtime dependency:
    • stop at prompt-package output; do not fake execution.
  • API failure:
    • report the real error and keep the prompt package for retry.

Output Contract

  • Deliverables:
    • structured prompt/package
    • reference-image list used or deferred
    • actual output path only if generation succeeded
  • Validation:
    • no fabricated generated artifact
    • no silent external upload
    • prompt details remain faithful to user intent
  • Compliance Verdict:
    • PASS when prompt structure is sound and execution/deferral is reported truthfully.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.