evolving-design-system-components

作者: bitwarden

根据Bitwarden已发布的治理流程——设计团队对齐、核心与……——提出新的UI模式或修改现有的设计系统组件。

npx skills add https://github.com/bitwarden/ai-plugins --skill evolving-design-system-components

Evolving Design System Components

This skill grounds Component Library work in two Bitwarden governance pages: Creating new design patterns and Modifying an existing Design System component. Read the canonical pages via get_confluence_page before driving a real proposal — they evolve faster than this skill, and they link to template Figma files and engineering processes referenced below. Figma conventions (property ordering, naming) live in references/figma-conventions.md.

The two paths

There are two governance flows. They share a beginning but diverge.

  • Creating a new pattern. A pattern that doesn't yet exist. Path forks at "is this a Core Component, or a Recipe/Snowflake?" based on use cases and complexity.
  • Modifying an existing component. A pattern that already exists. Always passes through the UI Foundation team because instances across the product are affected.

The skill walks both. Confirm which one applies before recommending steps — they have different review gates.

Step 1: Search first, then propose

Before either path, check whether the pattern already exists. The most common false-positive of "we need a new component" is "this already exists in the library and the designer hadn't found it."

Use search_design_system and get_libraries from using-figma. If a near match is found, the question becomes whether to use it as-is, modify it (path B), or propose a new variant under it. If no match, proceed.

Step 2: Identify the need with the team

For both paths, the design team aligns first — before engineering is involved. From the Confluence pages:

  • The designer identifies the need and creates a draft of the new or modified pattern in a feature file.
  • The designer shares with the design team — group iteration or independent draft followed by team critique, depending on timeline.
  • The design team reviews against three or four questions, depending on the path:

For a new pattern:

  • What existing patterns have been considered? Why don't they work?
  • What value does the new pattern bring?
  • Does it follow existing design / brand guidelines?
  • What are other use cases? Can it be used in multiple places?

For a modification:

  • Does it improve visual appeal?
  • Does it expand the use cases for the component?
  • Is it in line with other UI patterns?
  • How will it affect instances of the component across the product?
  • What other components or patterns might be affected?

The team aligns on whether to move forward before the proposal goes further. There is a Figma template for new pattern discussion linked from the Creating-new-design-patterns page; surface it when the proposer doesn't have a discussion structure of their own.

Step 3 (new patterns only): Core vs. Recipe/Snowflake

This decision is made with the UI Foundation team — never unilaterally by the proposing designer.

  • Core Component Library candidate. Many use cases, or too complex for a single feature team to maintain. Becomes a first-class library component owned by UI Foundation.
  • Recipe / Snowflake. Few use cases, or specific to a feature surface. Owned by the feature team that built it. Still added to the Figma library so other designers can find it.

Schedule the conversation with UI Foundation. Walk the use cases. Defer to their call on ownership. The Confluence page references the engineering side at Creating a New Component — read that page when the Core path is taken.

Step 4: Build it in the Figma library

The Figma side of the process is opinionated. The conventions — property ordering, naming, required states, documentation pattern — are in references/figma-conventions.md. The high-level moves:

  • Open the Tailwind Component Library Figma file.
  • Create a new branch named after the component / pattern.
  • Add the new (or modified) UI pattern as a Figma Component, on a dedicated page for new components or in the existing component's page for modifications.
  • For interactive components, ensure at minimum: default, hover, focus, active (where applicable), disabled (where applicable).
  • Name Figma properties per the CL API design docs and existing Figma property patterns. Property order matters — see references/figma-conventions.md.
  • Create a component-documentation frame next to the component with usage, behavior, variants, and accessibility notes. Convention is to copy and adapt an existing component's docs rather than build from scratch.
  • For modifications, leave a Figma comment on each changed component noting what changed.

Step 5: Review gates

  • New patterns. Send the branch to the Design team for review.
  • Modifications. Send the branch to the Design team AND review during a team sync. At least 2 other designers must approve before merging.
  • Review changes with the UI Foundation engineering team during a team sync.
  • Create a Jira issue on the Component Library board if not already created. Prioritize with UI Foundation engineering in the next sync.

Step 6: Merge timing — Figma vs. code

The default is wait to merge the Figma branch until engineering has updated the code so designers don't see UI in Figma that doesn't yet exist in product. But there are exceptions:

  • Designers need the changes now. Add a warning badge to the component's docs in Figma noting the engineering state, merge the Figma branch, and send an update to engineering teams in #team-eng-ui-foundation.
  • Branch maintenance is too unwieldy. Same exception applies — merge with a warning and announce.

Default to the disciplined order. Use the exception sparingly.

Composing with other skills

  • using-figma. search_design_system and get_libraries for the pre-proposal search; get_metadata and get_variable_defs for inspecting existing components; the Code Connect tools (get_code_connect_map, add_code_connect_map, get_context_for_code_connect) for the design-to-code linkage when promoting a pattern to a Core Component.
  • facilitating-design-critique. The design team's alignment step in Step 2 is a critique session, not a one-off message. When the proposer needs help structuring it, dispatch into the critique-facilitation skill.
  • navigating-design-jira-process. The Component Library Jira board lives inside the larger Product and Design Jira workflow. When the proposal generates engineering work, dispatch into the Jira-process skill for the right state moves.

Common traps

  • Skipping the pre-proposal search. search_design_system first. Always.
  • Designer-unilateral Core/Recipe call. The UI Foundation conversation is required for this decision. Don't pre-decide.
  • Property names that don't match the CL API conventions. Inconsistent naming breaks the library's usability across the team. Read the CL API design doc rather than improvising.
  • Skipping the warning badge on early merges. When the exception path is taken, the warning badge in Figma plus the #team-eng-ui-foundation message is required, not optional.
  • Merging Figma changes ahead of engineering with no comms. Designers downstream see UI that doesn't exist in product and build on top of it.

Output format

When asked to help propose a pattern or modify a component:

  1. Path — new pattern or modification.
  2. Search results — what already exists in the library that's adjacent or overlapping.
  3. Design team alignment plan — what to bring to critique, what questions the team should weigh.
  4. Core vs. Recipe call (new patterns only) — the UI Foundation conversation framing.
  5. Figma plan — branch name, page placement, required states, property order, docs frame.
  6. Review path — designer approvals required, UI Foundation review, Component Library Jira issue.
  7. Merge timing — default or exception, with the warning-badge and comms steps if exception.

来自 bitwarden 的更多技能

analyzing-git-sessions
bitwarden
分析指定时间范围或提交区间内的Git提交与变更,生成结构化摘要,用于代码审查、回顾、工作日志或会话记录等场景。
official
figma-to-angular
bitwarden
该技能将Figma设计规范转化为在Bitwarden Clients单体仓库中完全实现的Angular组件,并附带Storybook故事。输出结果应在视觉上与设计一致,同时遵循所有代码库约定。
official
agent-access
bitwarden
通过aac从用户的Bitwarden保管库中检索登录凭据、API密钥和机密(用户名、密码、TOTP)。当您需要凭据来登录…时使用。
official
action-audit
bitwarden
审计整个组织中的 GitHub Actions 使用情况。搜索特定操作(事件模式)或扫描所有工作流文件以查找不合规的操作…
official
action-remediate
bitwarden
Remediate GitHub Actions action findings identified by the action-audit skill. Applies the appropriate fix per action type — `@main` ref for internal…
official
analyzing-code-security
bitwarden
此技能应在用户要求“分析代码中的安全问题”、“检查OWASP漏洞”、“对照CWE Top 25审查代码”、“查找…”时使用。
official
applying-bitwarden-branding
bitwarden
Apply Bitwarden brand standards — logo usage, color palette, typography, iconography, and capitalization rules — grounded in bitwarden.com/brand and the…
official
architecting-solutions
bitwarden
在团队层面进行解决方案架构设计,同时与Bitwarden的整体架构保持一致性。涵盖安全思维、架构判断力、……
official