apple-browsers: Skill for Claude Code

.claude/skills/ddg-xcode-add-file/SKILL.md

ddg-xcode-add-file is a skill for Claude Code from duckduckgo/apple-browsers. It costs 39 tokens per session (714 once invoked), scanned A, original, Apache-2.0.

A procedure for adding, moving, renaming, or deleting files in an iOS or macOS Xcode project. Xcode is Apple's tool for building apps, and its project file records which files belong to each build.

In plain words
What is it for?
Use it when changing files outside Swift packages, especially when deciding whether the project file also needs editing.
Why use it?
It helps avoid duplicate compilation and missing project references by distinguishing ordinary folders from folders Xcode tracks automatically.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is duckduckgo/apple-browsers's own configuration. It tells Claude Code how to work on apple-browsers itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything apple-browsers configures →

Reuse

Borrowing it

Nothing to install: this file belongs to duckduckgo/apple-browsers. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/duckduckgo/apple-browsers/main/.claude/skills/ddg-xcode-add-file/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/duckduckgo/apple-browsers

Made for: Claude Code.

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 ddg-xcode-add-file

README.md
[![agentmods](https://agentmods.dev/badge/skills/duckduckgo/apple-browsers/ddg-xcode-add-file/github.svg)](https://agentmods.dev/skills/duckduckgo/apple-browsers/ddg-xcode-add-file)
Your own site
<a href="https://agentmods.dev/skills/duckduckgo/apple-browsers/ddg-xcode-add-file"><img src="https://agentmods.dev/badge/skills/duckduckgo/apple-browsers/ddg-xcode-add-file/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 ddg-xcode-add-file

Your own site · 80×15
<a href="https://agentmods.dev/skills/duckduckgo/apple-browsers/ddg-xcode-add-file"><img src="https://agentmods.dev/badge/skills/duckduckgo/apple-browsers/ddg-xcode-add-file.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 714 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.00039 $0.00714
Opus 5.5 $0.00016 $0.00286
Sonnet 5.5 $0.00008 $0.00143
Haiku 4.5 $0.00004 $0.00071

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

Security

Grade A, and why

ddg-xcode-add-file 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 8d 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.

.claude/skills/ddg-xcode-add-file/SKILL.md · 44 lines

What it actually says

Add, move or delete a file in the Xcode projects

Files inside a Swift package (SharedPackages/, iOS/LocalPackages/, macOS/LocalPackages/) need no project change: SwiftPM reads them from disk. For everything else, what to do depends on how the destination folder is represented in iOS/DuckDuckGo-iOS.xcodeproj/project.pbxproj or macOS/DuckDuckGo-macOS.xcodeproj/project.pbxproj.

  1. Classify the destination. For each ancestor folder, nearest first, run grep "path = <FolderName>;" <project.pbxproj> | grep PBXFileSystemSynchronizedRootGroup. A match is a buildable folder; no match all the way up is a group. If a folder name is ambiguous, confirm the match's ID is listed in the parent group's children. On iOS, iOS/DuckDuckGo/ itself and iOS/DuckDuckGoTests/ are still groups. The macOS project is mid-migration: most of its folders are still groups.

  2. Buildable folder: create, move or delete the file on disk and stop. A pbxproj entry on top of that compiles the file twice. If the file needs a different target than its folder gives it, mirror an existing PBXFileSystemSynchronizedBuildFileExceptionSet, or ask the user to set it in Xcode's File Inspector.

  3. Group: pick a sibling file with the same target membership and copy its entries with fresh IDs (python3 -c "import secrets; print(secrets.token_hex(12).upper())", then grep that each ID is unused):

    • one PBXFileReference
    • one PBXBuildFile per target
    • one child line in the parent PBXGroup
    • one line in each target's PBXSourcesBuildPhase

    On macOS that is normally two targets: DuckDuckGo Privacy Browser and DuckDuckGo Privacy Browser App Store, or Unit Tests and Unit Tests App Store. A file in only one of them builds locally and fails in CI. Moving or deleting a file removes the same entries.

  4. Edit surgically. Insert or delete lines anchored on the sibling's exact lines. Never re-serialize the file, for example with the xcodeproj gem: it rewrites package references and produces an unreviewable diff.

  5. New directory under a group: ask the user to create it in Xcode as a folder (File ▸ New ▸ Folder) so it becomes a buildable folder, on iOS and macOS alike. Converting existing groups belongs in dedicated migration PRs that use Xcode's Convert to Folder.

Done when plutil -lint passes on the project file, its git diff holds only the lines for your files, and each file is in every target its siblings are in.

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. 8d ago Changed c6a7d46588b3
  2. 1mo ago First seen · 44 lines · 39 tokens per session scan A 41bc3d955ebd

Subscribe to this mod's changes

ddg-xcode-add-file is a skill published in the GitHub repository duckduckgo/apple-browsers (270 stars, last pushed today), licensed Apache-2.0. It adds 39 tokens to every session and 714 once invoked, about $0.0002 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-10-03.

Related

ddg-xcode-add-file compared with skills from other repositories

ddg-xcode-add-file next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ddg-xcode-add-fileduckduckgo/apple-browsersSkill270todayApache-2.0A39Claude Code
cli-anything-nsloggerHKUDS/CLI-AnythingSkill58k1mo agoApache-2.0A36Claude Code, Codex
benchmarksoniqo/speech-swiftSkill1.3kyesterdayApache-2.0A0Claude Code
review-prsoniqo/speech-swiftSkill1.3kyesterdayApache-2.0A71Claude Code
boutique-best-practicesmergesort/BoutiqueSkill1.1k5d agoMITA56Claude Code
boutique-storemergesort/BoutiqueSkill1.1k5d agoMITA52Claude Code
boutique-stored-valuesmergesort/BoutiqueSkill1.1k5d agoMITA68Claude Code