Agent Skillshome-assistant/frontend › ha-frontend-user-facing-text

ha-frontend-user-facing-text

GitHub

规范 Home Assistant 前端用户界面文案的本地化、语气风格及术语使用,确保文本可翻译且符合一致性要求。

.agents/skills/ha-frontend-user-facing-text/SKILL.md home-assistant/frontend

Trigger Scenarios

添加或修改 UI 标签、按钮、对话框文案 审查用户可见文本的翻译和本地化实现 处理错误消息和辅助文本的编写

Install

npx skills add home-assistant/frontend --skill ha-frontend-user-facing-text -g -y
More Options

Non-standard path

npx skills add https://github.com/home-assistant/frontend/tree/dev/.agents/skills/ha-frontend-user-facing-text -g -y

Use without installing

npx skills use home-assistant/frontend@ha-frontend-user-facing-text

指定 Agent (Claude Code)

npx skills add home-assistant/frontend --skill ha-frontend-user-facing-text -a claude-code -g -y

安装 repo 全部 skill

npx skills add home-assistant/frontend --all -g -y

预览 repo 内 skill

npx skills add home-assistant/frontend --list

SKILL.md

Frontmatter
{
    "name": "ha-frontend-user-facing-text",
    "description": "Home Assistant frontend copy, localization, terminology, and user-facing text guidance. Use when adding or reviewing labels, buttons, dialogs, errors, translations, or UI strings."
}

HA Frontend User-Facing Text

Use this skill for all user-facing text, translations, labels, buttons, dialog copy, errors, helper text, and review comments about wording.

Localization

  • All user-facing text must be translatable.
  • Add translation keys to src/translations/en.json when introducing new strings.
  • Use the localization system instead of inline user-visible strings.
  • Prefer complete localized strings with placeholders over concatenating translated fragments.
  • Give translators enough context through key naming and placeholders.
this._localize("ui.panel.config.updates.updates_refreshed", {
  count: 5,
});

Voice And Style

  • Use American English.
  • Use a friendly, informational tone.
  • Address users directly with "you" and "your" when appropriate.
  • Be inclusive, objective, and non-discriminatory.
  • Be concise and clear.
  • Use active voice.
  • Avoid jargon where a familiar home automation term works.
  • Always write "Home Assistant" in full. Do not use "HA" or "HASS" in user-facing copy.
  • Spell out terms when possible.
  • Use sentence case for titles, headings, buttons, labels, and UI elements.
  • Use the Oxford comma in lists.
  • Prefer "like" over "e.g." and "for example" over "i.e.".
  • Avoid all caps for emphasis. Use wording, bold, or italics instead.
  • Write for both technical and non-technical users.

Sentence case examples:

  • Use: "Create new automation"
  • Avoid: "Create New Automation"
  • Use: "Device settings"
  • Avoid: "Device Settings"

Terminology

Use "integration" instead of "component" for user-facing product language unless referring to a frontend component in developer context.

Technical product terms are lowercase in prose: automation, entity, device, service.

Delete, Remove, Create, Add

Use "Remove" for actions that can be restored or reapplied:

  • Removing a user's permission.
  • Removing a user from a group.
  • Removing links between items.
  • Removing a widget from a dashboard.
  • Removing an item from a cart.

Use "Delete" for permanent, non-recoverable actions:

  • Deleting a field.
  • Deleting a value in a field.
  • Deleting a task.
  • Deleting a group.
  • Deleting a permission.
  • Deleting a calendar event.

Use "Add" for already-existing items:

  • Adding a permission to a user.
  • Adding a user to a group.
  • Adding links between items.
  • Adding a widget to a dashboard.
  • Adding an item to a cart.

Use "Create" for something made from scratch:

  • Creating a new field.
  • Creating a new task.
  • Creating a new group.
  • Creating a new permission.
  • Creating a new calendar event.

Create pairs with Delete. Add pairs with Remove.

Review Checklist

  • Text is localized.
  • Copy uses sentence case.
  • "Home Assistant" is written in full.
  • Delete/Remove and Create/Add match recoverability and object lifecycle.
  • Placeholders are used instead of string concatenation.
  • The wording is concise and understandable without implementation knowledge.

Version History

  • 3c7560a Current 2026-08-20 08:57

Same Skill Collection

.agents/skills/ha-frontend-components/SKILL.md
.agents/skills/ha-frontend-contexts/SKILL.md
.agents/skills/ha-frontend-demo/SKILL.md
.agents/skills/ha-frontend-events/SKILL.md
.agents/skills/ha-frontend-gallery/SKILL.md
.agents/skills/ha-frontend-lit/SKILL.md
.agents/skills/ha-frontend-review/SKILL.md
.agents/skills/ha-frontend-styling/SKILL.md
.agents/skills/ha-frontend-testing/SKILL.md
.agents/skills/ha-frontend-types/SKILL.md

Metadata

Files
0
Version
3c7560a
Hash
a85d27de
Indexed
2026-08-20 08:57

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-26 02:47
浙ICP备14020137号-1 $방문자$