kling-ai-generate-image
Installation
SKILL.md
Kling AI image generation
Turn the creative request into one precise, user-confirmed remote image generation. Follow the Claude Code OAuth, billing confirmation, single-submission, status, and result rules in the core Kling Skill.
Read prompt construction for reference images, exact copy, branded assets, or controlled variants. Read scene patterns for product, advertising, portrait, poster, or cover work. For Element reuse or local media, also read the core asset workflows.
Workflow
- Use
text_to_imagefor a new image. Useimage_to_imagewhen source media controls identity, product structure, composition, editable content, or style. An attachment alone does not determine the mode. - Ask only for missing information that materially changes the result: subject, destination and aspect ratio, required copy, reference roles, protected facts, or output count.
- Create or reuse the UUIDv7
taskTraceIdfor this objective, callwho_am_i, and select an explicitly compatible model and live arguments. - Upload local images first and use only the live input names and returned URLs. Never silently degrade to text-to-image after an upload failure.
- Build one prompt covering subject, action, environment, composition, lighting, color, materials, camera language, protected facts, and necessary exclusions.
- Show the final mode, model, prompt summary, resolution, aspect ratio, output count, and reference roles. Obtain explicit approval under the core Skill's billing rule; honor an existing explicit authorization for the final settings.
- Call the image generation tool exactly once and preserve the task number. If its MCP App mounts, let that one App self-refresh and do not call
query_tasksfrom the model. If no App mounts, follow the core Skill's headless polling fallback; never resubmit. - When Claude Code renders the MCP App, do not add Markdown media or duplicate links. When no App is rendered, provide one primary image link.