Skip to content

[NO-JIRA] Add bpk-token-migrate skill for Figma-driven component token migration#4652

Open
GC Zhu (gc-skyscanner) wants to merge 1 commit into
mainfrom
gc-skyscanner/sync-latest-code
Open

[NO-JIRA] Add bpk-token-migrate skill for Figma-driven component token migration#4652
GC Zhu (gc-skyscanner) wants to merge 1 commit into
mainfrom
gc-skyscanner/sync-latest-code

Conversation

@gc-skyscanner
Copy link
Copy Markdown
Contributor

Summary

  • Adds a reusable Claude Code skill (.claude/skills/bpk-token-migrate/) for migrating Backpack component styles to the new VDL token pipeline
  • Skill uses Figma as source of truth — reads design variables via get_variable_defs, converts Figma variable paths to CSS custom property names using the kebabBpkName rule, then rewrites the component SCSS mixin directly
  • Includes naming rule reference docs and eval test cases for measuring skill quality
  • Applicable to any Backpack component migration (Chip, Badge, Button, etc.)

Usage

/bpk-token-migrate <component-name> <figma-url>

Test plan

  • Invoke /bpk-token-migrate chip <figma-url> and verify it produces correct _chips.scss output
  • Verify generated SCSS uses var(--bpk-private-chip-*) variables and no legacy bpk-themeable-property calls
  • Run npm run lint and npm run jest -- --testPathPattern=chip — 0 errors

🤖 Generated with Claude Code

…n migration

Adds a reusable Claude Code skill that migrates Backpack component styles
to the new VDL token pipeline. Uses Figma as source of truth — reads design
variables via get_variable_defs, converts paths to CSS custom property names
via the kebabBpkName rule, and rewrites the component SCSS mixin directly.

Includes naming rule references and eval test cases.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 29, 2026 11:08
@skyscanner-backpack-bot
Copy link
Copy Markdown

Visit https://backpack.github.io/storybook-prs/4652 to see this build running in a browser.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants