Loading...
Loading...
Clone a GitHub repo and extract design tokens (colors, fonts, spacing) from its codebase. Use when user gives a github.com URL and wants a design system or design work rooted in the repo's style.
npx skill4agent add bluzir/claude-code-design ingest-githubgit cloneghBash(which gh)brew install gh && gh auth login$ARGUMENTSgithub.com/owner/repo[/(tree|blob)/ref/path]{owner, repo, ref, subpath}github.com/foo/bar{owner:foo, repo:bar, ref:default, subpath:''}github.com/foo/bar/tree/main/src{owner:foo, repo:bar, ref:main, subpath:'src'}/tmp/cd-ingest-<slug>-<timestamp>Bash(mkdir -p /tmp/cd-ingest-<slug>)
Bash(gh repo clone <owner>/<repo> /tmp/cd-ingest-<slug>/<repo> -- --depth 1 --branch <ref>)**/theme.{ts,tsx,js,jsx,json}**/tokens.{css,scss,json}**/tailwind.config.{js,ts,cjs,mjs}**/_variables.{css,scss}**/colors.{ts,js,json}**/*.tokens.json**/design-tokens.***/palette.*#[0-9a-fA-F]{3,8}rgb\(...\)oklch\(...\)hsl\(...\)font-family:--space-*--spacing-*--gap-*--radius-*--rounded-*borderRadiusartifacts/ingested/<repo>-tokens.json{
"source": { "url": "...", "ref": "...", "ingested_at": "2026-04-20T..." },
"colors": { "primary": "#...", "accent": "#...", "bg": "#...", "text": "#...", "semantic": {...}, "all": {...} },
"fonts": { "display": "...", "body": "...", "mono": "...", "stacks": [...] },
"spacing": [...],
"radii": { "sm": 4, "md": 8, "lg": 16 },
"shadows": [...],
"components": { "Button": { "found_at": "src/.../Button.tsx" }, ... }
}artifacts/ingested/<repo>-tokens.json/create-design-system/make-deck/interactive-prototypeBash(rm -rf /tmp/cd-ingest-<slug>)ghgh auth loginAskUserQuestion--subpath