ingest-github
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "ingest-github" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-989aeea24c25d4749b968f89c82a4b23a2045def5932c5dc16f77999239c2220. Verify the upstream source and version against https://github.com/bluzir/claude-code-design before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Clones a specified GitHub repository and extracts design tokens (colors, fonts, spacing) from its codebase. Use when a user provides a github.com URL and wants to create a design system or designs based on that repository's style.
Introduction source: third_party · bluzir · 0.0.1 Reference
SkillPi interpretation
- Tasks
- 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.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: ingest-github
description: 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.
argument-hint: <github-url>
allowed-tools: Read Write Glob Grep Bash(gh:*) Bash(mkdir:*) Bash(rm:*) Bash(realpath:*) Bash(basename:*)Ingest GitHub
Pull a repo into a temp location and extract design tokens. No manual git clone required for the user — uses gh CLI.
Preflight
Bash(which gh)— if missing, tell user:brew install gh && gh auth login- Check
$ARGUMENTSmatchesgithub.com/owner/repo[/(tree|blob)/ref/path]
Steps
-
Parse URL into
{owner, repo, ref, subpath}.- Bare repo:
github.com/foo/bar→{owner:foo, repo:bar, ref:default, subpath:''} - Tree:
github.com/foo/bar/tree/main/src→{owner:foo, repo:bar, ref:main, subpath:'src'}
- Bare repo:
-
Clone shallow into a temp dir under
/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>) -
Find token files via Glob (in clone path):
**/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(W3C DTCG format)**/design-tokens.***/palette.*
-
Read candidate files (cap at 20 biggest) and extract:
- Colors: regex
#[0-9a-fA-F]{3,8},rgb\(...\),oklch\(...\),hsl\(...\)+ the var/key they're assigned to - Fonts:
font-family:values, named font stacks - Spacing: numeric scales in Tailwind config, CSS vars with
--space-*/--spacing-*/--gap-* - Radii: CSS vars with
--radius-*/--rounded-*, TailwindborderRadiusconfig
- Colors: regex
-
Write structured output:
artifacts/ingested/<repo>-tokens.jsonSchema:
{ "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" }, ... } } -
Summarize to user:
- "Found N colors, M fonts, spacing scale [...], K radii. Saved to
artifacts/ingested/<repo>-tokens.json." - Offer:
/create-design-systemto turn into visual style guide, or start/make-deck//interactive-prototypewith these tokens pre-loaded.
- "Found N colors, M fonts, spacing scale [...], K radii. Saved to
-
Cleanup: optionally
Bash(rm -rf /tmp/cd-ingest-<slug>)— or keep for further exploration.
Failure modes
- No
gh→ clear error + install instruction - Repo private + no auth →
gh auth loginprompt - No tokens found → report "repo has no clear design tokens; suggest manual
AskUserQuestionfallback or try a specific subpath" - Huge repo (>500MB) → warn user, offer
--subpathto narrow
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决从 GitHub 仓库自动提取设计令牌的实际痛点,适用于设计系统构建、风格迁移等高频场景
- 功能闭环完整,从克隆到结构化输出再到后续引导,提供端到端价值
Highlights
- 触发条件清晰限定为 github.com URL,argument-hint 明确,边界定义良好
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档未设置独立的 When to Use 章节,虽 description 已说明用途,但规范建议显式列出
Recommendation: 在 Preflight 前添加 When to Use 章节,明确使用场景和前提条件
Highlights
- Phase 划分清晰,步骤完整,包含失败处理和输出示例,结构优秀
Highlights
- 工具依赖明确(gh CLI),异常处理覆盖主要场景(认证、大仓库、无令牌),清理机制可选
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Delete files
Confirm the absolute path and scope and keep a recoverable backup. Do not run example commands against important directories.
Mentioned in main document · lines 66 -
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 14
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.