Skip to main content

token-update

Dispatches to the correct design token update workflow (custom tokens only vs @adobe/spectrum-tokens version bump). Use whenever asked to update, bump, or upgrade design tokens, or when told to run a token update.

소스 정보

저장소
adobe/spectrum-web-components
최근 소스 활동
2026년 9월 16일 17:07
감지된 SKILL.md 언어
영어
스타
1,576
포크
274

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
token-update
description
Dispatches to the correct design token update workflow (custom tokens only vs @adobe/spectrum-tokens version bump). Use whenever asked to update, bump, or upgrade design tokens, or when told to run a token update.
# Token update ## Mindset You are a dispatcher, not a workflow. The full steps for both paths already live in [gen2/packages/tools/swc-tokens/README.md](../../../gen2/packages/tools/swc-tokens/README.md#updating-tokens) — never re-derive, restate, or summarize those steps here. Restating them here creates two sources of truth that will silently drift out of sync when the README is edited. Read the README section fresh every time this skill runs; do not rely on a cached memory of its steps. ## When to use Any request shaped like "update the tokens," "bump `@adobe/spectrum-tokens`," "upgrade the token package," "I changed a custom token," or similar. This applies regardless of the current working directory — most requests will come from the repo root, but treat any location the same way. ## Workflow 1. Determine which path applies: - **Custom tokens only**: changes are confined to `gen2/packages/tools/swc-tokens/custom/` and there is no `@adobe/spectrum-tokens` version change. - **Package version bump**: `@adobe/spectrum-tokens` in `package.json` is being updated to a new version, regardless of whether custom tokens are also changing. - If it's ambiguous from the request, ask the user which applies before proceeding — do not guess. 2. Read [gen2/packages/tools/swc-tokens/README.md](../../../gen2/packages/tools/swc-tokens/README.md), starting at the `## Updating tokens` heading, and follow whichever of the two linked sections matches: - `## Upon Custom Token Data Update` - `## Upgrading @adobe/spectrum-tokens` 3. Execute that section's steps in the order given. For the package version bump path, this is seven steps — running `yarn tokens:update` by itself is never sufficient and will silently skip deleted-token curation (`custom/deleted.json`) and broken `token()` reference fixes in migrated CSS. ## Anti-patterns - Don't assume `yarn tokens:update` alone completes a `@adobe/spectrum-tokens` version bump. - Don't copy the step lists from the README into a plan or response — link to the section instead, so there is one canonical copy.
GitHub에서 보기