Logo Odsf

Odsf

Cộng đồng
saschb2b
odsf

Author, validate, and maintain a design system for AI agents as a conformant Open Design System Format (ODSF) bundle, a profile (v0.2) of Open Knowledge Format v0.2 that adds design tokens, runnable HTML/CSS example assets, wireframe views, and design-oriented concept types. Commands init, add, token, asset, edit, enrich, link, index, log, validate, export, migrate, consume. Use when the user types /odsf or asks to package a design system for an agent, document design tokens, components, patterns, behaviors, or guidelines so an agent builds UI that matches it, capture a component's skeleton or wireframe (layout, spacing, order, hierarchy, responsive reflow), make a design system or component library agent-readable or portable, adopt or migrate an OKF bundle, project tokens to CSS variables, or follow the ODSF spec. Apply implicitly whenever you write or transform design-system knowledge an agent will build from (a token scale, a component spec), and whenever you edit an existing ODSF bundle.

Tổng quan

Nhà phát hànhsaschb2b
Kho mãskills
Tên kỹ năngodsf
Sao
22
Bản fork
3
Tệp đi kèm
10
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 là Markdown thuần túy, không phải 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ộ.

  • 10 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 saschb2b công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Odsf 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 thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/saschb2b/skills/tree/main/skills/engineering/odsf
  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/saschb2b/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/engineering/odsf .claude/skills/odsf
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 Odsf 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ự tải Odsf 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 Odsf không bị giới hạn ở mô hình mà kỹ năng này được viết cho. 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 kỹ năng chưa dùng không tốn chi phí.

  • Đổ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.

Open Design System Format (ODSF)

ODSF packages a design system as a self-contained bundle an AI agent can read, navigate, and apply to a task, with no SDK, no platform, and no lock-in. It is a strict profile of Open Knowledge Format v0.2: everything OKF says about bundles, concepts, frontmatter, links, index.md, log.md, and versioning holds unchanged, including the v0.2 provenance and trust layer (sources, generated, verified, status, stale_after, and the actor convention). A design system is exactly the kind of knowledge that layer was added for, since "is this token still the brand's" and "has a human signed off on this component spec" are the questions an agent building UI from a bundle most needs answered. On top of that container ODSF adds three things: a token model (machine-readable design tokens, design.md's seed), companion HTML/CSS assets so a concept ships a concrete self-rendering example plus a wireframe of the same markup with the skin stripped, and a design type vocabulary so foundations, components, patterns, behaviors, and guidelines are first-class. The goal is a bundle you hand to an agent ("build this screen, adhere to this design system") that produces work that looks and behaves the way the system intends.

Use this skill two ways. Run a command on demand, or apply it implicitly whenever you shape design knowledge an agent will build from. The normative spec lives in spec.md; per-command steps in commands.md; copy-paste starting points in templates.md.

The two rules

A bundle is a conformant ODSF bundle when both hold: it is a conformant OKF bundle (every non-reserved .md concept opens with YAML frontmatter carrying a non-empty type), and the bundle-root index.md declares odsf_version in its frontmatter. That is the whole hard requirement: be a valid OKF bundle, and say you are an ODSF one. Everything else (the token model, the asset conventions, the type vocabulary, the body sections) is recommended structure a producer SHOULD follow and a consumer MUST tolerate the absence of. An OKF-only consumer reads an ODSF bundle and loses only the design niceties. Full conformance and the consumer contract are in spec.md.

Commands

Invoke as /odsf <command> [target]. Each is detailed in commands.md.

CommandWhat it does
initCreate a bundle. Make the directory, a root index.md declaring odsf_version and okf_version, and the domain folders (foundations/, components/, …).
addWrite one concept document. Pick a design type (§5), fill the recommended frontmatter, body it with the per-type headings (# Tokens, # Anatomy, # Do & Don't).
tokenDefine or update a foundation's tokens frontmatter and project it to styles/tokens.css (colors.primary → --colors-primary). Keep the two in sync; reference foundation tokens with {group.name}.
assetAuthor a companion *.example.html (or *.do.html / *.dont.html) plus its styles/components.css rules (consuming tokens via var(--…)), that renders standalone and shows the minimal correct markup. Foundations get demo sheets (swatches, specimens, scales); iconography gets a searchable icon browser with per-icon usage details. For every pattern and any non-trivial component, derive the *.wireframe.html, the same body linking styles/wireframe.css last to strip skin, and check it first, at more than one width.
editChange an existing concept in place (a new variant, a retuned token). Follows the ripple checklist so a token change reaches tokens.css, components.css, the example, the variant table, each touched concept's generated, and the log, none skipped.
enrichTurn a source (a token export, a component library, a docs site, a Figma spec) into concepts, then a second pass that adds tokens, assets, behaviors, and citations. For URL sources, run the enrichment state machine: bounded crawl, coverage ledger, loop until a full sweep finds nothing new.
linkConnect concepts with markdown links and name the relationship in prose (a component to the foundations it uses, a pattern to the components it composes).
indexGenerate or refresh index.md listings so an agent can navigate by progressive disclosure.
logAppend a dated log.md entry (Creation, Update, Deprecation), newest first.
validateRun the conformance check. node odsf-validate.mjs <bundle>, or the manual checklist in commands.md.
exportConvert an existing source into a conformant bundle: a token file, a component library, a Storybook, a brand site, or a design.md. The producer role. For a live brand site, follow the live-site procedure in commands.md: confirm every component against the fetched DOM (stylesheets keep dead generations), embed the site's real public assets as data URIs, demo every foundation, compose one full page, then reconcile against the source stylesheet and render-verify with screenshots.
migrateAdopt an existing OKF bundle. Add odsf_version to the root index.md (the one required edit, since ODSF rule 1 is OKF conformance), then optionally enrich with tokens, assets, and types. Moving an ODSF v0.1 bundle to v0.2 is OKF's own v0.1-to-v0.2 procedure plus bumping odsf_version.
consumeRead a bundle to apply it to a design task. Orient at index.md, pull foundations, descend by need, copy from the example assets, honor the guidelines.

Implicit mode

Apply ODSF without being asked whenever design-system knowledge is being shaped for an agent to build from later:

  • You are documenting a foundation (a color, typography, spacing, elevation, shape, or motion scale), a component, a pattern, a behavior, or a guideline an agent will reproduce. Write it as a concept with a design type, not loose prose, and ship its example asset, plus its wireframe when it is a pattern or a component with non-trivial layout.
  • You are defining design tokens. Carry them as frontmatter tokens on the foundation that owns them and project them to styles/tokens.css, so the description and the runnable values never diverge.
  • You are exporting or transforming a design system, a token set, or a component library for an agent. Emit a bundle, not a JSON blob or a screenshot.
  • You are editing an existing ODSF bundle (a new variant, a retuned token, a deprecated state). Keep it conformant as you go, and follow the edit ripple checklist in commands.md: a token change reaches the foundation, tokens.css, the component's tokens, components.css, the example asset, the # Variants & States table, every touched concept's generated, and log.md (the indexes and links only if the set of concepts or relationships changed). This is where bundles silently rot if you skip a step. A retuned token also invalidates any verified event on the concepts it touched, so drop those rather than letting an old sign-off vouch for a new value.

Guard. ODSF is for a design system an agent builds from, not human-only design prose. A brand deck, a Figma board, or a marketing page for people is not a bundle. When it is unclear whether an artifact is agent-facing, ask before converting it. Knowledge that is not design-specific (a data table, a runbook, an API) is plain OKF, not ODSF.

Concepts and assets at a glance

An ODSF bundle holds exactly three file kinds. A concept's identity is its path minus .md, so components/button.md is the concept components/button.

  • Concept (.md, carries frontmatter, REQUIRED type). A unit of design knowledge. type is descriptive and open; the conventional values are the foundations (Color, Typography, Spacing, Elevation, Shape, Motion, Layout), the building blocks (Component, Pattern, Behavior, Guideline, Accessibility, Voice), and the containers (Design System, Reference). Recommended frontmatter beyond OKF's: tokens (§4), examples (asset paths), and applies_to. status is now an OKF v0.2 key (draft/stable/deprecated); ODSF keeps experimental as an extension for a component that is shipped but whose API may still move, and an OKF-only consumer tolerates it as an unknown value. Prefer OKF's three when portability matters, and use stale_after rather than a permanent experimental to say the thing needs re-checking.
  • Asset (.html, .css, no frontmatter). A concrete artifact a concept points at. A <concept>.example.html is the canonical correct usage; <concept>.wireframe.html is the same body with the skin stripped by styles/wireframe.css, the structural view; <concept>.do.html / <concept>.dont.html are a contrastive pair; styles/tokens.css, styles/components.css, and styles/wireframe.css are the shared stylesheets. Assets are not concepts and are exempt from the type rule; they exist to be referenced. A bundle SHOULD contain no file types other than .md, .html, and .css.
  • Reserved (index.md, log.md). Keep their OKF meaning at every level. Only the bundle-root index.md carries frontmatter, solely to declare the versions.

The token model

Tokens live once and appear twice, so the agent and the code it writes consume the same values:

  • Frontmatter tokens on the foundation concept that owns them is the canonical, agent-readable definition. It is a map of groups (colors, spacing, typography, radius, motion, …) to named values; a value may be a string or a small map for composite tokens. A component references foundation tokens with the {group.name} syntax rather than restating values, and expresses interactive states as separate suffixed entries (button-primary, button-primary-hover).
  • styles/tokens.css is the mechanical projection of the foundation tokens as CSS custom properties: token path a.b.c → --a-b-c, each as its resolved literal value, under :root. A component token does not project to a custom property; it becomes a rule in styles/components.css that consumes the foundation property with var(--…) (.btn--primary { background: var(--colors-primary); }). A {group.name} reference never appears verbatim in CSS. Keep the projections in sync (/odsf token); the frontmatter is the source of truth. Example assets share one class-naming convention (BEM by default) so a consumer can copy across components coherently.

This is ODSF's core "more": design.md stopped at frontmatter tokens; ODSF also ships the runnable CSS and the example that links it, so describing the system and using it never diverge.

The structure layer

Every CSS property is either structure (boxes move, resize, or reorder when it changes: layout, spacing, sizing, order, the type scale, breakpoints) or skin (the same boxes just look different: color, the type family, radius, shadow, imagery, motion). Tokens carry the skin faithfully, and correct skin is exactly what masks structural error, so a component or pattern documents its skeleton twice: a # Structure body section (direction, order of parts, spacing steps as tokens, sizing behavior, reflow per breakpoint, written before # Tokens) and a *.wireframe.html asset, the example's body verbatim with styles/wireframe.css linked last to strip the skin and outline every box. The wireframe is derived from the same markup and structural CSS the example uses, so it cannot drift; resize it to watch the real reflow, and judge structure while it is still gray, both when authoring and when reviewing built UI at fine granularity (spec §6, §7).

Validate

Run the bundled checker against a bundle directory:

sh
node odsf-validate.mjs path/to/bundle            # tolerant: errors only on the hard rules
node odsf-validate.mjs path/to/bundle --strict   # producer gate, on a v0.2 container

It errors (exit 1) only on the hard requirements (a concept missing frontmatter or a non-empty type, or a root index.md that does not declare odsf_version) and warns, without failing, on the soft guidance a permissive consumer tolerates: a missing okf_version, a referenced example asset that is absent, an unresolved {group.name} token reference, a broken cross-link, a wireframe whose <body> diverges from its example's, a non-ISO log.md date, an identity outside the actor convention, or a file that is not .md/.html/.css. --strict additionally fails on the inherited OKF v0.2 producer findings (a leftover timestamp or # Citations, a sources entry with no resource, a generated with no by, an out-of-range status), but only once the root declares okf_version: "0.2", so a bundle still on the v0.1 container validates clean. The reviewer's checklist behind the script is in commands.md.

Files in this skill

  • spec.md. The full ODSF v0.2 normative reference (conformance, the token model, the type vocabulary, assets, body conventions, the status reconciliation with OKF v0.2, versioning, changes from v0.1, non-goals).
  • commands.md. Each command end to end, with the files it touches and the validate checklist.
  • enrich-machine.md. The enrichment state machine for URL sources: S0–S10, the coverage ledger, interrupts, and the loop-until-dry convergence rule.
  • templates.md. Concept shells per type (foundation, component, pattern, behavior, guideline, reference), root and sub index.md, log.md, plus the self-rendering example, wireframe, wireframe.css, and tokens.css asset templates.
  • odsf-validate.mjs. The zero-dependency conformance checker.

Source

ODSF is published at saschb2b/Open-Design-System-Format (spec, philosophy, templates, a zero-dependency validator, a single-file viewer, and three browsable example bundles cloning Claude, GitHub Primer, and Vercel Geist). It builds on Google Cloud's Open Knowledge Format (the container) and Google Labs' design.md (the token model). ODSF v0.2 tracks OKF v0.2, so the two numbers stay aligned; ODSF's own additions did not change in this revision, and everything that moved moved because the container underneath it did. It remains an early, intentionally minimal standard designed for backward-compatible growth, so re-check the spec for fields added after this snapshot.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

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

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

Author, validate, and maintain a design system for AI agents as a conformant Open Design System Format (ODSF) bundle, a profile (v0.2) of Open Knowledge Format v0.2 that adds design tokens, runnable HTML/CSS example assets, wireframe views, and design-oriented concept types. Commands init, add, token, asset, edit, enrich, link, index, log, validate, export, migrate, consume. Use when the user types /odsf or asks to package a design system for an agent, document design tokens, components, patterns, behaviors, or guidelines so an agent builds UI that matches it, capture a component's skeleton...

Vì sao nên dùng Odsf 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. Odsf 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 Odsf trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/saschb2b/skills/tree/main/skills/engineering/odsf. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành 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 Odsf?

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.

Bạn có thể dùng Odsf 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 Odsf 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 Odsf có miễn phí không?

Có. Kỹ năng này được saschb2b 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 cho mô hình các công cụ mới để gọi — mã đượ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à tiêu chí của đầu ra tốt. 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 👇