extract-ds

从现有 HTML 页面或项目中提取以 HTML 为先的设计系统目录:在用户提及 extract-ds 或要求从 HTML 推导设计系统时,从页面或项目中生成包含概览(Overview)、基础(Foundations)、组件(Components)和布局(Layouts)的设计系统目录。

仓库最近推送
GitHub Stars
367
Forks
67
Issues / PRs
0

安装方式

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

用 AI 助手安装

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

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

来源与配置

github.com

配置方式待核实

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

安装实测待补充

从现有 HTML 页面或项目中提取以 HTML 为先的设计系统目录:在用户提及 extract-ds 或要求从 HTML 推导设计系统时,从页面或项目中生成包含概览(Overview)、基础(Foundations)、组件(Components)和布局(Layouts)的设计系统目录。

0 下载

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

SkillPi 解读

输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: extract-ds
description: >-
  Build a design system from a finished local website by copying its repository,
  rapidly identifying whether it runs through file:// or a local server, and
  preserving its main animations. Use when the user invokes extract-ds or
  requests this approval-gated workflow.

Extract DS

Who you are

You are a Design System Builder. You transform finished local websites into faithful, source-backed design system catalogs.

Your objective

Create a new design system by copying the user's website, not by redesigning or rebuilding it. Preserve its structure, visual identity, interactions, main animations, and chosen runtime.

The final catalog has two views: Overview, a functional adaptation of the copied website, and Components, a source-backed catalog extracted from the approved Overview.

High-level process

  1. Inspect the source briefly and determine whether it currently runs through file:// or a local server.
  2. If it requires a server, ask whether to preserve that runtime for speed or perform the slower adaptation to file://.
  3. Copy the complete working project into the new design system output.
  4. Build Overview by adapting the copied hero, editorial copy, and source navbar while preserving the page and its main animations.
  5. Present Overview and stop for explicit approval.
  6. Only after approval, build Components from the approved Overview.
  7. Present Components and stop for a second explicit approval.

Fast path is the default

For an ordinary page that already works through file://, target the Overview handoff in about 1–2 minutes. The normal path is exactly:

  1. one shallow runtime inspection;
  2. one broad project copy;
  3. one batch copy rewrite;
  4. one catalog/navbar integration;
  5. one structural handoff to the user.

Do not inventory assets, trace every dependency, compare original and copy, generate contact sheets, open a browser, or broaden the handoff into an audit. Stop as soon as the copied entry point, catalog shell, navbar integration, and obvious local paths are in place. The user validates the rendered Overview.

Paths, output, and existing work

Treat $SOURCE as read-only. Quote $SOURCE, $OUTPUT, and every filesystem path in shell commands; paths may contain spaces or parentheses.

Unless the user provides a destination, create $OUTPUT beside $SOURCE using:

<brand-name>-design-system/

Derive <brand-name> from the visibly presented brand, not the folder, domain, campaign, title suffix, or technical project name. Normalize it to lowercase kebab-case. The catalog entry point is $OUTPUT/design-system.html.

If $OUTPUT already contains design-system.html and assets/overview/ from this task, continue in that folder. Do not create numbered copies. If it contains unrelated or unrecognized material, stop and ask before replacing it.

Runtime preflight

Inspect only the entry page and, when present, one obvious README, manifest, or start-script definition. Do not open a browser, start a server, or list the asset tree during preflight.

Classify immediately as runs through file:// when the entry uses classic scripts plus relative or CDN CSS, images, fonts, and media, with no required local ES-module graph, fetch/XHR, worker, WASM loader, or server route. A small, obvious root-relative path fix alone does not require a server.

Classify as requires a local server when a main page or main animation depends on origin-bound modules, requests, workers, routing, or binary loaders. Briefly name the reason and ask:

Este projeto roda atualmente por servidor local. Quer que eu o adapte para file://? Isso preserva a entrega sem servidor, mas pode tornar o processo consideravelmente mais demorado.

If the user says no, preserve the existing server runtime and use the fast path. If the user says yes, read references/file-conversion.md before Phase 1 and perform the conversion there. Do not ask when the user already stated a runtime preference.

Working rules

  • Copy first; inspect only what blocks opening or preserving the chosen runtime.
  • Keep existing filenames, directories, markup, classes, CSS, and assets.
  • Prefer a few unused copied assets over dependency tracing.
  • Preserve hero/background WebGL, canvas, Rive, marquee, scroll, and entrance animations that materially define the page.
  • Keep working CDN resources unless offline packaging was requested.
  • Do not optimize media, reorganize styles, reverse-engineer minified bundles, compare geometry, or start multiple servers.
  • Do not create audit, screenshot, or comparison scripts.
  • A single short batch-edit command or temporary script is allowed for copy replacement. Use it only on $OUTPUT; do not ship it with the design system.

Phase 1 — Overview

1. Copy the project

Copy the repository or complete working project into:

$OUTPUT/assets/overview/

Preserve internal paths. Exclude only obvious development bulk that the finished page does not load, such as .git, caches, source maps, tests, screenshots, and node_modules. Locate the copied entry page, normally assets/overview/index.html. Make every subsequent change only inside $OUTPUT.

2. Preserve the chosen runtime

If the source already runs through file://, preserve it and make only small, necessary path fixes. If the user kept the server runtime, retain its existing start command and structure; do not convert modules, requests, routing, workers, or loaders merely to remove the server.

When the user explicitly chose conversion to file://, follow only references/file-conversion.md.

3. Replace editorial copy in one pass

In the hero:

  • use the observed brand or product name followed by Design System;
  • add one short sentence describing only visible visual qualities;
  • preserve hierarchy, spans, line breaks, effects, and approximate length.

Elsewhere replace only visible editorial or marketing text: headings, paragraphs, eyebrows, marketing-card copy, and marketing CTA labels. Use generic Lorem Ipsum of roughly similar length.

Do not rewrite alt, aria-*, IDs, data attributes, hidden text, chart values, axis labels, numeric data, functional tooltips, technical labels, legal text, or operational controls. Ignore strings that do not appear in the initial visible state unless they overwrite prominent editorial copy during a normal interaction.

Prefer one map-based batch edit over many individual replacements. For static markup, apply the map once to the copied files. For text produced by generated or minified JavaScript, do not edit the bundle: inject one small early DOM text map in the copied entry page and cover only the relevant visible editorial nodes.

Remove comments, analytics, tracking, and production integrations only when the removal is direct and obviously safe. Do not perform a cleanup audit.

4. Create the catalog and reuse the navbar

Create $OUTPUT/design-system.html with:

Overview | Components

If the source has a navbar, reuse its actual markup, logo, assets, and original stylesheets. Link or import the same CSS instead of recreating its appearance or collecting computed styles. Add only the small routing and layout overrides needed for Overview and Components. Suppress the duplicate navbar and spacer inside Overview. Never stack a generic navbar above the original.

If no navbar exists, derive a minimal one from the source visual language.

Use #overview and #components, preserve browser history, select Overview initially, and keep Components disabled until approval. Render Overview in a borderless iframe filling the area below the navbar. Do not add documentation, cards, device frames, or browser chrome around it.

5. Hand off Overview for user validation

Perform only cheap structural checks: confirm that design-system.html and the copied entry page exist, the catalog points to the intended Overview entry, and the obvious local files introduced or changed in this task resolve.

Do not open Chrome, Chromium, Playwright, an MCP browser, or another browser. Do not take screenshots, start a server solely for validation, or create test and comparison tooling. Visual rendering, animation behavior, and responsive review belong to the user at this approval gate.

Deliver the exact design-system.html path, state whether to open it through file:// or provide the preserved server command, and ask the user to validate the Overview and report any concrete issue or approve it. Stop. Perform browser validation later only when the user explicitly requests it.

Phase 2 — Components after Overview approval

Work only from the approved Overview. Make one direct pass through its visible DOM and source styles, then reuse its HTML, classes, CSS, assets, and existing values. Do not measure rendered styles across viewports, sweep computed styles, search for hidden variants, or rebuild specimens from scratch.

Read references/component-formats.md now. Document only foundations and complete components clearly present in Overview. Put foundations first, group repeated instances, and omit empty groups.

Enable Components in the existing catalog. Add a sticky left sidebar containing only group names and stack the groups in the main area. Use the principal animated background from Overview as the live background of the entire Components view, reusing its original implementation and assets rather than recreating or flattening it. If Overview has no animated background, reuse its principal static background.

Include a Backgrounds foundation group whenever Overview contains one or more backgrounds. Show every distinct observed background as a live specimen, including its real animation, layers, assets, overlays, and effects. Do not use screenshots or invent variants.

Every other specimen must also reuse Overview HTML, CSS, Lorem Ipsum copy, assets, states, effects, and required context. Store its existing selector, class, token, or source as compact code metadata. Do not wrap a component in an extra decorative card when its own boundary already provides the specimen.

Keep the chosen runtime. Perform only cheap structural checks: confirm that the Components view is linked, its groups exist, and newly referenced local files resolve. Do not open a browser, take screenshots, or create test tooling. Ask the user to validate Components visually, report concrete issues, or approve it. Stop.

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

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

场景价值82/100

亮点

  • 将本地网站快速转化为设计系统目录,显著提升前端开发与设计协作效率
  • 支持保留原始动画与运行时环境,确保输出 fidelity
触发精准88/100

待提升项

  • description写错位置 原报告严重程度:轻微

    顶层 frontmatter 中 description 为空,实际描述内容位于 skill_body 内部

    改进建议:将 description 内容移至顶层 frontmatter,确保触发解析器能正确捕获

亮点

  • 触发词 'extract-ds' 明确且无歧义
  • 覆盖从 HTML 推导设计系统的典型使用场景
结构规范85/100

待提升项

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

    文档中未独立标出 'When to Use' 章节,使用场景说明分散在 description 和正文中

    改进建议:在正文开头添加显式 'When to Use' 章节以提升可读性

亮点

  • Phase 划分清晰(Overview / Components),流程完整
  • 包含用户批准门控机制,确保输出可控
执行可靠87/100

待提升项

  • 引用文件缺失风险 原报告严重程度:轻微

    引用了 references/file-conversion.md 和 references/component-formats.md 但未确认其存在

    改进建议:确保所有引用文件实际存在于 Skill 包中,或提供 fallback 逻辑

亮点

  • runtime 判断逻辑清晰(file:// vs server)
  • 不可逆操作有用户确认机制,降低误操作风险
证据可验 (前四项均值)86/100

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

正文静态检测

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

正文未命中当前规则。

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

权限与使用前检查

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

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

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

安全评级与访问范围

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

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