<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-export-xcode-agent-skills-with-xcrun-sojkgvlpn" -->

---
title: How to export Xcode agent skills with xcrun | daily.dev
description: Xcode 27 ships built-in agent skills that teach coding agents SwiftUI best practices and new API usage. These skills can be exported outside Xcode with the...
canonical: https://daily.dev/posts/how-to-export-xcode-agent-skills-with-xcrun-sojkgvlpn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to export Xcode agent skills with xcrun | daily.dev
og:description: Xcode 27 ships built-in agent skills that teach coding agents SwiftUI best practices and new API usage. These skills can be exported outside Xcode with the...
og:url: https://daily.dev/posts/how-to-export-xcode-agent-skills-with-xcrun-sojkgvlpn
og:image: https://api.daily.dev/og/posts/SOJKGVLPN.png
og:image:alt: How to export Xcode agent skills with xcrun
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to export Xcode agent skills with xcrun

**[Sarunw](https://daily.dev/sources/sarunw)** · [@sarunw](https://daily.dev/sarunw) · 2 min read · 0 upvotes · 0 comments

## Summary

Xcode 27 ships built-in agent skills that teach coding agents SwiftUI best practices and new API usage. These skills can be exported outside Xcode with the command 'xcrun agent skills export', producing Markdown files usable in any coding workflow. The guide covers specifying an output directory with --output-dir, overwriting existing exports with --replace-existing, and troubleshooting when xcrun cannot find the agent command by checking xcode-select -p or setting DEVELOPER_DIR to point at the correct Xcode 27 installation.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://sarunw.com/posts/export-xcode-agent-skills>

## Questions this post answers

### How do I export Xcode's built-in agent skills to use with another coding agent?

Run 'xcrun agent skills export' in Xcode 27, which produces Markdown files containing Apple's SwiftUI best-practice instructions that can be imported into any coding agent workflow. Use --output-dir to choose a destination folder, such as ~/Downloads/xcode-skills, and add --replace-existing to overwrite previously exported skill directories.

_daily.dev surfaces workflow tips like this for developers wiring AI agents into their Xcode setup._

### Why can't xcrun find the agent skills export command in Xcode?

This happens when the command line tools point to an Xcode version older than Xcode 27, which is the first version to include agent skills. Check the active developer directory with 'xcode-select -p', switch it under Xcode > Settings > Locations > Command Line Tools, or target a specific install for one command using the DEVELOPER_DIR environment variable.

_Developers juggling multiple Xcode installs can track setup gotchas like this on daily.dev._

## Similar posts on daily.dev

- [How to install and use AI agent skills in Xcode](https://daily.dev/posts/how-to-install-and-use-ai-agent-skills-in-xcode-pdc3n0cny) · Hacking with Swift · 0 upvotes · 0 comments
- [Xcode Build Optimization using 6 Agent Skills](https://daily.dev/posts/xcode-build-optimization-using-6-agent-skills-f8vrkuuiw) · SwiftLee · 1 upvotes · 0 comments
- [How to Use Skills in Agentic Flutter Development: A Handbook for Devs](https://daily.dev/posts/how-to-use-skills-in-agentic-flutter-development-a-handbook-for-devs-0khawhsnb) · freeCodeCamp · 1 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#ios](https://daily.dev/tags/ios), [#swiftui](https://daily.dev/tags/swiftui), [#xcode](https://daily.dev/tags/xcode)

[View this post on daily.dev](https://daily.dev/posts/how-to-export-xcode-agent-skills-with-xcrun-sojkgvlpn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to export Xcode agent skills with xcrun","url":"https://daily.dev/posts/how-to-export-xcode-agent-skills-with-xcrun-sojkgvlpn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-export-xcode-agent-skills-with-xcrun-sojkgvlpn"},"datePublished":"2026-09-11T20:20:16.271Z","dateModified":"2026-09-12T17:00:15.579Z","description":"Xcode 27 ships built-in agent skills that teach coding agents SwiftUI best practices and new API usage. These skills can be exported outside Xcode with the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d4cb64f4f1d5bc868de86f0816eb96c7?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d4cb64f4f1d5bc868de86f0816eb96c7?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Sarunw","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Sarun Wongpatcharapakorn","url":"https://daily.dev/sarunw","image":"https://avatars.githubusercontent.com/u/795368?v=4","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":20}},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-export-xcode-agent-skills-with-xcrun-sojkgvlpn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,ios,swiftui,xcode","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sarunw","item":"https://daily.dev/sources/sarunw"},{"@type":"ListItem","position":3,"name":"How to export Xcode agent skills with xcrun"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-to-export-xcode-agent-skills-with-xcrun-sojkgvlpn#faq","mainEntity":[{"@type":"Question","name":"How do I export Xcode's built-in agent skills to use with another coding agent?","acceptedAnswer":{"@type":"Answer","text":"Run 'xcrun agent skills export' in Xcode 27, which produces Markdown files containing Apple's SwiftUI best-practice instructions that can be imported into any coding agent workflow. Use --output-dir to choose a destination folder, such as ~/Downloads/xcode-skills, and add --replace-existing to overwrite previously exported skill directories. daily.dev surfaces workflow tips like this for developers wiring AI agents into their Xcode setup."}},{"@type":"Question","name":"Why can't xcrun find the agent skills export command in Xcode?","acceptedAnswer":{"@type":"Answer","text":"This happens when the command line tools point to an Xcode version older than Xcode 27, which is the first version to include agent skills. Check the active developer directory with 'xcode-select -p', switch it under Xcode \u003e Settings \u003e Locations \u003e Command Line Tools, or target a specific install for one command using the DEVELOPER_DIR environment variable. Developers juggling multiple Xcode installs can track setup gotchas like this on daily.dev."}}]}
```

