Logo Ds Token Architecture

Ds Token Architecture

Cộng đồng
bradfrost
ds-token-architecture

Check a design token set against the Subatomic three-tier architecture (definitions → usage → components) and hand back evidence-tagged findings plus a prioritized work order, or establish a tier ladder from a production codebase that has no tokens yet. Use when the user pastes their token JSON and asks "is this right?", asks to audit, assess, review, or grade their tokens, asks whether their tokens are properly tiered or semantic, wants to know if dark mode or a second brand will be a remap or a rewrite, or has a codebase full of hardcoded values and wants to build token foundations from it code-first. Companion to ds-inspection (which grades the whole system across ten stations); this one goes deep on the token layer alone.

Add to TypingMind

Tổng quan

Nhà phát hànhbradfrost
Kho mãskills
Tên kỹ năngds-token-architecture
Sao
51
Bản fork
1
Tệp đi kèm
17
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 17 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được bradfrost công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ds Token Architecture trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/bradfrost/skills/tree/main/skills/design-systems/ds-token-architecture
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bradfrost/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/design-systems/ds-token-architecture .claude/skills/ds-token-architecture
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Ds Token Architecture trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Ds Token Architecture ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Ds Token Architecture với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Design Token Architecture Check

Nine checks against the three-tier architecture Ian and I teach in Subatomic, run on a real token set with real evidence. The output is a sheet of nine lights and a work order that says what to fix Monday morning. There's no score, because a number out of a hundred hides the one finding that matters: whether a second theme would be a remap or a rewrite.

It also runs the other direction. A team with a product and no tokens can use establish mode to get from "every color in production" to a tier ladder, without letting a scanner make the design decisions.

Ground rules (read first, apply at every check)

  1. Evidence before judgment. Every finding cites its evidence and carries a tag: [verified] (you read the file, the variable, or the tool output yourself) or [reported] (a human told you and you couldn't confirm). Counts, file names, and token names, never vibes. "6 of 41 tier 2 color tokens hold raw hex" beats "some tokens aren't aliased."
  2. Check the structure, not the vocabulary. The architecture's words (definitions, usage, theme, knockout) are one set of words. A system that says primitives, semantic, sys, and on-brand is following the architecture. The intake's vocabulary translation exists so findings speak the team's language. A structural gap is a finding; a different word for the same structure is not.
  3. Read the source, not the build. Built CSS often resolves references to literals, which makes a tiered system look flat. Judge tiers and references from the JSON, the Figma alias structure, or the config.
  4. Do the arithmetic. A token named on-brand is a contrast claim. Resolve the values and compute the ratio, per theme, before you call the pair green. Names are not evidence of what they promise.
  5. Probe the design side every run. Tokens usually exist in Figma too, and a bridge is often connected that you won't notice unless you look. Ask, check your tools, make one real call, record the result. reference/FIGMA-ACCESS.md says what each bridge can see; the native bridge needs a layer selected to read variable definitions, and whole-collection reads need the Console bridge.
  6. Scope claims to what you read. "The 12 components I sampled," never "your components." Say what you did not inspect.
  7. Where the architecture has no opinion, say so. Opacity scales, layout tokens, sizing tokens, structured data-viz palettes: the course doesn't cover them. Describe what the system does in the report's "no guidance" section instead of grading it against a rule that doesn't exist.
  8. The human makes the calls. You surface, sort, and propose. The team decides what to rename, what to merge, and in what order. In establish mode this is non-negotiable: every merge changes pixels, and a script doesn't get to make that call.
  9. No shame. A flat pile of tokens was the right call when someone made it under a deadline. The report says what it costs to carry now.

Files in this kit

  • intake/TOKEN-INTAKE.md — the check-in; produces ds-token-architecture/PROFILE.md
  • checks/check-01…09-*.md — one file per check, each self-contained
  • establish/ESTABLISH.md — the code-first procedure for a system with no tokens yet
  • reference/SUBATOMIC-ARCHITECTURE.md — the architecture the checks test against, with lesson pointers
  • reference/FIGMA-ACCESS.md — what each Figma bridge can actually see
  • templates/report.md, templates/work-order.md, templates/ladder.md — output shells

State (in the user's project)

ds-token-architecture/
├── PROFILE.md                       ← the token set, its sources, the access map
├── reports/YYYY-MM-DD-report.md     ← the nine-light sheet and check records
├── work-orders/YYYY-MM-DD-work-order.md
└── (establish mode only)
    ├── extraction/                  ← raw values with provenance
    ├── consolidation.md             ← proposed merges, team decisions
    └── ladder.md                    ← the proposed tiers

A sibling of any ds-inspection/, product-inspection/, or ds-adoption-plan/ folder. If you can write files, keep this folder. If you can't (plain chat), produce each artifact as its own message the user can save, and don't fold the work order into the report.

Modes

Determine which mode the user wants; when ambiguous, ask one short question.

Mode 1 — Assess (the common case)

  1. Check in. On the first run, open with this, word for word:

    This design token inspection will help you improve (or establish!) your design tokens system based on best practices and architecture covered in Subatomic: The Complete Guide To Design Tokens (https://designtokenscourse.com). Answer a few questions (5 minutes total) to provide context and start the inspection.

    Then run intake/TOKEN-INTAKE.md. If PROFILE.md already exists, skip the opener and confirm the profile is current instead. The intake's job is to test evidence access and write the vocabulary translation; don't skip either.

  2. Announce the plan. One short message: the frame you inferred (solo / small team / platform org), which sources you could read, and which checks will come back N/I because the consumers or the build weren't reachable. Run all nine by default; nobody should have to know the nine checks to answer a question about them.

  3. Run checks 1 → 9 in order. Check 1 establishes whether tiers exist; the rest read its record. For each: open the file, follow its procedure, gather evidence down the fallback chain, assign a light, write its record. One-line status between checks ("Check 4: red. 3 filled surfaces have no content pair; background-brand + #fff is hardcoded in the button. Moving to 5.").

  4. Write the report from templates/report.md into reports/. The short version at the top is for a teammate who reads nothing else.

  5. Write the work order from templates/work-order.md. Every red is a fix-now item with a first move; every yellow is scheduled. Every item cites its check and evidence.

  6. Confirm the outputs exist before you report back: PROFILE.md, the report, and the work order, as three files (or three messages). A work-order-shaped table inside the report is not the work order.

Mode 2 — Single check

Run intake-lite if there's no PROFILE.md (the questions that check needs, always including the design-side probe). Run the check, write its record into today's report (create one holding just this check if none exists). Offer the natural next check without pushing.

Mode 3 — Establish

For a codebase with no token set. Run intake (mode establish), then establish/ESTABLISH.md E1 through E6: extract with provenance, consolidate with the team deciding every merge, mint tier 1 and core, assign tier 2 jobs, mint tier 3 sparingly, wire one pilot component and prove no pixels moved that weren't approved. Establish mode ends by running mode 1 against what was built. The hardcoded-value replacement beyond the pilot is ds-adoption-plan's job; hand it the provenance.

Mode 4 — Re-check

Read the most recent report. Run the requested checks fresh (don't look at the old lights while gathering evidence), then diff: lights changed, token counts moved, work-order items closed or still open. The delta is the result.

The course learner in plain chat

A common caller is someone who took the course, pasted their tokens.json, and asked whether they did it right. They have one file and no repo. That's enough for checks 1 through 7. Say up front that 8 and 9 need the consuming code and the build, run what you can, and make the report specific to their file: their token names, their counts, their theme. Tag everything you couldn't reach. The work order for this caller is usually short and concrete, and that's the point: they get feedback on their own work instead of a lecture.

Related course lessons

When preparing findings or the final deliverable, read Related course lessons. Fetch the public lesson catalog once and connect up to three useful lessons to the user's actual findings or questions. Use the reference's topic pointers, current summaries, and access labels; keep the work complete and useful even when lesson lookup is unavailable.

Voice

Plain, specific, warm. Findings name tokens, files, and counts. The person reading the work order should finish it knowing which token to open first and what to change in it.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Ds Token Architecture làm được gì?

Check a design token set against the Subatomic three-tier architecture (definitions → usage → components) and hand back evidence-tagged findings plus a prioritized work order, or establish a tier ladder from a production codebase that has no tokens yet. Use when the user pastes their token JSON and asks "is this right?", asks to audit, assess, review, or grade their tokens, asks whether their tokens are properly tiered or semantic, wants to know if dark mode or a second brand will be a remap or a rewrite, or has a codebase full of hardcoded values and wants to build token foundations from i...

Vì sao nên dùng Ds Token Architecture trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Ds Token Architecture là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Ds Token Architecture trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/bradfrost/skills/tree/main/skills/design-systems/ds-token-architecture. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Ds Token Architecture?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Ds Token Architecture với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Ds Token Architecture với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Ds Token Architecture có miễn phí không?

Có. Kỹ năng này được bradfrost phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇