Extract Ds 标志

Extract Ds

社区
rtadewald
extract-ds

通过复制已完成本地网站的代码仓库,快速判断网站是通过 file:// 还是本地服务器运行,并保留主要动画,从而构建设计系统。适用于用户调用 extract-ds,或请求执行这一需审批的工作流程。

Add to TypingMind

概览

发布者rtadewald
代码仓库skills
技能名称extract-ds
星标数
217
复刻数
27
附带文件
4
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 4 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 rtadewald 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Extract Ds AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/rtadewald/skills/tree/main/extract-ds
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rtadewald/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/extract-ds .claude/skills/extract-ds
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Extract Ds,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Extract Ds。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Extract Ds 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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:

text
<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:

text
$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:

text
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.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Extract Ds AI 技能有什么作用?

通过复制已完成本地网站的代码仓库,快速判断网站是通过 file:// 还是本地服务器运行,并保留主要动画,从而构建设计系统。适用于用户调用 extract-ds,或请求执行这一需审批的工作流程。

为什么在 TypingMind 中使用 Extract Ds?

因为您只需安装一次,就能搭配任何模型使用。Extract Ds 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Extract Ds?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/rtadewald/skills/tree/main/extract-ds。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Extract Ds?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Extract Ds 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Extract Ds 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Extract Ds AI 技能免费吗?

rtadewald 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇