算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
translate-content【设计与创意】Translate marketing content using the brand glossary and do-not-translate terms, with quality scoring. "translate this into Japanese"
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Script location. If your host does not set
${CLAUDE_PLUGIN_ROOT}, the scripts are in this plugin'sscripts/folder, next toskills/. Run them with Python 3.10 or newer:python, orpython3wherepythonis not found (macOS, many Linux systems).
Translate marketing content with capability-first service routing and quality assurance. For each target language the router names what the language family needs from a translation service (native script-aware models for Indic targets, formality registers for European, segmentation and script mixing for CJK) and resolves a concrete service at run time — from the brand's recorded preference or from translation MCP servers the user has already connected. When nothing resolves, translation proceeds through the harness's own multilingual capability with mandatory quality scoring — no product is ever named from memory, and none is required. Brand voice, formatting, and key terminology are preserved throughout.
Beyond literal translation, this command analyzes content for elements that require transcreation rather than translation: idioms, wordplay, humor, emotional calls-to-action, and cultural references. When these are detected (or when the user explicitly requests transcreation), it produces multiple creative options with intent-preservation scoring, ensuring the emotional impact and marketing effectiveness carry across languages. Every translation is quality-scored and brand-voice-checked before delivery.
The user must provide (or will be prompted for):
true to force transcreation approach on all content, regardless of content analysis. Useful when the user knows the content is highly creative or culturally sensitiveformal or informal, for languages with formal/informal registers (German Sie/du, French vous/tu, etc.). Passed to the resolved translation service when it supports register control; otherwise enforced in the translation instructions and verified in review. If omitted, defaults to brand profile preference or formal~/.claude-marketing/brands/_active-brand.json for the active slug, then load ~/.claude-marketing/brands/{slug}/profile.json. Extract language configuration — do_not_translate term list, translation_preferences (preferred services per language pair, formality defaults, glossary), and locale_formatting rules (date formats, number separators, currency symbols). Load compliance rules for target markets from skills/context-engine/compliance-rules.md. Check for guidelines at ~/.claude-marketing/brands/{slug}/guidelines/_manifest.json — if present, load voice-and-tone rules (these inform brand voice scoring of the translation). Check for agency SOPs at ~/.claude-marketing/sops/. If no brand exists, ask: "Set up a brand first (/digital-marketing-pro:brand-setup)?" — or proceed with defaults.python "${CLAUDE_PLUGIN_ROOT}/scripts/language-router.py" --action detect --text "{content_or_path}" to identify the source language with confidence score. Report the detected language to the user for confirmation if confidence is below 95%.python "${CLAUDE_PLUGIN_ROOT}/scripts/language-router.py" --action route --source "{source_lang}" --target "{target_lang}" --brand {slug}. The result names the capability_kind and service_criteria for the language family and resolves a concrete service ONLY from the brand's recorded preference (basis: brand-preference) or the user's connected translation MCP servers (basis: connected-servers; with multiple candidates, pick the one best matching the criteria and offer to record the choice via /digital-marketing-pro:language-config). Report the resolved service and its basis to the user. If basis: unresolved, say so plainly and follow the payload's resolution ladder — never name a service from memory and never instruct installing one.skills/context-engine/transcreation-framework.md. For each flagged element, document the original intent, emotional tone, and desired audience response to guide creative adaptation.basis: brand-preference or connected-servers): call that server. Use its capabilities where they exist — formality/register parameters, glossary or do-not-translate enforcement, tag handling for HTML/XML preservation, script or dialect preferences for Indic targets, variant selection for Chinese. Where the server lacks a capability the criteria call for, enforce it in the instructions you send and verify it in the scoring step.basis: unresolved): translate with the harness's own multilingual capability, applying the route result's service_criteria yourself (register, script fidelity, variant). This path is legitimate, not a degraded fallback — but the step-6 quality score and step 7's below-85 human-review flag are non-negotiable for it.python "${CLAUDE_PLUGIN_ROOT}/scripts/language-router.py" --action score --source "{source}" --target "{target}" --original "{source_content}" --translated "{translated_content}" to assess quality across dimensions:
python "${CLAUDE_PLUGIN_ROOT}/scripts/brand-voice-scorer.py" --brand {slug} --text "{translated_content}" to assess whether the translated content maintains brand voice characteristics. Flag any voice drift with specific examples and suggestions.A structured translation delivery containing: