Logo Desktop Visual Design

Desktop Visual Design

Cộng đồng
Firstp1ck
desktop-visual-design

Use when building or styling desktop apps, Quickshell QML components, bars, panels, popups, launchers, notifications, or widgets that should fit an existing system theme. Derives reusable palette, interaction, spacing, typography, border, geometry, and motion tokens from the target project and desktop instead of guessing values.

Add to TypingMind

Tổng quan

Nhà phát hànhFirstp1ck
Kho mãpi-coding-agent-forge
Tên kỹ năngdesktop-visual-design
Sao
93
Bản fork
22
Tệp đi kèm
3
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ộ.

  • 3 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 Firstp1ck 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 Desktop Visual Design 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/Firstp1ck/pi-coding-agent-forge/tree/main/pi-skill-desktop-visual-design/skills/desktop-visual-design
  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/Firstp1ck/pi-coding-agent-forge.git /tmp/pi-coding-agent-forge
mkdir -p .claude/skills
cp -r /tmp/pi-coding-agent-forge/pi-skill-desktop-visual-design/skills/desktop-visual-design .claude/skills/desktop-visual-design
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 Desktop Visual Design 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 Desktop Visual Design 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 Desktop Visual Design 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.

Desktop Visual Design

Build system-native desktop interfaces from the visual rules already present in the user's environment. Inspect the target first, turn repeated values into semantic tokens, reuse host components, and verify the result across interaction states and theme changes. When the target has no visual contract, use the restrained terminal-first fallback defined here rather than inventing a glossy web-app style.

Installing this Pi package makes the skill available to Pi. It does not modify desktop settings, themes, or application code by itself.

When to use

Trigger for:

  • Quickshell widgets, panels, bars, popups, overlays, launchers, and notifications.
  • Desktop apps built with QML, Qt, GTK, Tauri, Electron, or embedded web views.
  • UI reviews focused on palette, hierarchy, spacing, typography, borders, geometry, focus states, and motion.
  • Requests to make a desktop interface match an existing system theme or first-party surface.

Do not trigger for server-side work, CLI output formatting, compositor configuration unrelated to application appearance, or general public-website design without a desktop-integration requirement.

Principles

  1. Inspect before styling. Existing theme files, token objects, shared controls, and first-party surfaces are the source of truth.
  2. Honor the active color scheme. Standalone apps must read the toolkit, portal, or host-shell light or dark preference before choosing a built-in palette. For Linux Qt apps, prefer an explicit XDG portal result at startup because Qt platform-theme environment can differ between launchers; use Qt style hints as the fallback and live-change input. Automatic mode must update when its authoritative preference changes.
  3. Use semantic roles. Components depend on foreground, background, accent, urgent, muted, and named surface roles instead of literal palette colors.
  4. Define every interaction state. Cover idle, hover, keyboard cursor, focus, selected, pressed, disabled, and urgent states where they apply.
  5. Keep geometry stable. Reserve border and focus-ring space so interaction never shifts layout.
  6. Use one scale. Derive spacing and typography from named tokens and a documented base size.
  7. Retheme through one path. Parse, validate, and publish an atomic theme snapshot. Theme changes must not leave mixed old and new values on screen.
  8. Match existing motion. Honor the target's motion language and reduced-motion settings. When no motion language exists, animate only short color or opacity changes.
  9. Restrain decoration. Without an explicit reference, prefer opaque flat surfaces, one accent family, thin borders, square geometry, and no gradients, glow, blur, hover lift, or decorative shadows.
  10. Compare relationships, not sampled pixels. A screenshot can establish palette relationships, hierarchy, composition, framing, type treatment, landmarks, and state language. It does not override project tokens with guessed colors or justify forcing its apparent color scheme.

Token model

Palette

Start with semantic roles:

RoleUse
foregroundtext, icons, and state washes
backgroundprimary surfaces and scrims
accentselection, focus punctuation, and progress
urgenterrors and critical attention
mutedplaceholders, dividers, and metadata

Add surface-specific roles only when the target already distinguishes them. Do not name component tokens after a hue. The fallback uses a violet-charcoal relationship in dark mode: a charcoal base with a restrained violet cast, slightly separated opaque surfaces, high-contrast foreground, dimmer metadata, and a periwinkle-like structural accent. Its light counterpart uses a softly violet-tinted light base, slightly darker or brighter opaque surfaces as needed for separation, dark foreground, dimmer metadata, and a deeper related structural accent. These are relationships, not literal colors. Selection, focus, and progress share the accent family; semantic success gets a distinct success role only when the interface needs it, and urgent remains reserved for errors. Do not introduce multi-hue decorative palettes, gradients, glow, or translucent glass unless the target already uses them.

Interaction states

If the target project has no state model, use this compact reference profile:

StateFill alphaBorder alphaBorder width
normal0.000.351px
hover or keyboard cursor0.060.601px
focus0.061.001px
selected0.160.721px
pressed0.220.881px
text selection0.30none0px

Apply state precedence in this order: pressed, focus, hover or cursor, selected, active, idle. Use visible focus even when hover and focus share a fill.

Spacing and typography

At a 12px base font, the fallback spacing scale is:

xxs 2, xs 4, sm 6, md 8, lg 10, xl 12, xxl 16, xxxl 20, huge 24

Fallback type multipliers are caption 0.833, body-small 0.917, body 1.0, subtitle 1.083, title 1.167, heading 1.333, display 2.0, and display-large 2.333. Prefer the desktop's monospace UI alias across controls, labels, and data. Use display sizes selectively for the primary title, value, or empty-state landmark. Use uppercase labels with restrained 0.08em to 0.12em tracking for short section headings, not for paragraphs or long actions.

The target project's own values always win. See references/design-tokens.md for the complete fallback profile.

Geometry and motion

Read geometry from project tokens or compositor settings when available. On Hyprland, hyprctl -j getoption decoration:rounding and general:gaps_out can inform radius and edge spacing. Validate command output and keep the last valid value on failure.

Without a geometry source, use square panels and controls with a 0px radius, allowing up to 2px only when needed to avoid harsh raster clipping. Use opaque surfaces, 1px borders, and simple separators. Let an outer frame, major module borders, and a small number of separators carry hierarchy; do not wrap every row in a card. Keep status and selection treatments rectangular. Do not use pill geometry unless shape itself communicates a compact status or toggle.

Without an existing motion language, use 90 to 120ms color or opacity transitions and no positional hover movement. Keep functional progress animation, such as a spinner, constant and subtle. Reduced-motion mode removes nonessential animation.

Workflow

  1. Confirm the target. Identify the toolkit, host shell or app, supported interaction methods, scale factors, supported theme modes, and the current system color-scheme preference. Completion: the runtime, active preference, and visual comparison target are explicit.
  2. Inventory the visual contract. Find palette sources, color-scheme signals, theme objects, token modules, shared controls, font settings, geometry sources, motion constants, and first-party reference surfaces. Completion: each planned value has an owner or is marked as a fallback.
  3. Analyze supplied screenshots. Record observations separately from implementation choices. Compare palette relationships; primary, secondary, and display hierarchy; density and composition; outer and module framing; typography scale and tracking; sparse functional landmark iconography; and idle, hover, focus, selected, pressed, disabled, success, and urgent state language. Also record what the image cannot establish, including exact colors, unseen states, automatic-mode behavior, and the opposite color scheme. Completion: each observation is mapped to a project-owned token, a semantic fallback role, or an explicit unknown.
  4. Choose the integration path. Inside a host project, reuse its theme and control modules. For a standalone app, define source precedence for automatic mode and an explicit app-owned input only for user overrides. A Linux Qt app should prefer a valid XDG portal light or dark result, then fall back to Qt style hints. Read the matching reference file.
  5. Create semantic tokens. Map source values into complete light and dark palette, surface, state, spacing, typography, border, geometry, and motion roles. Keep literal fallback colors in the theme owner. Completion: UI components own no palette literals.
  6. Implement complete states. Add pointer, keyboard, focus, selected, pressed, disabled, success, and urgent behavior as needed. Completion: keyboard use is visible and layout remains stable.
  7. Wire theme changes. Subscribe to the toolkit, portal, host-shell, or validated file signal that owns the preference. Publish all changed tokens together and retain the last valid snapshot on input failure.
  8. Compare the result. Place current captures beside the references at representative scale. Judge whether the same relationships hold across palette, hierarchy, density/composition, framing, type scale/tracking, landmarks, and states—not whether pixels match. Repeat in both color-scheme branches and document intentional differences.
  9. Verify. Force light and dark branches, return to automatic mode, change the live system preference, compare first-party surfaces, test scaling and input modes, scan components for palette literals, and run the project's checks.

Invocation design

  • Strong signals include desktop UI, Quickshell, QML, panel, popup, launcher, notification, native-looking, system theme, live retheme, and visual consistency.
  • Branches are host-project component, standalone desktop app, portable web-view integration, theme-system design, and visual review.
  • Do not route compositor keybinds, backend work, package maintenance, or unrelated web branding here.

References

  • references/design-tokens.md defines the fallback token profile and explains when project values take priority.
  • references/quickshell-plugin-styling.md covers components that run inside an existing Quickshell configuration.
  • references/portable-theme-loading.md covers explicit theme inputs, atomic reloads, Hyprland geometry, QML, and web-view mappings.

Verification

  • Search changed UI components for literal palette colors. Keep fallback literals only in the theme owner and justify any exception.
  • Test pointer and keyboard focus, selected, pressed, disabled, and urgent states.
  • Force both light and dark branches, then run a separate automatic-mode acceptance check with no test override and confirm it matches the desktop preference.
  • Test no-preference, malformed, and unavailable source results plus any disagreement precedence between toolkit and portal values.
  • Change the live desktop preference and confirm every semantic color tied to the live source updates together without restarting the app.
  • Test supported scale factors, font changes, and bar or panel edges.
  • Compare current screenshots beside the supplied reference and existing first-party surfaces. Record pass, difference, or not observable for palette relationships; hierarchy; density and composition; outer and module framing; typography scale and short-label tracking; sparse functional landmark icons; and state language. Verify meaning and relative emphasis rather than sampled colors or exact coordinates.
  • When the fallback is active, also check for flat opaque surfaces, a coherent light counterpart to the dark relationship, monospace UI text, selective display scale, square geometry, stable 1px focus geometry, restrained accent use, rectangular states, and the absence of decorative glow or hover lift. Green or another success color must remain semantic punctuation rather than general selection decoration. For Quickshell windows, confirm the visual root belongs to contentItem and that intended opaque surfaces do not reveal the windows behind them.
  • Run the target project's documented formatting, type, and UI checks.

Safety and failure modes

  • Keep inspection read-only until the user authorizes UI changes.
  • Do not edit desktop settings or theme sources when the request only covers an app or component.
  • Treat theme files and environment values as untrusted input. Validate colors, numbers, paths, and width lists.
  • Use argument arrays for external commands. Never build shell commands from theme values.
  • A missing or unknown system color-scheme preference uses the toolkit palette or a documented neutral fallback. It must not silently force light mode.
  • Missing theme data uses a documented fallback and reports that fallback once.
  • Invalid reloads retain the last valid theme instead of partially applying values.
  • Make targeted edits to files containing private-use or Nerd Font glyphs.

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 Desktop Visual Design làm được gì?

Use when building or styling desktop apps, Quickshell QML components, bars, panels, popups, launchers, notifications, or widgets that should fit an existing system theme. Derives reusable palette, interaction, spacing, typography, border, geometry, and motion tokens from the target project and desktop instead of guessing values.

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-skill-desktop-visual-design/skills/desktop-visual-design. 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 Desktop Visual Design?

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 Desktop Visual Design 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 Desktop Visual Design 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 Desktop Visual Design có miễn phí không?

Có. Kỹ năng này được Firstp1ck 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 👇