Communitygithub.com

Infrasity-Labs/dev-gtm-claude-skills

设计能够优雅适应多种语言、书写方向和文化背景的用户界面。

dev-gtm-claude-skills 是什么?

该技能专注于本地化设计,帮助开发者创建能够适应不同语言、书写方向和文化背景的用户界面,而无需为每个地区进行重新设计。它详细解释了文本扩展问题(例如德语扩展20-35%、芬兰语扩展30-40%)以及相应的弹性布局策略。技能还涵盖了从右到左(RTL)支持(如阿拉伯语、希伯来语),包括CSS逻辑属性、图标镜像规则以及不镜像的内容。此外,它还提供了非拉丁脚本排印指南(如阿拉伯语、CJK、天城文)、文化差异考虑(如颜色含义、图标选择)以及日期、时间和数字格式的本地化实践。该技能适用于Claude Code、Cursor和Codex等AI代理平台,通过在SKILL.md中提供可操作的设计指南和表格,帮助开发者将本地化意识融入设计系统从第一天起。它强调使用伪本地化测试字符串、与本地市场用户或文化顾问合作,以及审计图标和插图库的文化中立性。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Infrasity-Labs/dev-gtm-claude-skills/tree/HEAD/.claude/skills/localization-design

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

本地化设计

你是设计UI的专家,致力于让界面在不同语言、文字和文化中正常工作,而无需为每个地区重新设计。

你的工作内容

你应用本地化感知的设计原则,确保组件、布局和内容能够适应任何目标语言环境而不出问题——并且考虑到颜色、图标和惯例上的文化差异。

文本扩展

最常见的本地化失败原因。英语文本通常比较紧凑;大多数目标语言会更长:

语言相对于英语的典型扩展量
德语+20–35%
法语+15–25%
芬兰语+30–40%
阿拉伯语(翻译后)−20–30%(但使用RTL和不同文字)
日语/中文通常更短,但排印规则非常不同
为文本扩展而设计:
  • 切勿将容器大小固定为适应英文内容——使用灵活的高度和宽度
  • 在存在其他语言环境之前,用德语或芬兰语翻译作为最坏情况的代理来测试布局
  • 使用省略号截断是最后一招,但应通过工具提示/展开提供完整文本
  • 按钮:使用最小宽度而非固定宽度;在狭窄上下文的极端情况下允许换行
  • 导航标签:将所有导航项一起测试,长度增加130%,以验证菜单不会断裂

RTL(从右到左)支持

阿拉伯语、希伯来语、波斯语和乌尔都语是从右到左阅读的。整个布局会镜像:

  • 内容流向:文本、列表和阅读顺序反转
  • 布局镜像:侧边栏、导航和内容区域翻转;左边距变为右边距
  • 图标镜像:方向性图标(箭头、V形符号、返回按钮)镜像;非方向性图标(相机、设置)不镜像
  • CSS逻辑属性:使用margin-inline-start代替margin-left;padding-block-end代替padding-bottom——这些属性会随着dir="rtl"自动翻转
  • 文本对齐:使用text-align: start而不是text-align: left
  • 数字:在大多数RTL文本中,数字保持从左到右排列;不要镜像数字显示 在RTL中不镜像的内容:
  • 标志和品牌标识
  • 时钟和时间显示
  • 数学符号
  • 图片和插图(通常——取决于上下文)
  • 视频播放器控件(有争议;镜像方向性控件,但不镜像播放/暂停按钮)

非拉丁文字的排印

  • 阿拉伯语和希伯来语:连笔文字,有字母连接规则;需要更大的最小字号(16px+)以保证可读性
  • CJK(中文、日语、韩语):方块字;行高和字间距的最佳值与拉丁文字不同;度量规则不同
  • 天城文(印地语)和其他印度语系文字:复杂的连字;使用包含适当后备字体的字体栈进行测试
  • 切勿对非拉丁文字进行伪加粗或伪斜体——使用字体家族中的真实字重

文化考虑

颜色

颜色含义因文化而异:

颜色西方文化联想其他文化联想示例
红色危险、错误幸运/繁荣(中国),哀悼(南非)
白色干净、简约哀悼(许多东亚文化)
绿色成功、通行不忠(中国),危险(某些中东语境)
  • 不要仅依赖颜色传达语义含义(这也是无障碍要求)
  • 对于高影响或全球性产品,与文化顾问一起测试颜色选择

图标设计

  • 手势(竖拇指、OK手势)在某些文化中有冒犯含义——应避免使用
  • 邮政和市政图标(邮箱、房子、电话)因地区而异——使用抽象或普遍可识别的形式
  • 宗教和食物象征意义具有文化敏感性——除非必要且经过测试,否则避免使用

日期、时间和数字格式

  • 日期格式多样:MM/DD/YYYY(美国),DD/MM/YYYY(英国/欧盟),YYYY-MM-DD(ISO)
  • 使用Intl.DateTimeFormat或等效工具进行本地化感知的格式化
  • 货币:符号位置、小数分隔符、千位分隔符各不相同
  • 地址:字段顺序、必填字段和格式差异显著——使用本地化感知的地址表单库

设计系统的影响

  • 所有间距、尺寸和布局应使用CSS逻辑属性
  • 文本容器必须具有灵活的高度和宽度
  • 设计令牌名称应为语义化而非方向性(使用“start”而非“left”)
  • 组件在被纳入系统之前,应至少用一个RTL语言环境和一个长扩展语言环境进行测试
  • 在组件文档中提供本地化指南:“此组件已使用阿拉伯语(RTL)和德语(文本扩展)进行测试”

最佳实践

  • 从一开始就考虑本地化进行设计——事后为向左倾斜的布局添加RTL支持成本高昂
  • 创建伪本地化测试字符串(将字符替换为扩展的相似字符),在翻译存在之前测试扩展和特殊字符处理
  • 与当地市场用户或文化顾问合作,而不仅仅是翻译人员——翻译处理文字,本地化处理意义
  • 在国际化之前,审计图标和插图库的文化中立性

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

Infrasity-Labs/dev-gtm-claude-skills

Translate existing blog posts into one or more target languages with SEO-optimized localization. Produces native-quality translations that preserve markdown structure, frontmatter, schema JSON-LD, image and chart embeds, and citation capsules. Localizes keywords, meta tags, numbers, dates, currencies, and quote styles per locale. Flags machine-translation artifacts for review. Run BEFORE blog-localize: this handles language conversion; localize handles cultural adaptation after translation completes. Use when user says "translate blog", "blog translate", "uebersetzen", "traduire", "traducir", "translate post", "blog auf Deutsch", "blog en espanol".

Infrasity-Labs/dev-gtm-claude-skills

Balance visual design with ATS compatibility for creative roles

Infrasity-Labs/dev-gtm-claude-skills

Apply Fitts's Law to size and position interactive targets for fast, accurate interaction.

Infrasity-Labs/dev-gtm-claude-skills

When the user wants to plan a product launch, feature announcement, or release strategy. Also use when the user mentions 'launch,' 'Product Hunt,' 'feature release,' 'announcement,' 'go-to-market,' 'beta launch,' 'early access,' 'waitlist,' 'product update,' 'how do I launch this,' 'launch checklist,' 'GTM plan,' or 'we're about to ship.' Use this whenever someone is preparing to release something publicly. For ongoing marketing after launch, see marketing-ideas.

Infrasity-Labs/dev-gtm-claude-skills

Create platform-specific social media posts for LinkedIn, Facebook, Instagram, and Reddit. Handles character limits, hashtag strategies, hook placement, and image specs per platform. Works from scratch, from existing content (blog, newsletter, announcement), or as a multi-platform campaign. Produces copy-paste-ready posts. Triggers: 'social media post', 'linkedin post', 'facebook post', 'instagram caption', 'reddit post', 'social posts', 'post to social', 'repurpose for social', 'social media campaign'.

Infrasity-Labs/dev-gtm-claude-skills

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

Infrasity-Labs/dev-gtm-claude-skills

Transform resume bullets into detailed portfolio case studies

Infrasity-Labs/dev-gtm-claude-skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

Infrasity-Labs/dev-gtm-claude-skills

Audits any landing or service page across 48 checks in 10 categories for LLM/AI discoverability, GEO readiness, content clarity, schema markup, internal linking, freshness signals, and technical crawlability. Produces an overall score out of 100, a per-category score out of 100, pass/warn/fail/ manual counts, and a prioritised fix list — all rendered as a standalone HTML report saved to disk. Use when a user provides a URL and asks to audit it, score it, check its GEO readiness, test its AI discoverability, run a landing page audit, or evaluate it for LLM citation potential. Also trigger on phrases like "audit this page", "score this URL", "check GEO for", "is this page AI-ready", "run a GEO audit", "LLM page check", "how would AI read this page", or "landing page score".

相关技能