[NO-ISSUE] feat(webkit): design-system adoption toolkit — catalog, lint, MCP, CLI#717
Draft
HerbertJulio wants to merge 6 commits into
Draft
[NO-ISSUE] feat(webkit): design-system adoption toolkit — catalog, lint, MCP, CLI#717HerbertJulio wants to merge 6 commits into
HerbertJulio wants to merge 6 commits into
Conversation
…e adoption toolkit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A design-system adoption toolkit so any project can consume
@aziontech/webkitcorrectly and performantly by construction — not just by documentation. It ships as sibling packages published from this monorepo; webkit itself stays "just a UI lib".The toolkit is two layers over a single source of truth:
catalog.json(generated inside@aziontech/webkitfrompackage.json#exports+.specs, version-locked, regenerated at release). Every tool reads this one file, so nothing can drift from the installed webkit version.@aziontech/eslint-plugin-webkit+@aziontech/stylelint-config-webkit.@aziontech/webkit-mcp(tool-agnostic MCP) + a Claude Code bundle (rules/skill/agents) dropped by@aziontech/webkit-cli init.What it does (per package)
@aziontech/webkit(modified)scripts/build-catalog.mjs+ generatedcatalog.json(shipped infiles, built in.releasercprepareCmd);./catalog.jsonexport added@aziontech/eslint-plugin-webkitvalid-import-path,no-deep-internal-import,no-barrel-import,no-hardcoded-color,prefer-tree-shakeable-root,no-whole-icon-set-import— withrecommended/strict/performancepresets. Reads the installed catalog (version-locked, fail-open)@aziontech/stylelint-config-webkit<style>(no hex/rgb/hsl)@aziontech/webkit-mcpnpx) over the catalog:list_components,get_component,get_import(returns the tree-shakeable-root+ compound alternative),search/suggest_component,get_usage_example,validate_usage@aziontech/webkit-clinpx @aziontech/webkit init— one idempotent command wiring deps + eslint/stylelint + pre-commit +.mcp.json+ the Claude Code bundle (4 rules,webkit-usageskill,webkit-expert/webkit-adopter/webkit-revieweragents) + aCLAUDE.mdfragmentHow a consumer uses it
npx @aziontech/webkit init # 1 command: installs + wires linter + MCP + Claude bundleThen, day to day: the linter blocks incorrect/slow usage on commit & CI; the MCP makes the AI generate flat imports, tree-shakeable
-rootimports and token classes from the start. 0 extra commands after setup.How to test
Also verified locally: a real ESLint run (flat config,
strictpreset, real catalog) flags a barrel import, an unknown subpath (datatable), a deep/src/import, a whole-icon-set import, a hardcoded#hex, and a compound-used-root-only case — while clean flat/tree-shakeable/token code passes (8/8).Notes
pnpm installto link the new workspaces; add one.github/workflows/package-<name>.ymlper new package (clone ofpackage-webkit.yml) to publish them — the per-package.releasercfiles are already in place withreleaseRulesbyte-for-byte identical to webkit's (per.claude/rules/release-types.md).webkit-reviewerprovides local AI review. Aclaude-code-actionCI reviewer is a documented future phase.@aziontech/webkit-mcpdepends on@modelcontextprotocol/sdk+zod(loaded lazily; fetched atnpxtime).featacross the touched packages → minor bump each.