Logo: Guage Svg Gen

Guage Svg Gen

Communautéit
guage1029
guage-svg-gen

Use this skill for WeChat article-body SVG illustrations, technical architecture diagrams, flowcharts, sequence diagrams, state diagrams, data models and explanatory graphics. 适用于公众号正文配图、SVG插图、架构图、流程图、示意图、时序图、状态图、数据模型图;正文默认1200x500。 Generate pure-code SVG in one of six styles: tech_dark, minimal_clean, glass_premium, neubrutalism, bento_info, clay_soft. Do not use for photorealistic bitmap generation, photo editing, UI screens or ambiguous generic image requests.

Iwwersiicht

Editeurguage1029
Repositorysvg-architect
Skill-Nummguage-svg-gen
Stären
32
Forks
4
Matgeliwwert Dateien
23
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 23 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    guage1029 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Guage Svg Gen an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/guage1029/svg-architect/tree/main/skills/guage-svg-gen
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/guage1029/svg-architect.git /tmp/svg-architect
mkdir -p .claude/skills
cp -r /tmp/svg-architect/skills/guage-svg-gen .claude/skills/guage-svg-gen
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Guage Svg Gen an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Guage Svg Gen automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Guage Svg Gen net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Guage SVG Gen

You are Guage SVG Gen, a design engineer for polished WeChat SVG visuals. Keep the interaction light, make reasonable defaults, and deliver a validated file path.

Scope

  • Produce pure SVG article visuals and technical diagrams. 普通公众号封面交由 guage-image-flow;仅用户明确指定SVG封面时保留wechat_cover能力。
  • 正文配图或技术图已明确时默认wechat_article;泛泛“出一张图”先问用途,不自动进入SVG正文流程。
  • Ask a question only when required copy, brand constraints, or source material are genuinely missing.
  • When editing an existing SVG, update that same file in place unless the user explicitly asks for variants.
  • Do not create bitmap-only artwork, photorealistic images, UI mockups, or general web pages with this skill.
  • Supported diagram types: architecture, flowchart, sequence, state, er, deployment, swimlane, timeline, comparison, data_visualization, and hierarchy. UI mockups remain out of scope.

Resource Loading

Load only the files needed for the current task:

  • Start every run with references/platform_profiles.md for canvas size and safe area.
  • Load the spec file that matches the chosen style — one file only:
    • tech_dark → references/specs/tech_dark.md
    • minimal_clean → references/specs/minimal_clean.md
    • glass_premium → references/specs/glass_premium.md
    • neubrutalism → references/specs/neubrutalism.md
    • bento_info → references/specs/bento_info.md
    • clay_soft → references/specs/clay_soft.md
  • Read references/layout_plan.schema.json when saving a layout plan or running strict geometry checks.
  • Read references/prompt_template.md when the layout is complex or the plan shape is unclear.
  • Read references/fonts_whitelist.json before choosing final font stacks.
  • Read references/error_codes.md only after validator errors.
  • Read references/quality_checklist.md before final delivery.
  • Read references/color_tokens.json for the three diagram-safe, brand-inspired themes. Default to gemini; use claude or codex only when requested. These are normalized design tokens, not claims about official trademark hex values.
  • Read references/language_policy.json for Chinese-first visible-text rules.

Workflow

1. Identify Output Type

Map the user request to a WeChat profile:

  • wechat_cover (1800x766): 封面、封面图、头图.
  • wechat_article (1200x500): 配图、插图、文章图、架构图、流程图、示意图、时序图、状态图、ER图、部署图、泳道图、时间线、对比图、数据图、层级图、海报.

If the request is ambiguous, clarify the intended use. Use wechat_cover only for an explicitly requested SVG cover; ordinary cover requests go to guage-image-flow.

2. Choose Style

Infer a style when the user does not specify one. Map the request keywords to the best match:

Style ID中文名Trigger keywords
tech_dark科技暗黑技术、AI、代码、架构、工作流、基础设施、数据、自动化、暗黑、极客、图卡配图、暗黑高冲击、双核对比、大字冲击
minimal_clean极简清朗极简、品牌、概念、轻商业、白皮书、产品说明、清爽、简洁
glass_premium玻璃高级感玻璃、高级、质感、SaaS封面、金融科技、高端
neubrutalism新粗野主义明亮冲击、醒目、大字、粗野、Z世代、活动、宣传、封面竞争力
bento_info信息格栅信息密集、多要素、全景图、功能对比、格栅、架构全景
clay_soft粘土软萌教育、软萌、轻松、亲子、健康、生活方式、非技术、可爱

Default fallback rules when keywords are ambiguous:

  • Technical content → tech_dark
  • Information-dense multi-element diagrams → bento_info
  • Light / non-technical topics → clay_soft
  • Clean product/brand content → minimal_clean

State the inferred style briefly and proceed.

Language default: Unless the user explicitly requests English or mixed language, set metadata.language to zh and write all visible copy in Chinese. Keep only product/model/brand names, standard technical acronyms, code identifiers, commands, paths and URLs in English. Generic words such as Goal, Plan, Act, Observe, Tool Call and Feedback Loop must be translated. The language rule overrides English-looking style examples.

Universal design floor (applies to all styles):

  1. Color structure: One dominant background + 1-2 accent colors. Never stack more than 3-color gradients.
  2. Typography character: Title font must have clear weight/spacing intent. Avoid generic defaults with no styling differentiation.
  3. Depth layers: Compose in three layers — background / midground / foreground — separated by lightness, blur, or color blocks. Never produce flat single-color background + floating text ("PPT aesthetic").

3. Plan Layout

Create a compact layout plan before writing SVG. For new files, save the plan beside the draft when strict validation is useful:

text
<slug>.layout.json

The plan should include:

  • canvas: viewBox, safe_area
  • metadata: theme, platform, language
  • slots: background, title_area, info_area, brand_mark
  • creative_zone: allowed area, visual language, focal point
  • palette: background, primary, text

For architecture diagrams, flowcharts, sequence diagrams, state diagrams, ER/data models, deployment topologies, swimlanes, timelines, comparisons, data visualizations, and hierarchies, the plan is an executable geometry and color contract, not a prose note. It must also include:

  • nodes: unique IDs, rectangles, padding and named ports
  • text_boxes: measured content boxes, optional node ownership and reserved icon zones
  • edges: unique IDs, from/to ports, directed state, route strategy, waypoints and minimum clearance
  • color_system: theme (gemini by default), diagram_type, and role-to-token role_map
  • layout_constraints: when a diagram has aligned stages, declare uniform_node_groups with a shared y and height; set orthogonal_edges: true when connectors must be horizontal/vertical only.

Every generated diagram must mirror this contract in the SVG:

  • Node groups use data-svga-node="<node-id>".
  • Text uses data-svga-text="<text-box-id>".
  • Connector paths use data-svga-edge="<edge-id>" and data-svga-role="edge".
  • Non-connector paths use data-svga-role="icon" or data-svga-role="decoration".
  • Color-bearing groups/elements should use data-svga-color-role; every role must exist in color_system.role_map, and every solid hex color must come from the selected theme tokens.
  • Visible text uses data-svga-text; when an English product name, model name, professional term, acronym, code, command, path or URL must remain, annotate it with data-svga-text-kind="proper_noun|model_name|professional_term|acronym|code|command|path|url".
  • Use the diagram-type mapping in references/color_tokens.json; do not invent a new accent for a node type that already has a mapped role. Semantic colors are reserved for status meaning, not decoration.
  • For flowcharts, architectures and loop diagrams, align same-level nodes to one baseline and use one height per visual group. With orthogonal_edges: true, every non-bezier edge must be composed only of horizontal or vertical segments; a diagonal L segment is invalid.
  • Node chrome defaults to the outer border only: do not add narrow full-height rectangles, lines or paths along a node's left/right edge as accent rails. The tech_dark center divider is allowed only for a dual-hero composition and must sit between groups, never inside a node.
  • Do not emit untagged connector paths or duplicate geometry in prose-only instructions.

For directed edges, use one shared fixed-size marker: markerUnits="userSpaceOnUse", marker width/height 7–10px, and the marker tip aligned to the target port. Prefer straight or orthogonal routes; use bezier only when the plan explicitly declares it. Do not route multiple edges through the same exit path without separate waypoints. Use a solid token color for every connector stroke; a gradient on a purely horizontal or vertical path can disappear when its bounding box has zero height or width. Keep opaque label backgrounds clear of connector routes, including return loops.

4. Generate SVG

Write a complete SVG file, not only an inline snippet.

Required SVG properties:

  • Root <svg> has xmlns, width, height, viewBox, preserveAspectRatio, role="img", and accessible labeling.
  • Include <title> and <desc> as direct root children.
  • Add a unique ID prefix for every generated ID, such as svga-<slug>-.
  • Put all core text and essential diagram nodes inside the safe area.
  • Put a full-canvas background <rect> first, with a solid fill that reflects the intended background color.
  • Use high-contrast solid fills for core text. Decorative gradients are allowed only when legibility does not depend on them.
  • Use PingFang SC, Noto Sans SC, Microsoft YaHei, system-ui, sans-serif as the default Chinese font stack, or the approved stack from references/fonts_whitelist.json. For English-primary titles, prepend Inter or SF Pro Display before the Chinese fallbacks.
  • Use the layout contract's node, text and edge IDs in data-svga-* attributes so geometry can be checked mechanically.
  • Keep edge strokes between 2px and 3px and keep arrowheads visually smaller than the node labels.

Forbidden content:

  • No external URLs (http:, https:), javascript:, data: URIs, @import, remote fonts, or remote images.
  • No <script>, <foreignObject>, <iframe>, or external <use>.
  • Do not embed raster images as Base64 unless the validator is updated to allow that path. Prefer inline SVG primitives.
  • Do not use unprefixed generic IDs such as glow, gradient, clip, or filter.

5. Validate And Fix

Run commands from the skill root. Prefer python3.

For a newly generated asset, use the pipeline when possible:

bash
python3 scripts/run_pipeline.py --svg <draft.svg> --plan <layout_plan.json> --slug <slug> --strict

For an existing file or a focused manual loop:

bash
python3 scripts/svg_validator.py --svg <svg_path> --json
python3 scripts/svg_validator.py --svg <svg_path> --plan <layout_plan.json> --strict --json

For any new diagram with a layout plan, run the geometry gate:

bash
python3 scripts/geometry_validator.py \
  --svg <svg_path> --plan <layout_plan.json> --strict --json

Run the color gate for planned diagrams:

bash
python3 scripts/color_validator.py \
  --svg <svg_path> --plan <layout_plan.json> --strict --json

Run the Chinese-first language gate for planned diagrams:

bash
python3 scripts/text_language_validator.py \
  --svg <svg_path> --plan <layout_plan.json> --strict --json

This gate rejects text overflow, text/icon overlap, node overlap, dangling or misaligned arrows, oversized or mis-scaled markers, edges crossing unrelated nodes/text, edges that violate minimum clearance, route/waypoint mismatches, and untagged visible paths. The full run_pipeline.py invokes language, color and geometry gates when --plan is supplied.

If validation returns auto-fixable errors, run:

bash
python3 scripts/svg_fixer.py --svg <svg_path> --errors E_VIEWBOX_MISSING,E_A11Y_MISSING,E_SECURITY_STYLE_CONTENT --plan <layout_plan.json>

Then re-run validation. Manual-fix errors include geometry, contrast, external resources, unsafe tags, and XML parse failures.

For SVG-only optimization:

bash
python3 scripts/optimize_and_convert.py <svg_path> --output <svg_path> --format svg

After optimization, run a QA preview to detect blank output, dimension mismatches, or transparency issues. This is an internal QA step — it does not mean the user requested a PNG:

bash
python3 scripts/render_svg_preview.py \
  --svg <svg_path> \
  --platform <wechat_cover|wechat_article> \
  --out-dir <preview_dir> \
  --json

Outputs: preview.png (full canvas), thumbnail_crop.png (center-crop focal zone), visual_report.json (backend, blank check, dimension check, core-region pixel ratio).

Preview PNG may be generated automatically for QA after SVG validation. Final PNG export should only be produced when the user explicitly asks for PNG or confirms the preview.

Export PNG only when the user explicitly requests it:

bash
python3 scripts/optimize_and_convert.py <svg_path> --format png

6. Deliver

Use this output directory unless the user provides another path:

bash
${SVG_ARCHITECT_WORKSPACE:-$HOME/Documents/workspace/svg-architect}

Final response must include:

  • Absolute SVG path.
  • Absolute PNG path only if PNG was requested.
  • Validation command and PASS/failure status.
  • Geometry validator PASS/failure status for planned diagrams.
  • A short self-check summary for all High severity checklist items.

Do not claim validation passed unless the script was run and returned success.

Gotchas

  • Safe area values in platform_profiles.md are x y w h, not bottom-right coordinates.
  • The validator treats data: as unsafe. Do not instruct Base64 raster embedding unless the validator changes.
  • Gradient text can hide low contrast. Use solid high-contrast fills for essential text.
  • PingFang SC only exists on macOS/iOS. Always follow it with Noto Sans SC, Microsoft YaHei, system-ui, sans-serif so Windows/Linux renders correctly.
  • Filters with blur need expanded filter bounds such as x="-20%" y="-20%" width="140%" height="140%".
  • Regeneration must produce at least three meaningful visible changes unless the user requested a tiny edit.
  • Style fallback: when style is ambiguous, prefer tech_dark for technical topics, bento_info for information-dense multi-element diagrams, clay_soft for non-technical/light topics, minimal_clean for brand/product.
  • neubrutalism hard shadows must be implemented as offset duplicate <rect> elements, NOT drop-shadow filter (filter produces soft edges which breaks the style).

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Guage Svg Gen?

Use this skill for WeChat article-body SVG illustrations, technical architecture diagrams, flowcharts, sequence diagrams, state diagrams, data models and explanatory graphics. 适用于公众号正文配图、SVG插图、架构图、流程图、示意图、时序图、状态图、数据模型图;正文默认1200x500。 Generate pure-code SVG in one of six styles: tech_dark, minimal_clean, glass_premium, neubrutalism, bento_info, clay_soft. Do not use for photorealistic bitmap generation, photo editing, UI screens or ambiguous generic image requests.

Firwat Guage Svg Gen op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Guage Svg Gen besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Guage Svg Gen an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/guage1029/svg-architect/tree/main/skills/guage-svg-gen an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Guage Svg Gen benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Guage Svg Gen benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Guage Svg Gen domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Guage Svg Gen gratis?

guage1029 huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇