mcpField
T
tshirt-design-generation

tshirt-design-generation

github.com/eachlabs设计与 UI44329 次安装今天更新
代码仓库

关于 tshirt-design-generation

使用 each::sense 制作服装图案的设计技能,面向设计师和周边创作者。它涵盖多种视觉风格,并提供适配不同印刷方式的成品输出指引。

主要功能

  1. 01图案、字体、复古和极简风格
  2. 02插画、乐队、运动、幽默及抽象设计
  3. 03透明背景的印刷就绪导出
  4. 04多种印刷方式的设计指引
  5. 05基于会话迭代设计
  6. 06为系列批量生成设计

适用场景

  1. 01制作适合丝网印刷的限色图案
  2. 02开发以字体为主的服装设计
  3. 03通过多轮对话完善设计
  4. 04为系列生成协调一致的图案

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/eachlabs/skills --skill tshirt-design-generation

安装后在 Claude Code 中输入/tshirt-design-generation确认已加载。

附带文件references/SSE-EVENTS.md

详细介绍

T 恤设计生成

使用 each::sense 生成专业、可直接印制的 T 恤和服装设计。此技能可创作高质量图形,针对丝网印刷、DTG(直接成衣印花)、升华转印和热转印等印刷方式进行优化。

功能

  • 图形设计:适合个性 T 恤的大胆插画和艺术作品
  • 字体排版:采用创意字母设计和字体的文字设计
  • 复古风格:带有经典美学的做旧设计
  • 极简风格:简洁明了、效果出众的设计
  • 插画:手绘风格的艺术作品和角色
  • 乐队/音乐:演唱会周边风格设计
  • 运动队:运动服饰图形和标志
  • 幽默/梗图:搞笑设计和流行文化元素
  • 抽象艺术:艺术图案和现代设计
  • 可直接印制:导出适用于生产的透明背景文件

快速开始

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a graphic t-shirt design featuring a roaring tiger with geometric patterns, bold colors, suitable for screen printing"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

设计规格

印刷方式推荐格式颜色备注
丝网印刷透明背景 PNG有限(1-6 种颜色)专色、高对比度
DTG透明背景 PNG不限支持全彩和写实效果
升华转印PNG/JPG不限满版印花、色彩鲜艳
热转印透明背景 PNG不限适用于深色/浅色服装
刻字膜切割矢量风格 PNG1-3 种颜色简单形状,无渐变

用例示例

1. 图形 T 恤设计
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a graphic t-shirt design of a wolf howling at the moon. Use a bold, illustrative style with deep blues and purples. The design should be centered and work well on both black and white shirts. Include some geometric elements and stars around the wolf."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
2. 字体/文字设计
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a typography t-shirt design with the phrase \"Stay Wild\" in a bold, hand-lettered style. Add decorative flourishes and small nature elements like mountains and pine trees integrated into the lettering. Black ink style, suitable for light colored shirts."}],

    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
3. 复古风格设计
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a vintage retro t-shirt design for a fictional surf shop called \"Pacific Wave Co. Est. 1975\". Use faded colors, distressed textures, and 70s typography. Include a sunset, palm trees, and surfboard. Circular badge design with worn, screen-printed look."}],

    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
4. 极简设计
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a minimalist t-shirt design featuring a simple line art mountain range with a small sun. Single continuous line style, black only. Clean, modern, Scandinavian aesthetic. Small chest placement size, very simple and elegant."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
5. 插画风格设计
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create an illustrated t-shirt design of a Japanese koi fish swimming through waves. Traditional Japanese art style with modern twist. Use orange, red, white, and blue colors. Include cherry blossom petals and water splashes. Vertical composition for front of shirt."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
6. 乐队/音乐 T 恤设计
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a rock band t-shirt design for a fictional band called \"Electric Storm\". Heavy metal aesthetic with lightning bolts, skulls, and electric guitar. Gothic typography for the band name. Black and white with red accents. Tour dates style layout on the back."}],

    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
7. 运动队设计
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a sports team t-shirt design for \"Thunder Hawks Basketball\". Athletic style with an aggressive hawk mascot holding a basketball. Team colors navy blue and gold. Include \"2024 Champions\" text. Bold, dynamic composition with motion lines."}],

    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
8. 搞笑/梗图 T 恤设计
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a funny t-shirt design featuring a lazy sloth hanging from a branch with text \"Running Late Is My Cardio\". Cute cartoon style, pastel colors. The sloth should have a sleepy, unbothered expression. Light-hearted and humorous vibe."}],

    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
9. 抽象艺术设计
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create an abstract art t-shirt design with fluid shapes, bold brushstrokes, and vibrant colors. Contemporary art gallery style. Mix of geometric and organic forms. Colors: electric blue, hot pink, orange, and black. Large front print composition."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
10. 透明背景的可直接印制设计
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a print-ready t-shirt design with transparent background. Design a detailed skull with flowers growing from it (memento mori style). High contrast, clean edges suitable for screen printing. Output as PNG with transparency. Colors: limited to 4 spot colors - black, red, green, cream."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

最佳实践

设计指南
  • 摆放位置:考虑常见印花区域(正面中央、左胸、背面)
  • 分辨率:要求高分辨率,以确保印刷质量(相当于 300 DPI)
  • 颜色数量:指定有限的颜色数量,以降低丝网印刷成本
  • 对比度:确保设计适用于目标 T 恤颜色
  • 边缘:边缘应清晰分明,便于分色
印刷注意事项
  • 出血区域:在设计边缘留出余量
  • 底色层:对于深色 T 恤,注明是否需要白色底色层
  • 半色调:注明渐变是否应使用半色调图案
  • 套准:颜色较少的简单设计更容易套准
文件输出提示
  • 要求提供透明背景 PNG,以便灵活使用
  • 指明是否需要矢量风格输出
  • 注明目标印刷尺寸(例如,“标准正面印花宽 12 英寸”)

模式选择

“你需要快速草稿还是量产级设计?”

模式最适合速度质量
max最终可直接印制的设计、客户演示较慢最高
eco快速构思、设计探索、样稿迭代较快良好

多轮设计迭代

使用 session_id 通过对话完善设计:

# Initial concept
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a vintage motorcycle t-shirt design with a classic chopper"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "moto-design-001"
  }'

# Refine the design
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Add flames coming from the exhaust and put \"Born to Ride\" text in a banner below"}],

    "model": "eachsense/beta",
    "stream": true,
    "session_id": "moto-design-001"
  }'

# Request color variation
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a version with only black and gold colors for a premium look"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "moto-design-001"
  }'

设计系列(批量生成)

为一个系列生成多个设计:

# Design 1 - Mountain theme
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create an outdoor adventure t-shirt design with mountains and \"Explore More\" text. Earth tones, vintage camping aesthetic."}],

    "model": "eachsense/beta",
    "stream": true,
    "session_id": "outdoor-collection",
    "mode": "eco"
  }'

# Design 2 - Forest theme (same session for style consistency)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a matching design for the collection with forest and pine trees theme. Same style as the mountain design. Text: \"Get Lost\""}],

    "model": "eachsense/beta",
    "stream": true,
    "session_id": "outdoor-collection",
    "mode": "eco"
  }'

# Design 3 - Campfire theme
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Third design in the collection - campfire scene with stars. Same vintage outdoor style. Text: \"Under the Stars\""}],

    "model": "eachsense/beta",
    "stream": true,
    "session_id": "outdoor-collection",
    "mode": "eco"
  }'

T 恤设计提示词技巧

为获得最佳效果,请包含以下细节:

  1. 风格:插画、极简、复古、卡通、写实等
  2. 主题:主要视觉元素是什么
  3. 颜色:具体颜色或配色方案
  4. 目标服装:黑色 T 恤、白色 T 恤,或两者都要
  5. 印刷方式:丝网印刷、DTG 等
  6. 摆放位置:正面、背面、左胸、满版
  7. 文字:需要包含的任何字体设计
  8. 氛围:前卫、有趣、专业、艺术感等
示例提示词结构
"Create a [style] t-shirt design featuring [subject].
Use [colors] color scheme. Design should work on [garment color] shirts.
Include text: \"[text]\". [Additional requirements].
Output as [format] for [print method]."

错误处理

错误原因解决方案
Failed to create prediction: HTTP 422余额不足在 eachlabs.ai 充值
内容政策违规内容被禁止调整提示词以遵守内容政策
超时生成过程复杂将客户端超时设置为至少 10 分钟

相关技能

  • each-sense - 核心 API 文档
  • product-photo-generation - 产品模型图和照片
  • image-generation - 通用图像生成

评论

支持 Markdown