tauri-custom-window-chrome

tauri-custom-window-chrome is a skill for Claude Code, Codex from sundegan/agent-skills. It costs 146 tokens per session (10,827 once invoked), scanned A, original, MIT.

A set of instructions for replacing a Tauri desktop app's standard window frame with a title bar and controls drawn by the app. Tauri is a framework for building desktop apps with web technologies.

In plain words
What is it for?
Use it to build borderless windows, custom title bars, toolbars, drag areas, and platform-specific close, minimize, and maximize behavior.
Why use it?
It helps the app keep window dragging and controls working across operating systems, including native macOS traffic lights.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build borderless windows, custom title bars, toolbars, drag areas, and platform-specific close, minimize, and maximize behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sundegan/agent-skills/tauri-custom-window-chrome
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sundegan/agent-skills --skill tauri-custom-window-chrome
Clone the repo
git clone --depth 1 https://github.com/sundegan/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tauri-custom-window-chrome

README.md
[![agentmods](https://agentmods.dev/badge/skills/sundegan/agent-skills/tauri-custom-window-chrome/github.svg)](https://agentmods.dev/skills/sundegan/agent-skills/tauri-custom-window-chrome)
Your own site
<a href="https://agentmods.dev/skills/sundegan/agent-skills/tauri-custom-window-chrome"><img src="https://agentmods.dev/badge/skills/sundegan/agent-skills/tauri-custom-window-chrome/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tauri-custom-window-chrome

Your own site · 80×15
<a href="https://agentmods.dev/skills/sundegan/agent-skills/tauri-custom-window-chrome"><img src="https://agentmods.dev/badge/skills/sundegan/agent-skills/tauri-custom-window-chrome.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,827 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00146 $0.10827
Opus 5 $0.00073 $0.05414
Sonnet 5 $0.00029 $0.02165
Haiku 4.5 $0.00015 $0.01083

Measured 10d ago against content hash ec54fabc1e65, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

tauri-custom-window-chrome scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tauri-skills/tauri-custom-window-chrome/SKILL.md · 1,000 lines

How it starts

The opening of the file, as written. The whole thing — 1,000 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tauri Custom Window Chrome

Use this skill to implement custom window chrome in a Tauri v2 desktop app.

On macOS, use the native traffic-light model: draw the titlebar/toolbar in the web UI, but keep native red/yellow/green controls by restoring the required native style masks and positioning them from Rust/AppKit. This preserves native behaviors such as the green-button fullscreen/tile popover, native traffic-light hover behavior, keyboard/window-management integration, and lower-risk OS parity.

Cover these baseline capabilities when replacing or customizing the native titlebar:

  • Disable native window chrome for the target window.
  • Render the titlebar inside the web UI.
  • Reserve window-drag areas for moving the native window.
  • Keep interactive controls clickable outside window-drag areas.
  • Wire close, minimize, and maximize controls to Tauri window APIs on platforms where controls are app-drawn.
  • Preserve native macOS traffic-light behavior instead of drawing macOS traffic lights in the web UI.
  • Preserve suitable existing top-of-content controls by moving them into the titlebar instead of duplicating or dropping them.
  • Do not synthesize a new app icon, app name, route title, document title, or other titlebar identity by default.
  • Preserve expected layout spacing so content does not overlap titlebar controls.
  • Preserve the app's native scrolling behavior, and pay attention to the fixed title bar height calculation when adding a custom title bar, to avoid introducing new page-level scrollbars due to page overflow.
  • Recreate platform window-frame details that materially affect the app's appearance or usability, especially macOS rounded corners, window-edge separation, and active/inactive titlebar states.

Keep the scope limited to titlebar and window-chrome work. If the user wants a normal native OS titlebar with no app-drawn toolbar/chrome, do not apply this skill.

Core Model

Tauri has two layers involved:

  • Native window chrome: drawn by the OS when decorations is true.
  • Web UI titlebar: drawn by the app when decorations is false.

Read the full file on GitHub · 1,000 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 1,000 lines · 146 tokens per session scan A ec54fabc1e65

Subscribe to this mod's changes

tauri-custom-window-chrome is a skill published in the GitHub repository sundegan/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 146 tokens to every session and 10,827 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

frontend-ui-dark-ts

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

microsoft/skills · 48 tokens

reveal-hover-effect

Build cursor-following spotlight reveals that expose a second aligned image through a soft radial mask. Use for hover-to-color, before-and-after, x-ray, material, texture, product-detail, and illustrated hero effects where a desaturated or embossed base image should remain visible while another treatment follows an…

MengTo/Skills · 66 tokens

frontend-visual-qa

Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…

daymade/claude-code-skills · 145 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens