Token导航 LogoToken导航TokenDH.com
图像处理external-servicegithub未标认证来源可访问clear审计未展示

image-generation图像生成

Agent Skill

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

总安装

324

周安装

13

GitHub Stars

公开资料未说明

下载量

105
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:image-generation(图像生成)
来源仓库:https://github.com/lukasstrickler/ai-dev-atelier
仓库路径:skills/image-generation
安装命令:
npx skills add lukasstrickler/ai-dev-atelier --skill "image-generation"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add lukasstrickler/ai-dev-atelier --skill "image-generation"

简介

基于文本生成图像的 AI 图像创作工具。

  • 适用于插画、素材生成与视觉提示词优化。
  • 支持多种风格与分辨率选项。image-generation 属于图像处理类 Skill,可作为该场景下的辅助能力补充。
  • 涉及人物或品牌元素时请确保版权合规。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 需配置有效的图像生成 API 密钥。

SKILL.md

name
image-generation
description
Generate, edit, and upscale AI images. Use when creating visual assets for apps, websites, or documentation. FREE Cloudflare tier for iterate generation (~96/day), Fal.ai for paid tiers. Four quality tiers (iterate/default/premium/max). Supports text specialists, multi-ref editing, SVG, background removal. Triggers: generate image, create image, edit image, upscale, logo, picture of, remove background.
metadata
author
ai-dev-atelier
version
3.0

Image Generation

Generate, edit, and upscale images with standardized quality tiers and embedded best practices.

Quick Start

Need image?
├─ Text/Logo → bun scripts/gen.ts "..." --text [-t tier]
├─ Photo/Art → bun scripts/gen.ts "..." [-t tier]
├─ Edit existing → bun scripts/edit.ts <img> "..." [-t tier]
├─ Upscale → bun scripts/upscale.ts <img> [-t tier]
├─ Vectorize → bun scripts/svg.ts <img> ($0.01/img)
└─ Remove BG → bun scripts/rembg.ts <img> (FREE)

Tier selection:
├─ iterate  → FREE drafts (~96/day via Cloudflare)
├─ default  → Daily driver ($0.008/MP)
├─ premium  → Final assets ($0.03/MP)
└─ max      → Critical work, SOTA ($0.06-0.07/MP)

Entry Points

ScriptPurpose
bun scripts/gen.tsText → Image
bun scripts/edit.tsImage + Instruction → Image
bun scripts/upscale.tsImage → Larger Image
bun scripts/svg.tsImage → SVG ($0.01/img)
bun scripts/rembg.tsRemove background (FREE)

Prompting Best Practices

CRITICAL: Good prompts are the difference between unusable output and production-ready assets.

The Universal Prompt Structure

[Subject] + [Action/Pose] + [Environment] + [Style/Medium] + [Lighting] + [Camera/Composition]

Example:

"A cybernetic owl perched on a neon sign in a rain-soaked alley. Cinematic lighting with teal and orange highlights. Shot on 35mm film, shallow depth of field, hyper-detailed textures."

DO: Effective Prompting

TechniqueExample
Be specific"middle-aged man with salt-and-pepper hair wearing charcoal turtleneck" NOT "a man"
Describe the result"person with clear eyes" NOT "remove glasses"
Use camera terms"Shot on Hasselblad, 85mm lens, f/1.8"
Specify lighting"golden hour rim lighting with deep shadows"
Include textures"weathered sandstone", "anodized aluminum", "iridescent silk"

DON'T: Common Mistakes

MistakeProblemFix
Negative phrasing"no glasses" often adds glassesDescribe what IS there
Vague subjectsAI interprets randomlyBe exhaustively specific
Keyword salad"4k, trending, masterpiece" is noiseUse descriptive sentences
Short promptsUnder 20 words underperformsAim for 40-80 words

Style Keywords That Work

CategoryKeywords
Lightinggolden hour, volumetric lighting, Rembrandt lighting, neon rim light, bioluminescent
Camera35mm anamorphic, macro photography, tilt-shift, fisheye, drone shot
Stylecinematic, photorealistic, concept art, ukiyo-e, baroque, impressionist
Qualityhyper-detailed, sharp focus, 8k resolution, raytraced

Text & Logo Generation (--text flag)

Uses Recraft V3 (iterate/default) or Ideogram V3 (premium/max) - specialized for typography.

Text Prompting Rules

CRITICAL: Put text in "Double Quotes" at the START of your prompt.

# Correct - text first, then describe
bun scripts/gen.ts '"QUANTUM" in bold futuristic font, metallic silver, dark space background' --text

# Wrong - text buried in description
bun scripts/gen.ts 'A logo with the word QUANTUM on it' --text

Logo Design Patterns

StylePrompt Pattern
Minimalist"BRAND" minimalist vector logo, clean lines, simple geometry, flat design
Vintage"EST. 1920" vintage badge logo, circular emblem, ribbon banner, ornate border
Negative space"PEAK" logo where the letter A forms a mountain, negative space design
3D/Modern"TECHCORP" bold 3D chrome letters, gradient fill, dark background

Font Specification

Use typography terms: modern sans-serif, elegant script, bold blocky, blackletter, neon tubing, retro 70s serif

DO/DON'T for Text

DODON'T
"Three cats playing" (exact count)"cats playing" (random count)
"wooden baseball bat" (specific)"bat" (ambiguous)
Describe only what you want"no cake" (will add cake)

Image Editing

bun scripts/edit.ts <image> <instruction> [-t TIER] [--mask <mask.png>] [--ref <img>...]

Writing Edit Instructions

Key: Describe the TARGET STATE, not the change.

Bad InstructionGood Instruction
"change car to blue""A sleek blue metallic sports car, reflections of neon lights on wet asphalt"
"add a hat""person wearing a vintage red fedora, matching the scene lighting"
"remove background"Use rembg.ts instead (FREE and better)

Mask Best Practices

TaskMask Strategy
Object removalMask LARGER than object (10-20px margin) for seamless fill
Object additionMask exact shape or slightly smaller
OutpaintingOverlap 10-20px INTO original image

Feathering: Apply 12-16px blur to masks. Sharp masks = visible seams.

Multi-Reference Editing (--ref)

Using 2+ reference images auto-selects max tier (flux-2-flex).

# Style transfer: apply reference style to base image
bun scripts/edit.ts base.jpg "in the style of the reference" --ref style.jpg

# Multi-reference blending
bun scripts/edit.ts scene.jpg "forest sofa scene" --ref forest.jpg --ref sofa.jpg

Tip: When blending references, describe their relationship: "A velvet sofa placed in a misty pine forest"


Upscaling

bun scripts/upscale.ts <image> [-t TIER] [--scale 2|4]

When to Use 2x vs 4x

Source QualityRecommendation
High (RAW, clean PNG)4x safe - AI infers detail accurately
Medium (standard JPEG)2x preferred - denoise first if possible
Low (compressed, blurry)2x max - noise gets magnified

Use Case Guidelines

OutputScaleNotes
Web/UI2xReduces file size, improves perceived sharpness
Print (300 DPI)4xTarget 300 DPI for print quality
Icons/Logos2xUse svg.ts instead for infinite scaling

Common Artifacts & Fixes

ArtifactCausePrevention
Haloing (white edges)Aggressive sharpeningUse iterate/default tier
Plasticky skinOver-smoothingReduce to 2x, use premium tier
Grid patternsTile processingUse higher tier models

Rule of Thumb: If image looks "crunchy" at 100% zoom, don't exceed 2x.


Tier Selection Guide

ScenarioTierWhy
Exploring 10+ variationsiterateFREE, fast iteration
Daily work, 3-5 variationsdefaultBest cost/quality balance
Client deliverablespremiumHigher fidelity
Critical assets, multi-refmaxSOTA quality, advanced features
Text/logos (any)defaultRecraft V3 already excellent
Text/logos (critical)premiumIdeogram V3 for perfect typography

Cost Optimization

EXPENSIVE WORKFLOW (avoid):
  Generate at max tier → iterate on max → deliver

COST-EFFECTIVE WORKFLOW (recommended):
  Generate at iterate (FREE) → find best concept
  → Regenerate winner at default/premium → deliver

Environment

# For FREE iterate generation (Cloudflare)
CLOUDFLARE_ACCOUNT_ID=xxx
CLOUDFLARE_API_TOKEN=xxx

# For paid tiers (Fal.ai)
FAL_API_KEY=xxx

Quota: Cloudflare FREE tier allows ~96 images/day at 1024x1024.

Exit Codes

CodeMeaningAction
0SuccessImage saved to .ada/data/images/
1General errorCheck error message
2Config/auth errorVerify API keys in .env
3Resource limitQuota exceeded - wait 24h or use paid tier

CRITICAL: Exit code 3 does NOT fall back to paid tier. This prevents accidental charges.


Integration

SkillWhen to Use Together
ui-animationAnimate generated images for web/mobile
docs-writeDocument image assets and parameters used
searchFind prompting resources and style references
code-qualityAfter modifying skill scripts

References

  • references/usage-guide.md - Extended prompting guide, error codes, testing
  • README.md - Architecture diagrams, model reference, CLI details
  • Fal.ai Docs - Official API documentation

Output

Images saved to .ada/data/images/ with timestamped filenames:

20260118_gen_default_cyberpunk_city.jpg
20260118_svg_default_logo_vector.svg

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.14%
按下载量换算32

kilo

21.99%
按下载量换算23

Gemini CLI

16.97%
按下载量换算18

Antigravity

13.07%
按下载量换算14

mcpjam

8.28%
按下载量换算9

command-code

3.4%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills