Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sn-infographic

БесплатноБез исполняемых скриптовНе проверен

Generates professional infographics with various layout types and visual styles. Analyzes content, recommends layout and style, and generates…

OpenSenseNovaот OpenSenseNova★ 6 124 звезды на GitHub

Об этом скилле

sn-infographic

Info graphic generation scene skill (tier 1), relying on the sn-image-generate, sn-image-recognize, and sn-text-optimize tools provided by sn-image-base (tier 0).

Features:

  • Evaluation of prompt quality (auto mode)
  • Prompt expansion (force/auto mode)
  • Multiple rounds of image generation and VLM review
  • Output the best result based on quality ranking

Input Specification

Parameter Type Default Value Description
user_prompt string Required Original user request. UTF-8 text; may include Markdown, URLs, or structured data. Length bounded only by the underlying LLM context budget.
max_rounds int 1 Maximum number of generation rounds. Valid range: 1–8. When max_rounds=1, the Step 3 VLM review and the early-termination check are both skipped.
output_mode string friendly friendly: one-line content description + rank=1 single image
verbose: full quality ranking + timing stats + all images (ordered by rank)
prompts_expand_mode string auto auto: evaluate user_prompt quality first; enter Step 2 expansion only when it falls short
force: skip evaluation, always execute Step 2 expansion
disable: skip Step 2, use user_prompt directly as expanded_prompt
aspect_ratio string inferred (16:9) Set by Main Agent when the user states an explicit supported ratio (e.g. 16:9 / 9:16, optionally via 宽高比 / 画面比例 / aspect ratio); otherwise left unset and the Worker infers it in Step 0 from user_prompt (orientation / scene cues) per references/runtime-parameters.md.
image_size string inferred (2k) Set by Main Agent when the user states an explicit size (2k / 4k); otherwise the Worker infers it in Step 0 (currently a single option, 2k). 4k is supported when SN_IMAGE_GEN_MODEL=sensenova-u1.6-lite; other models may reject it and the skill surfaces that error.

Who extracts what: Main Agent parameter extraction resolves max_rounds, output_mode, prompts_expand_mode, and aspect_ratio / image_size (each only when the user gives an explicit value). aspect_ratio and image_size without an explicit value are inferred by the Worker in Step 0.

API Configuration

All API calls in this skill are executed through the sn_agent_runner.py of the sn-image-base skill, with authentication parameters using default values (CLI > environment variables > built-in defaults),无需显式传入。

Call Type Tool Authentication Parameters Description
LLM sn-text-optimize (evaluation/expansion) Default reads SN_TEXT_API_KEY -> SN_CHAT_API_KEY -> SN_API_KEY Built-in default points to Sensenova internal network service
VLM sn-image-recognize (image review) Default reads SN_VISION_API_KEY -> SN_CHAT_API_KEY -> SN_API_KEY Built-in default points to Sensenova internal network service
Image Generation sn-image-generate Default reads SN_IMAGE_GEN_API_KEY -> SN_API_KEY; SN_IMAGE_GEN_API_KEY is only needed for image-specific override Uses image generation configuration of sn-image-base

When encountering MissingApiKeyError or needing to specify a model: pass explicitly via CLI parameters, parameter reference $SN_IMAGE_BASE/references/api_spec.md.

$SN_IMAGE_BASE path explanation: $SN_IMAGE_BASE is the installation directory of the sn-image-base skill (SKILL.md exists). The agent can locate this path by skill name sn-image-base in the list of installed skills.

Architecture: Main Agent + Worker Agent

This skill uses a two-tier agent architecture:

Role Responsibility
Main Agent Receive user request, normalize parameters, send preflight, start Worker, collect results, send text and images to user
Worker Agent Execute the generation pipeline (expand → multiple rounds of generation + review → sort), return structured JSON

Responsibility Boundaries:

  • Worker Agent does not send any messages to the user directly, only returns structured JSON
  • Main Agent is responsible for sending all user-visible messages
  • Worker Agent's last message must be and only be the JSON string defined in the Return Contract
  • Worker Agent's internal VLM calls always execute directly, without spawning subagents

Workflow

Main Agent Workflow

  1. Parameter extraction from the user request, in three passes:
    1. Inline KV directives — parse tokens of the form key=value where key ∈ {max_rounds, output_mode, prompts_expand_mode, aspect_ratio, image_size}; strip recognized tokens from the user message, and the remainder becomes user_prompt. Example: `"生成一张信息
Полный SKILL.md на GitHub

Установить sn-infographic в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/analysis-framework.mdreferences/base-prompt.mdreferences/evaluation-standard.mdreferences/layout-style-selection.mdreferences/layouts/asymmetry.mdreferences/layouts/axial-expansion.mdreferences/layouts/bento-grid.mdreferences/layouts/big-typography.mdreferences/layouts/binary-comparison.mdreferences/layouts/breaking-the-grid.mdreferences/layouts/bridge.mdreferences/layouts/center-focus.mdreferences/layouts/chapter-layout.mdreferences/layouts/character-guide.mdreferences/layouts/circular-flow.mdreferences/layouts/collage-glitch.mdreferences/layouts/comic-strip.mdreferences/layouts/comparison-matrix.mdreferences/layouts/conflict-contrast.mdreferences/layouts/containerization.mdreferences/layouts/dashboard.mdreferences/layouts/data-landscape.mdreferences/layouts/deconstruction.mdreferences/layouts/diagonal-composition.mdreferences/layouts/disrupted-flow.mdreferences/layouts/edge-tension.mdreferences/layouts/editorial-vogue.mdreferences/layouts/emotional-gradient.mdreferences/layouts/f-pattern.mdreferences/layouts/flashback.mdreferences/layouts/four-quadrant-grid.mdreferences/layouts/frame-composition.mdreferences/layouts/full-bleed-image.mdreferences/layouts/full-illustration.mdreferences/layouts/funnel.mdreferences/layouts/gallery-style.mdreferences/layouts/generous-margins.mdreferences/layouts/golden-ratio-split.mdreferences/layouts/hard-alignment.mdreferences/layouts/header-body.md

FAQ

Что делает скилл sn-infographic?

Generates professional infographics with various layout types and visual styles. Analyzes content, recommends layout and style, and generates publication-ready infographics. Use when user asks to create "infographic", "信息图", "visual summary", or "可视化".

Как установить скилл sn-infographic?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sn-infographic запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить sn-infographic с