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.
npx skills add YanxReal/Xcode-MPC --skill xcode-assetsgit clone --depth 1 https://github.com/YanxReal/Xcode-MPCWrote 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.
[](https://agentmods.dev/skills/yanxreal/xcode-mpc/xcode-assets)<a href="https://agentmods.dev/skills/yanxreal/xcode-mpc/xcode-assets"><img src="https://agentmods.dev/badge/skills/yanxreal/xcode-mpc/xcode-assets/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.
<a href="https://agentmods.dev/skills/yanxreal/xcode-mpc/xcode-assets"><img src="https://agentmods.dev/badge/skills/yanxreal/xcode-mpc/xcode-assets.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00824 |
| Opus 5.5 | $0.00000 | $0.00330 |
| Sonnet 5.5 | $0.00000 | $0.00165 |
| Haiku 4.5 | $0.00000 | $0.00082 |
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 3mo 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.
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. 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_contents—fs.readdirrecursive, filter*.colorset|imageset|appiconset|symbolset|dataset→{name,type,relativePath,absolutePath}asset_manage_color— creates${name}.colorset/Contents.jsonwithsRGBcomponents viahexToRgbFloat(#RRGGBB→0.000-1.000). Light asuniversal, Dark asuniversal+appearances:[{luminance:dark}]. Supports#RRGGBBAA.asset_manage_image— creates${name}.imageset. Bitmap: copy1x/2x/3xasName_1x.pngetc. Vector: singleName.pdfwithpreserves-vector-representation:true.asset_read_info— readsContents.json(or file) and returns raw JSON.asset_delete— safefs.rm -rfvalidates.colorset|.imageset|...+.xcassetscontainment.asset_validate_actool—xcrun actool --compile /tmp/actool_out --platform iphoneos|macosx|appletvos|watchos|xros --minimum-deployment-target 15.0asset_generate_appicon— 42 slots for ALL OS: iOS 18 + macOS 10 + watchOS 7 + tvOS 4 + visionOS 3. IfbaseImagePath(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
hexToRgbFloatconverts#RRGGBBtosRGBfloat0.000-1.000withalphasupport.sipsis macOS native — no extra deps. If missing, tool still createsContents.jsonwith slots.asset_deletevalidates extension and.xcassetscontainment to preventrm -rf /accidents.
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.
- 3mo ago First seen · 45 lines · 0 tokens per session scan C 6c3983689b1a
xcode-assets is a skill published in the GitHub repository YanxReal/Xcode-MPC (1 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 824 tokens. 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.
xcode-assets compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| xcode-assetsYanxReal/Xcode-MPC | Skill | 1 | 1mo ago | MIT | C | 0 | Claude Code |
| heimdallerayendes/app-store-connect-mcp | Skill | 75 | today | MIT | A | 180 | Claude Code |
| swift-expertpersonamanagmentlayer/pcl | Skill | 46 | 1mo ago | Apache-2.0 | A | 76 | Claude Code |
| ios-expertpersonamanagmentlayer/pcl | Skill | 46 | 1mo ago | Apache-2.0 | A | 64 | Claude Code |
| swift-coding-standardswilliamzujkowski/standards | Skill | 22 | 3mo ago | MIT | A | 23 | Claude Code, Codex |
| Apple Shortcuts Integrationclaude-office-skills/skills | Skill | 600 | 10mo ago | MIT | A | 21 | Claude Code, Codex |
| ipaship-auditatharvnaik1/ipaship-audit | Skill | 71 | 6mo ago | MIT | A | 57 | Claude Code, Codex |