文生图 + 矢量叠加

SKILL前端设计
前端设计 未标注权限 许可证不明确
安装这个技能

AI 文生图出氛围背景(星空/星云/光效),再用代码(PIL)精确绘制矢量叠加层(文字/数量/真实星座形状/独立配色),最终合成壁纸级清晰度的成品图。 专治纯文生图的四大痛点: • 文字乱码 / 中文变乱码 • 数量不对(让画 12 个却只出 8 个) • 形状失真(星座连线是瞎画的) • 放大发虚(1280 拉到 2K 就糊) 适用场景:带文字的壁纸/海报、需要准确数量的图标排列、真实星座/地图等矢量形状叠加、任何"AI 出氛围 + 代码出精度"的合成需求。

一句话选型结论

按资料字段整理

文生图 + 矢量叠加是前端设计类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类前端设计 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_eef95416/txt2img-vector-overlay
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

前端设计
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_eef95416仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791697996
正文体量7.4 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
出页面与组件

按描述生成页面结构和组件草稿。

调整样式与布局

改间距、配色与响应式布局。

生成设计说明

把设计稿整理成开发能接的说明。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在前端设计场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
文生图 + 矢量叠加当前 未标注权限 未标注 未标注 未标注 有
前端设计 只读 GitHub 仓库 882.3 万 Codex、Claude、Cursor 有
Vercel 组合模式 联网访问 GitHub 仓库 385.9 万 Codex、Claude、Cursor 有
Vercel React native skills 前端 只读 GitHub 仓库 246.9 万 Codex、Claude、Cursor 有
adapt 搜索 浏览器控制 GitHub 仓库 202.7 万 Codex、Claude、Cursor 有
使用我的浏览器 浏览器控制 GitHub 仓库 184.8 万 Codex、Claude、Cursor 有

SKILL.md 全文

7.4 KB
模型实际读到的说明书原文,来自技能仓库

文生图 + 矢量叠加 (txt2img-vector-overlay)

Purpose

Generate artwork that looks like AI diffusion art but is actually precise and reproducible:
a text-to-image model paints the atmosphere (starfield, nebula, Earth limb glow, gradients),
while a code-drawn vector layer (PIL) paints the structure that diffusion cannot be trusted
with — legible text, exact element counts, accurate constellation/icon shapes, crisp labels.

The two layers are composited. This is the only reliable way to get, for example, "12 zodiac
houses each in a distinct bright color with correct Chinese names on a deep-space background at
2K resolution" — diffusion alone always garbles text, miscounts, and softens at large sizes.

When to use

  • User wants AI-generated visuals and needs correct/legible text, labels, or captions.
  • User needs a fixed count of repeated elements (12 houses, 7 chakras, 24 solar terms…).
  • User wants accurate shapes from real data (IAU constellations, maps, schematics).
  • User wants wallpaper-grade sharpness (2K/4K) from a model capped at small outputs.
  • Any "make me a poster/cover/wallpaper/diagram that looks AI-generated but must be correct".

Equivalent user phrasings: "做一张…壁纸/海报,文字要清楚", "用 AI 出图但把星座/图标/文字叠上去",
"文生图背景 + 矢量贴图叠加".

Core architecture (the key insight)

Key insight — split the responsibility. Let diffusion do what it is good at (texture, lighting, mood, organic detail). Let code do what it is deterministic at (text, count, geometry, color, layout). Never ask diffusion to "draw 12 correctly-named items" — it cannot; draw them in PIL and paste.

This split is non-negotiable for the quality bar above. The failure modes of the naive
"just prompt it" approach are documented in references/pitfalls.md.

Three-phase workflow

Phase A — Generate the atmospheric background (diffusion / text-to-image)

  1. Pick a text-to-image model. For local/cheap high-quality atmosphere, StepFun step-2x-large
    works well (see references/stepfun-api.md). Use the model only for the background — no
    zodiac, no text, no labels in the prompt. Prompt for pure environment: deep-space starfield,
    nebula gradient, Earth limb with thin blue atmospheric glow, etc.
  2. Generate several variants (4–6) with different color moods (emerald / purple / crimson /
    aurora). Keep the tidy background clean — no foreground elements, because they get covered by
    the overlay anyway.
  3. Save backgrounds as *.png into your working directory's bg/ subfolder. Default working
    dir is ./txt2img_work under the current shell; override with the TXT2IMG_WORK env var.

Phase B — Prepare the vector overlay data

  1. Fonts: the compositor auto-detects a CJK font (Windows simhei.ttf by default, with
    fallbacks for macOS PingFang and Linux Noto/WenQuanYi) and a symbol font. Override with
    FONT_CN_PATH / FONT_SYM_PATH if needed.
  2. Real shapes (optional but recommended): the IAU constellation line data is bundled in
    assets/constellations.lines.min.geojson, so no download is required at runtime. To refresh
    it, run scripts/fetch_iau_lines.py (one-time). It maps a 3-letter id (Ari, Tau, …) to real
    celestial line geometry. See references/iau-data.md for the id table.
  3. Layout config: decide arc vs grid, item box size, label offsets, per-item color. Edit the
    ITEMS list and LAYOUT constants in scripts/compose_overlay.py.

Phase C — Composite with PIL (vector redraw, not naive upscale)

Run scripts/compose_overlay.py. It:

  • Opens each background from bg/, LANCZOS-upscales the raster to the target resolution.
  • Redraws the structure layer as true vectors at target resolution (constellation lines,
    stars, labels) so it stays pixel-crisp — never upscales the vectors themselves.
  • Handles the antimeridian wrap bug (Virgo etc. stored across ±180° longitude) automatically.
  • Composites vector layer over background and saves the final PNG to out/.
C:/Users/Administrator/.workbuddy/binaries/python/envs/pillow/Scripts/python.exe \
    scripts/compose_overlay.py

The script reads paths/resolution/layout from its own CONFIG block at the top; override any
path with TXT2IMG_WORK / TXT2IMG_LINES / FONT_CN_PATH / FONT_SYM_PATH. It expects a Pillow
venv (create one if missing, see references/stepfun-api.md "Pillow venv").

Hard rules

  • No text in the diffusion prompt. All text/labels come from the PIL layer. Diffusion text is
    always garbled.
  • No counting in diffusion. If the design needs N exact items, draw N items in code.
  • Upscale by redrawing vectors, not by stretching. Stretching a 1280×800 render to 2K makes
    everything soft; redraw lines/text at the target size.
  • Reduce the model's foreground load. A clean background with ~15% atmospheric glow composites
    far better than a busy one; trim glow by 5–8% if foreground elements feel cramped.
  • Spacing: keep each item's drawn box well under the center-to-center spacing. In the zodiac
    build, BOX=82 with ~105px pitch left a clear ~31px gap — tighten only after verifying.

Bundled resources

Path What
scripts/compose_overlay.py Generic arc/grid compositor: bg upscale + vector overlay + antimeridian fix. Edit ITEMS/LAYOUT.
scripts/fetch_iau_lines.py (Optional) Refreshes the bundled IAU constellation line geojson.
assets/constellations.lines.min.geojson Real IAU constellation line data (bundled, no network needed at runtime).
references/stepfun-api.md StepFun text-to-image API specifics (endpoint, key via env, image-only model, resolution cap, Pillow venv).
references/pitfalls.md Every failure mode hit in the reference build and how the architecture avoids it.
references/iau-data.md 3-letter IAU id → name table + how coordinates are stored (antimeridian note).

Optional: Ardot as the overlay surface

If the user is working inside the Ardot design canvas (see skills ardot-design-core /
ardot-design-router), the same split applies: use text-to-image for the canvas background
fill, then place the structure as Ardot vector nodes (text + SVG paths) instead of PIL. Prefer
PIL for batch/automated wallpaper generation; prefer Ardot when the user wants an editable design
file. Do not delegate either path to sub-agents.

Changelog

  • 1.0.0 — Initial public release. Portable (env-configurable paths, cross-OS font fallback,
    bundled IAU geojson). Captures the proven "background = diffusion, structure = vectors" split
    with antimeridian-safe constellation rendering and vector-redraw upscaling.

常见问题

5 问
答案由本站依据条目字段整理
文生图 + 矢量叠加怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_eef95416/txt2img-vector-overlay。安装方式为未标注。装完刷新技能列表或重开客户端。

文生图 + 矢量叠加支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

文生图 + 矢量叠加权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

文生图 + 矢量叠加收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

文生图 + 矢量叠加用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。