mcpbeat Sign in

Dd SDK Ios:xcode File Management Skill for Claude

Use when adding, removing, moving, or renaming Swift source files in the dd-sdk-ios Xcode project. Use when the task involves file creation, deletion, or relocation in any module (DatadogRUM, DatadogLogs, DatadogCore, etc.). Use when you would otherwise reach for Write, Bash mv/mkdir/rm, or manual pbxproj editing for file management.

941 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
286
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/DataDog/dd-sdk-ios --skill dd-sdk-ios:xcode-file-management

What it tells the agent to use

found in the instruction text
Bash runs shell commands — read the instruction before connecting
Write writes files
Edit edits files in place

The instruction itself

11 sections, as written by the author

dd-sdk-ios Xcode File Management

Overview

The dd-sdk-ios project is both an SPM package and an Xcode workspace with .pbxproj files. SPM builds discover files automatically, but Xcode does not — it requires explicit registration in .pbxproj. The Xcode MCP server (available from Xcode 26.3+) handles this automatically. Always use it.

Prerequisites

The Xcode MCP server requires Xcode 26.3+ and must be enabled in Claude Code settings. Verify it's active by checking that XcodeListWindows is available. If not, stop and ask the user to enable the Xcode MCP server before proceeding with file operations.

The Rule

Never use Write, Bash mv/mkdir/rm, or Edit for file creation, deletion, or movement in this project.

Use Xcode MCP tools instead — they update the filesystem AND the .pbxproj in one atomic operation.

Target Membership

Target membership is implicit — Xcode MCP infers the target from the navigator path where the file is placed. A file added under DatadogLogs/ is automatically assigned to the DatadogLogs target. No explicit target specification is needed.

Quick Reference

| Operation | Use This Tool | Never Use |

|-----------|--------------|-----------|

| Create file | XcodeWrite | Write, Bash touch/cat |

| Delete file | XcodeRM | Bash rm |

| Move / rename | XcodeMV | Bash mv |

| Create directory/group | XcodeMakeDir | Bash mkdir |

| Read file | XcodeRead | (either is fine) |

| Search files | XcodeGlob, XcodeGrep | (either is fine) |

Common Rationalizations — All Wrong

| Excuse | Reality |

|--------|---------|

| "SPM auto-discovers files, pbxproj doesn't matter" | The Xcode workspace has .pbxproj files. They must stay in sync or Xcode breaks. |

| "It's faster to use bash" | A file invisible to Xcode causes build failures and confuses teammates. |

| "I'll update pbxproj manually after" | pbxproj is binary-adjacent XML; manual edits cause merge conflicts and corruption. |

| "The file is just temporary" | Temporary files still break the build if Xcode can't see them. |

Example

# ✅ Add a new source file
XcodeWrite(
  tabIdentifier: <tab>,
  filePath: "DatadogLogs/Sources/LogBatcher.swift",
  content: "..."
)
# → Creates file on disk AND registers it in pbxproj + target membership

# ✅ Move a file
XcodeMV(
  tabIdentifier: <tab>,
  sourcePath: "DatadogLogs/Sources/LogBatcher.swift",
  destinationPath: "DatadogLogs/Sources/Batching/LogBatcher.swift"
)
# → Moves file on disk AND updates pbxproj reference

# ❌ Wrong — file created on disk but invisible to Xcode
Write(file_path: ".../DatadogLogs/Sources/LogBatcher.swift", content: "...")

Getting the tabIdentifier

XcodeListWindows()  # → returns tabIdentifier for open workspace

Path Format

Xcode MCP uses project navigator paths, not filesystem paths. Use XcodeLS to discover them:

XcodeLS(tabIdentifier: <tab>, path: "DatadogLogs")
# → ["ConsoleLogger.swift", "Feature/LogsFeature.swift", ...]
# Note: paths are relative to the Xcode group, not the filesystem root

To create DatadogLogs/Sources/Foo.swift on disk, use the navigator path DatadogLogs/Foo.swift.

After File Operations

After adding files to a module, verify the build still works:

BuildProject(tabIdentifier: <tab>)

Other skills for the same job

different authors, same section of the catalogue
MCP Builder
by anthropics
vendor ×13

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

30k tokens scripts
Changelog Generator
by frostant
×9

Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.

774 tokens
Finishing A Development Branch
by ZhanlinCui
×7

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup

1k tokens
MCP Builder
by JayZeeDesign
×7

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

37k tokens scripts
Vercel React Native Skills
by vercel-labs
vendor ×6

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

39k tokens
Vercel React Best Practices
by ratacat
×5

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

34k tokens
Next Best Practices
by vercel-labs
vendor ×4

Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling

20k tokens
Using Git Worktrees
by ZhanlinCui
×4

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification

1k tokens

How to use it

Copy the folder

Take datadog/dd-sdk-ios:xcode-file-management from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.