ingest-github

克隆指定的 GitHub 仓库并从其代码库中提取设计令牌(颜色、字体、间距)。当用户提供 github.com 的 URL 并希望基于该仓库的风格创建设计系统或设计作品时使用。

仓库最近推送
GitHub Stars
112
Forks
11
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "ingest-github":https://skillpi.com/zh/skills/deepskill-989aeea24c25d4749b968f89c82a4b23a2045def5932c5dc16f77999239c2220。安装前核对上游来源和版本:https://github.com/bluzir/claude-code-design。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

克隆指定的 GitHub 仓库并从其代码库中提取设计令牌(颜色、字体、间距)。当用户提供 github.com 的 URL 并希望基于该仓库的风格创建设计系统或设计作品时使用。

0 下载

介绍来源: third_party · bluzir · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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

  1. Bash(which gh) — if missing, tell user: brew install gh && gh auth login
  2. Check $ARGUMENTS matches github.com/owner/repo[/(tree|blob)/ref/path]

Steps

  1. 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'}
  2. 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>)
  3. 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.*
  4. 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-*, Tailwind borderRadius config
  5. Write structured output:

    artifacts/ingested/<repo>-tokens.json

    Schema:

    {
      "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" }, ... }
    }
  6. Summarize to user:

    • "Found N colors, M fonts, spacing scale [...], K radii. Saved to artifacts/ingested/<repo>-tokens.json."
    • Offer: /create-design-system to turn into visual style guide, or start /make-deck / /interactive-prototype with these tokens pre-loaded.
  7. 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 login prompt
  • No tokens found → report "repo has no clear design tokens; suggest manual AskUserQuestion fallback or try a specific subpath"
  • Huge repo (>500MB) → warn user, offer --subpath to narrow

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 解决从 GitHub 仓库自动提取设计令牌的实际痛点,适用于设计系统构建、风格迁移等高频场景
  • 功能闭环完整,从克隆到结构化输出再到后续引导,提供端到端价值
触发精准90/100

亮点

  • 触发条件清晰限定为 github.com URL,argument-hint 明确,边界定义良好
结构规范95/100

待提升项

  • 缺少 When to Use 显式章节 原报告严重程度:轻微

    文档未设置独立的 When to Use 章节,虽 description 已说明用途,但规范建议显式列出

    改进建议:在 Preflight 前添加 When to Use 章节,明确使用场景和前提条件

亮点

  • Phase 划分清晰,步骤完整,包含失败处理和输出示例,结构优秀
执行可靠88/100

亮点

  • 工具依赖明确(gh CLI),异常处理覆盖主要场景(认证、大仓库、无令牌),清理机制可选
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 删除文件

    先确认绝对路径及作用范围,保留可恢复备份;不要直接对重要目录运行示例命令。

    主文档提及 · 第 66 行
  • 安装或获取外部依赖

    使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。

    主文档提及 · 第 14 行

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。