xcode-assets

A toolset for managing Xcode asset catalogs, which store an Apple app's colors, images, icons, and related files.

In plain words
What is it for?
It is for creating and managing color and image sets, generating AppIcon assets, reading or safely deleting catalog entries, and validating them with Apple's actool.
Why use it?
It reduces manual editing of asset-catalog files and helps check that assets build correctly for Apple platforms.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/yanxreal/xcode-mpc/xcode-assets
Any agent
npx skills add YanxReal/Xcode-MPC --skill xcode-assets
Clone the repo
git clone --depth 1 https://github.com/YanxReal/Xcode-MPC

Made for: Claude Code, Codex.

Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 824 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00081 $0.00824
Opus 5 $0.00041 $0.00412
Sonnet 5 $0.00016 $0.00165
Haiku 4.5 $0.00008 $0.00082

Measured yesterday against content hash 6c3983689b1a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

xcode-assets scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- `asset_delete` — safe `fs.rm -rf` validates `.colorset|.imageset|...` + `.xcassets` containment.
skills/xcode-assets/SKILL.md · 45 lines

How it starts

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

Xcode Assets & AppIcon

Manages Assets.xcassets with fine control over Contents.json + actool + sips (7 tools: 6 assets + 1 AppIcon).

Tools

  • asset_list_contentsfs.readdir recursive, filter *.colorset|imageset|appiconset|symbolset|dataset{name,type,relativePath,absolutePath}
  • asset_manage_color — creates ${name}.colorset/Contents.json with sRGB components via hexToRgbFloat (#RRGGBB0.000-1.000). Light as universal, Dark as universal + appearances:[{luminance:dark}]. Supports #RRGGBBAA.
  • asset_manage_image — creates ${name}.imageset. Bitmap: copy 1x/2x/3x as Name_1x.png etc. Vector: single Name.pdf with preserves-vector-representation:true.
  • asset_read_info — reads Contents.json (or file) and returns raw JSON.
  • asset_delete — safe fs.rm -rf validates .colorset|.imageset|... + .xcassets containment.
  • asset_validate_actoolxcrun actool --compile /tmp/actool_out --platform iphoneos|macosx|appletvos|watchos|xros --minimum-deployment-target 15.0
  • asset_generate_appicon42 slots for ALL OS: iOS 18 + macOS 10 + watchOS 7 + tvOS 4 + visionOS 3. If baseImagePath (1024x1024) → sips -z {pixels} per slot.

Workflows

Color + Image + Validate:

asset_manage_color {xcassetsPath:".../Assets.xcassets", name:"Primary", hexLight:"#FF5733", hexDark:"#900C3F"}
→ asset_manage_image {xcassetsPath:"...", name:"Logo", imagePath1x:"/tmp/a.png", imagePath2x:"/tmp/[email protected]"}
→ asset_list_contents {xcassetsPath:"..."}
→ asset_validate_actool {xcassetsPath:"...", platform:"iphoneos"}

AppIcon Full OS:

asset_generate_appicon {xcassetsPath:".../Assets.xcassets", iconName:"AppIcon", baseImagePath:"/tmp/1024.png", includeIos:true, includeMacOs:true, includeWatchOs:true, includeTvOs:true, includeVisionOs:true}
// → 42 images, sips resized: [email protected] (40px), [email protected] (1024px), icon_watch_... etc.

Notes

  • hexToRgbFloat converts #RRGGBB to sRGB float 0.000-1.000 with alpha support.
  • sips is macOS native — no extra deps. If missing, tool still creates Contents.json with slots.
  • asset_delete validates extension and .xcassets containment to prevent rm -rf / accidents.

Read the full file on GitHub · 45 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 · 45 lines · 0 tokens per session scan C 6c3983689b1a

Subscribe to this mod's changes

xcode-assets is a skill published in the GitHub repository YanxReal/Xcode-MPC (1 stars, last pushed yesterday), licensed MIT. It adds 81 tokens to every session and 824 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). 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

shortcuts-playground

Build, validate, sign, archive, and REMIX macOS/iOS Shortcuts by creating plist files. Use when asked to create, modify, or remix shortcuts; automate workflows; build .shortcut files; or generate Shortcuts plists. Covers WF actions, AppIntents, third-party actions, variable references, and control flow using bundled…

viticci/shortcuts-playground-plugin · 81 tokens

programming-swift

Provides the complete content of 'The Swift Programming Language (6.4 beta)' book by Apple. Use this skill when you need to verify Swift syntax, look up language features, understand concurrency, resolve compiler errors, or consult the formal language reference.

kylehughes/the-unofficial-swift-programming-language-skill · 55 tokens

apple-design

Complete Apple Human Interface Guidelines (HIG) and Apple Design System standard. Use when designing, building, or auditing UI/UX for iOS, iPadOS, macOS, watchOS, visionOS, or Apple-styled web and mobile applications.

billythekidz/apple-design-skill · 55 tokens

ipaship-audit

Use when auditing iOS/Android app submissions for compliance with Apple App Store Review Guidelines or Google Play Developer Policies. Scan .ipa, .apk, or .zip files against official store policies, generate structured compliance reports, and identify violations with remediation steps.

atharvnaik1/ipaship-audit · 57 tokens

Apple Shortcuts Integration

Create and trigger Apple Shortcuts for iOS/macOS automation and cross-platform workflows.

claude-office-skills/skills · 21 tokens

apple-legal-max

Legal and privacy compliance for Apple-platform apps (iOS/iPadOS/macOS/watchOS/tvOS/visionOS). Use this skill WHENEVER a task touches - privacy policy, terms of service, ToS, EULA, license agreement, privacy manifest, PrivacyInfo.xcprivacy, required reason APIs, App Tracking Transparency, ATT, IDFA, tracking domains…

Dev869/swift-tothemax · 235 tokens