Skip to content

feat: [PKTS-236] Claude Code skills for consumers and contributors - #98

Open
FreddKM wants to merge 12 commits into
developfrom
feat/PKTS-236-claude-skills
Open

feat: [PKTS-236] Claude Code skills for consumers and contributors#98
FreddKM wants to merge 12 commits into
developfrom
feat/PKTS-236-claude-skills

Conversation

@FreddKM

@FreddKM FreddKM commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Implements AI coding skills for the Packets Design System, giving both consumers and internal contributors AI-assisted workflows in Claude Code, Cursor, Windsurf, and any MCP-compatible client. Skills follow the MCP Skills standard and are auto-loaded when the repo (or the copied .claude/ directory) is open.

Changes:

Consumer skills (for developers building apps with Packets):

  • pkts-find: identifies the right Packets component for a described need
  • pkts-react: generates correct React import and usage code for any component
  • pkts-web: generates correct Web Component usage code
  • pkts-css: generates correct CSS class and HTML markup usage

Contributor skills (for working inside this repo):

  • scaffold-react, scaffold-web, scaffold-css: scaffold new components with correct boilerplate and barrel registration
  • review-react, review-web, review-css: review components against conventions before opening a PR
  • component-audit: cross-platform parity report (what is missing where, missing stories, missing docs)
  • generate-component-docs: generate a complete MDX doc page for a component
  • set-alias-colors: update alias color tokens and rebuild CSS in one guided flow

Supporting files:

  • CLAUDE.md: naming conventions, file paths, platform parity table, architecture patterns, spacing token scale — auto-loaded in every session so skills stay lean
  • pkts-find/references/component-catalog.md: lightweight component catalog (all 57 components) used by pkts-find, component-audit, and review skills without loading full source
  • set-alias-colors/references/alias-token-map.md: alias token reference with defaults and core palette steps

Bug fixes in this branch:

  • packages/design-tokens/tokens/color/dark.json: background token was missing "type": "color", causing Style Dictionary to skip it during build — dark background CSS custom property was absent from compiled output. Changeset included for patch release.
  • CLAUDE.md platform parity table: corrected three wrong entries (Badge/Card/Icon listed as Web-only when they have CSS; InputDate/InputDateRange listed as all-three when they have no CSS; SkeletonChip listed as React-only when it is CSS-only).
  • generate-component-docs: wrong MDX output path (src/ instead of src/components/) and macOS-incompatible grep -oP flag (changed to -oE).
  • scaffold-css: template was missing a .dark .pkts-* block, causing generated components to have broken dark mode.
  • pkts-find: removed parity-gap trigger phrases that belong to component-audit.
  • review-css: added border-width token table so the check is actionable.
  • scaffold-web: story template now has a variantless form alongside the variant form.
  • pkts-web: removed redundant double-read of components/index.ts in Step 2.
  • Consumer skills: removed @beta install tags now that v2.0.2 is stable.

Test plan:

  • /pkts-react PktsButton — confirm correct import and JSX with variant prop
  • /pkts-web PktsButton — confirm <pkts-button> usage with attributes
  • /pkts-css button — confirm .pkts-button class and modifier table
  • /pkts-find "loading indicator" — confirm PktsSpinner recommended
  • /set-alias-colors — test with hex, RGB, HSL inputs; verify build runs and both dist files update
  • /component-audit — confirm parity gaps reported without loading component source
  • Verify dark.json build produces a --pkts-color-dark-background property in styles.css

FreddKM and others added 3 commits August 14, 2026 15:32
Adds 11 Claude Code skills and a shared CLAUDE.md foundation to help
both consumers (using Packets in their apps) and contributors (building
and maintaining Packets) work more effectively with the design system.

Consumer skills (prefixed pkts-, intended for use in any repo):
- pkts-find: component discovery by description or use case
- pkts-react: React import and usage code generation
- pkts-web: Web Component HTML/JS usage code generation
- pkts-css: CSS class names and markup generation

Contributor skills (repo-scoped, no prefix):
- review-react/web/css: convention checkers per platform
- scaffold-react/web/css: boilerplate generators per platform
- component-audit: cross-platform parity and coverage report

Also includes:
- CLAUDE.md at repo root with naming conventions, file paths, platform
  parity tables, architecture patterns, and spacing token reference
- component-catalog.md with all 49 components, platform availability,
  and keywords for fuzzy matching
- README.md and contributing.md updated with skills documentation

Skills are forward-compatible with the MCP Skills over MCP standard
(SEP-2640, currently in review) and will work across MCP-compatible
AI clients once that spec ships.
…accessibility guidance, Step 0 monorepo check; fix dark.json background token missing type field; remove @beta from consumer skill install instructions
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 20, 2026

Copy link
Copy Markdown

Deploying packets-design-system with  Cloudflare Pages  Cloudflare Pages

Latest commit: b884222
Status: ✅  Deploy successful!
Preview URL: https://b179cf5d.packets-design-system.pages.dev
Branch Preview URL: https://feat-pkts-236-claude-skills.packets-design-system.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 20, 2026

Copy link
Copy Markdown

Deploying packets-design-system-staging with  Cloudflare Pages  Cloudflare Pages

Latest commit: b884222
Status: ✅  Deploy successful!
Preview URL: https://9b56c21d.packets-design-system-staging.pages.dev
Branch Preview URL: https://feat-pkts-236-claude-skills.packets-design-system-staging.pages.dev

View logs

Freddy Mande added 8 commits August 19, 2026 22:49
…c/components/, fix grep -oP to -oE for macOS compatibility, add dark mode block to scaffold-css template
…ts-find, add border-width token table to review-css, deduplicate index.ts read in pkts-web, add variantless story template to scaffold-web
… Web-only; InputDate/Range have no CSS; SkeletonChip is CSS-only); fix docs MDX path; add changeset for dark.json patch
@FreddKM
FreddKM changed the base branch from main-github to develop August 20, 2026 17:26
@FreddKM FreddKM self-assigned this Aug 20, 2026
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.

1 participant