visionos-widgets

visionos-widgets is a skill for Claude Code from rshankras/claude-code-apple-skills. It costs 37 tokens per session (2,533 once invoked), scanned A, original, MIT.

A guide to building widgets for visionOS, Apple's operating system for spatial computing. It covers widgets placed in physical space, including their mounting, visual treatment, size of detail, and display modes.

In plain words
What is it for?
Use it to create or adapt visionOS widgets, choose surface or wall placement, select glass or paper styling, handle proximity-based detail, and choose spatial widget families.
Why use it?
It helps adapt ordinary widgets to surroundings and user distance, so they remain readable and visually appropriate when viewed in a three-dimensional environment.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the apple-skills plugin — 182 skills shipped together , and of apple-skills

Good fit Use it to create or adapt visionOS widgets, choose surface or wall placement, select glass or paper styling, handle proximity-based detail, and choose spatial widget families.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rshankras/claude-code-apple-skills/widgets
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 rshankras/claude-code-apple-skills --skill widgets
Clone the repo
git clone --depth 1 https://github.com/rshankras/claude-code-apple-skills

Made for: Claude Code.

Or install apple-skills, the plugin that ships this one along with the rest of its 182 skills.

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 visionos-widgets

README.md
[![agentmods](https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/widgets/github.svg)](https://agentmods.dev/skills/rshankras/claude-code-apple-skills/widgets)
Your own site
<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/widgets"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/widgets/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 visionos-widgets

Your own site · 80×15
<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/widgets"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/widgets.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,533 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.00037 $0.02533
Opus 5.5 $0.00015 $0.01013
Sonnet 5.5 $0.00007 $0.00507
Haiku 4.5 $0.00004 $0.00253

Measured yesterday against content hash e92eb43848e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

visionos-widgets 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 yesterday.

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.

skills/visionos/widgets/SKILL.md · 288 lines

How it starts

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

visionOS Widgets

Patterns for building widgets that live in physical space on visionOS. Covers mounting styles, textures, proximity-aware detail levels, spatial widget families, and rendering modes.

When This Skill Activates

Use this skill when the user:

  • Asks to create or adapt a widget for visionOS
  • Mentions mounting styles (elevated, recessed)
  • Wants glass or paper texture on a widget
  • Asks about proximity awareness or level of detail in widgets
  • Mentions spatial widget families or .systemExtraLargePortrait
  • Wants to control container backgrounds or rendering modes (full color vs accented)
  • Is porting an existing iOS/iPadOS widget to visionOS

Decision Tree

What do you need for your visionOS widget?
|
+- Where should the widget appear?
|  +- On a surface (table, shelf) -> .elevated (default)
|  +- Embedded in a wall -> .recessed
|  +- Both -> .supportedMountingStyles([.elevated, .recessed])
|
+- What visual treatment?
|  +- Transparent, blends with environment -> .glass (default)
|  +- Opaque, poster-like appearance -> .paper
|
+- How should it respond to user distance?
|  +- Full detail when close -> @Environment(\.levelOfDetail) == .default
|  +- Simplified when far -> @Environment(\.levelOfDetail) == .simplified
|
+- What size families?
|  +- Standard -> .systemSmall, .systemMedium, .systemLarge, .systemExtraLarge
|  +- Tall portrait -> .systemExtraLargePortrait (visionOS only)
|
+- How should colors render?
|  +- Full color (default) -> No extra work
|  +- System-tinted monochrome -> Mark backgrounds with .containerBackground(for:)

API Availability

API Minimum Version Notes
WidgetKit on visionOS visionOS 1.0 Basic widget support
.containerBackground(for: .widget) visionOS 1.0 Removable background marking
@Environment(\.showsWidgetContainerBackground) visionOS 1.0 Background visibility check
.supportedMountingStyles() visionOS 2.0 Elevated and recessed placement
.widgetTexture(.glass / .paper) visionOS 2.0 Widget surface material
@Environment(\.levelOfDetail) visionOS 2.0 Proximity-aware layouts
.systemExtraLargePortrait visionOS 2.0 Tall portrait widget family

Read the full file on GitHub · 288 lines

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. yesterday First seen · 288 lines · 37 tokens per session scan A e92eb43848e4

Subscribe to this mod's changes

visionos-widgets is a skill published in the GitHub repository rshankras/claude-code-apple-skills (864 stars, last pushed 2d ago), licensed MIT. It adds 37 tokens to every session and 2,533 once invoked, about $0.0001 per session on Opus 5.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-11-05.

Related

visionos-widgets compared with skills from other repositories

visionos-widgets next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
visionos-widgetsrshankras/claude-code-apple-skillsSkill8642d agoMITA37Claude Code
apple-hig-uxDev869/swift-tothemaxSkill74mo agoMITA164Claude Code
app-icon-optimizationEronred/aso-skillsSkill2.2k1mo agoMITA103Claude Code
apple-higjustinwetch/HIGAgentSkillsSkill80420d agoMITA158Claude Code, Codex
flame-harness-admobtjdrhs90/flutter-flame-harnessSkill6110d agoMITA41Claude Code
flame-harness-submittjdrhs90/flutter-flame-harnessSkill6110d agoMITA38Claude Code
flame-harness-designtjdrhs90/flutter-flame-harnessSkill6110d agoMITA38Claude Code