[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-firebase-xcode-project-setup":3,"mdc-cohutn-key":36,"related-repo-firebase-xcode-project-setup":904,"related-org-firebase-xcode-project-setup":1024},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":25,"repoUrl":26,"updatedAt":27,"license":28,"forks":29,"topics":30,"repo":31,"sourceUrl":34,"mdContent":35},"xcode-project-setup","manage Xcode project dependencies and packages","Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"firebase","Firebase (Google)","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Ffirebase.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"iOS","ios","tag",{"name":17,"slug":18,"type":15},"Mobile","mobile",{"name":20,"slug":21,"type":15},"Swift","swift",{"name":23,"slug":24,"type":15},"Xcode","xcode",376,"https:\u002F\u002Fgithub.com\u002Ffirebase\u002Fagent-skills","2026-05-01T05:54:12.834251",null,75,[],{"repoUrl":26,"stars":25,"forks":29,"topics":32,"description":33},[],"Agent Skills for Firebase","https:\u002F\u002Fgithub.com\u002Ffirebase\u002Fagent-skills\u002Ftree\u002FHEAD\u002Fskills\u002Fxcode-project-setup","---\nname: xcode-project-setup\ndescription: Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).\ncompatibility: Requires Swift to be installed locally and macOS environment.\n---\n\n# Xcode Project Setup\n\n## ⛔️ CRITICAL RULES & ENVIRONMENT CHECKS\n\nBefore performing any Xcode setup or file manipulation, you **MUST** adhere to\nthe following rules. A hefty fee will be applied if you violate them.\n\n### 1. The Anti-Ruby Mandate\n\nYou are **strictly forbidden** from using Ruby, Rails, or any Ruby gems\n(including the `xcodeproj` gem). Under no circumstances may you write or execute\nRuby scripts.\n\n### 2. Modern Xcode Folder Synchronization\n\nModern Xcode projects support folder synchronization. When adding new source\ncode (`.swift`) or resource files, simply write them to the correct directory on\ndisk. They will be automatically included in the Xcode project. **Never manually\nmodify the `.pbxproj` file to add files.**\n\n### 3. Allowed Scripting Languages\n\nIf you absolutely must write a script to manipulate the project environment\n(e.g., configuring SPM packages beyond what the provided `xcode_spm_setup`\nscript does), you **must use Swift**. Only as an absolute last resort, if Swift\nis completely unviable, may you use Node.js or TypeScript.\n\n### 4. Toolchain Verification\n\nBecause this skill relies entirely on a native Swift script, you must verify the\nenvironment:\n\n- Run `swift --version` before proceeding.\n- If the Swift command is not found, you must stop and recommend the user\n  install the Swift toolchain (e.g., via `xcode-select --install` on macOS), or\n  ask if you can attempt to install it for them. Do not attempt to proceed\n  without Swift.\n\n### 5. Mandatory Linker Flags for Static Frameworks (Firebase)\n\nWhen setting up SPM dependencies that heavily rely on internal Objective-C\ncategories and `+load` methods (such as the Firebase iOS SDK suite), the Apple\nlinker will aggressively strip these methods out if they are linked statically.\n\nThis causes fatal runtime crashes (e.g.,\n`FirebaseAuth\u002FAuth.swift:167: Fatal error: Unexpectedly found nil`).\n\n**The provided `xcode_spm_setup` Swift script automatically injects the `-ObjC`\nflag to `OTHER_LDFLAGS` when adding Firebase products.** However, you should\nstill verify it is present in the build settings if you encounter issues.\n\n- Failing to include this flag when adding Firebase dependencies is a critical\n  error.\n\n______________________________________________________________________\n\n## Empty Directory Workflow\n\nIf you are asked to build an iOS app or configure Xcode dependencies but **no\n`.xcodeproj` or `.xcworkspace` exists**, you MUST ask the user to create the\nproject first:\n\n**\"No Xcode project found in this directory. Please create an empty Xcode\nproject manually and let me know when you are ready to proceed.\"**\n\nWait for the user to confirm they have created the `.xcodeproj` via Xcode, then\nproceed with the Standard Xcode Workflow below.\n\n______________________________________________________________________\n\n## Standard Xcode Workflow\n\nDo not use raw text parsing, `sed`, or Ruby scripts to modify `.pbxproj` files\ndirectly.\n\nInstead, execute the Swift configuration package bundled with this skill\n(`scripts\u002Fxcode_spm_setup`) to securely install SPM packages and link optional\nconfig files (like `GoogleService-Info.plist`).\n\n### **CRITICAL: Always Use Latest SDK Version**\n\nTo ensure access to the latest features and security fixes, always use the most\nrecent version of the Firebase iOS SDK. Check for the latest release version at\n[https:\u002F\u002Fgithub.com\u002Ffirebase\u002Ffirebase-ios-sdk\u002Freleases](https:\u002F\u002Fgithub.com\u002Ffirebase\u002Ffirebase-ios-sdk\u002Freleases).\n\n- Use the most recent version number (e.g., `11.x.y`) in your commands instead\n  of hardcoded placeholders.\n\n### Understanding the Script's Actions\n\nWhen adding a Swift Package to an Xcode project, two distinct steps must occur:\n\n1. Adding the package repository dependency (e.g.,\n   `https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire`).\n1. Selecting the target (e.g., `MyApp`), navigating to **General > Frameworks,\n   Libraries, and Embedded Content**, and hitting the `+` button to explicitly\n   link the specific product modules (e.g., `Alamofire`).\n\n**The provided `xcode_spm_setup` Swift script automatically handles BOTH of\nthese steps for you.** By passing the list of modules as arguments, it safely\ninjects the package dependency and automatically wires those modules to the main\ntarget's Frameworks build phase. You do not need to do any manual linking.\n\n## Usage\n\n1. **Locate the package path:** Find the absolute path to this skill's\n   `scripts\u002Fxcode_spm_setup` directory on disk.\n1. **Execute:** Run the native `swift run` command using the signature below:\n\n```bash\nswift run --package-path \u003CPATH_TO_SKILL>\u002Fscripts\u002Fxcode_spm_setup xcode_spm_setup \u003CProjectPath.xcodeproj> \u003CRepoURL> \u003CVersionRequirement> [--plist \u003COptional\u002FPath\u002FTo\u002FConfig.plist>] \u003CProduct1> [Product2 ...]\n```\n\n### Example 1: Generic Package (e.g., Alamofire)\n\nAdding Alamofire to a standard Xcode project. Notice there is no `--plist` flag.\n\n```bash\nswift run --package-path \u002FUsers\u002Ffoo\u002F.agents\u002Fskills\u002Fxcode-project-setup\u002Fscripts\u002Fxcode_spm_setup xcode_spm_setup MyApp.xcodeproj https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire 5.8.1 Alamofire\n```\n\n### Example 2: Firebase (Requires Plist)\n\nAdding Firebase and linking the `GoogleService-Info.plist` to the resources\nbuild phase automatically. *Note: Replace `11.0.0` with the actual latest\nversion from\n[the releases page](https:\u002F\u002Fgithub.com\u002Ffirebase\u002Ffirebase-ios-sdk\u002Freleases).*\n\n```bash\nswift run --package-path \u002FUsers\u002Ffoo\u002F.agents\u002Fskills\u002Fxcode-project-setup\u002Fscripts\u002Fxcode_spm_setup xcode_spm_setup MyApp.xcodeproj https:\u002F\u002Fgithub.com\u002Ffirebase\u002Ffirebase-ios-sdk 11.0.0 --plist MyApp\u002FGoogleService-Info.plist FirebaseCore FirebaseAuth FirebaseFirestore\n```\n\n*Note: The script is idempotent. It will automatically skip linking files or\npackages that are already present in the project.*\n",{"data":37,"body":39},{"name":4,"description":6,"compatibility":38},"Requires Swift to be installed locally and macOS environment.",{"type":40,"children":41},"root",[42,50,57,71,78,99,105,131,137,157,163,168,199,205,218,231,264,272,276,282,310,318,330,333,339,359,379,388,403,419,425,430,481,497,503,541,711,717,730,782,788,821,890,898],{"type":43,"tag":44,"props":45,"children":46},"element","h1",{"id":4},[47],{"type":48,"value":49},"text","Xcode Project Setup",{"type":43,"tag":51,"props":52,"children":54},"h2",{"id":53},"️-critical-rules-environment-checks",[55],{"type":48,"value":56},"⛔️ CRITICAL RULES & ENVIRONMENT CHECKS",{"type":43,"tag":58,"props":59,"children":60},"p",{},[61,63,69],{"type":48,"value":62},"Before performing any Xcode setup or file manipulation, you ",{"type":43,"tag":64,"props":65,"children":66},"strong",{},[67],{"type":48,"value":68},"MUST",{"type":48,"value":70}," adhere to\nthe following rules. A hefty fee will be applied if you violate them.",{"type":43,"tag":72,"props":73,"children":75},"h3",{"id":74},"_1-the-anti-ruby-mandate",[76],{"type":48,"value":77},"1. The Anti-Ruby Mandate",{"type":43,"tag":58,"props":79,"children":80},{},[81,83,88,90,97],{"type":48,"value":82},"You are ",{"type":43,"tag":64,"props":84,"children":85},{},[86],{"type":48,"value":87},"strictly forbidden",{"type":48,"value":89}," from using Ruby, Rails, or any Ruby gems\n(including the ",{"type":43,"tag":91,"props":92,"children":94},"code",{"className":93},[],[95],{"type":48,"value":96},"xcodeproj",{"type":48,"value":98}," gem). Under no circumstances may you write or execute\nRuby scripts.",{"type":43,"tag":72,"props":100,"children":102},{"id":101},"_2-modern-xcode-folder-synchronization",[103],{"type":48,"value":104},"2. Modern Xcode Folder Synchronization",{"type":43,"tag":58,"props":106,"children":107},{},[108,110,116,118],{"type":48,"value":109},"Modern Xcode projects support folder synchronization. When adding new source\ncode (",{"type":43,"tag":91,"props":111,"children":113},{"className":112},[],[114],{"type":48,"value":115},".swift",{"type":48,"value":117},") or resource files, simply write them to the correct directory on\ndisk. They will be automatically included in the Xcode project. ",{"type":43,"tag":64,"props":119,"children":120},{},[121,123,129],{"type":48,"value":122},"Never manually\nmodify the ",{"type":43,"tag":91,"props":124,"children":126},{"className":125},[],[127],{"type":48,"value":128},".pbxproj",{"type":48,"value":130}," file to add files.",{"type":43,"tag":72,"props":132,"children":134},{"id":133},"_3-allowed-scripting-languages",[135],{"type":48,"value":136},"3. Allowed Scripting Languages",{"type":43,"tag":58,"props":138,"children":139},{},[140,142,148,150,155],{"type":48,"value":141},"If you absolutely must write a script to manipulate the project environment\n(e.g., configuring SPM packages beyond what the provided ",{"type":43,"tag":91,"props":143,"children":145},{"className":144},[],[146],{"type":48,"value":147},"xcode_spm_setup",{"type":48,"value":149},"\nscript does), you ",{"type":43,"tag":64,"props":151,"children":152},{},[153],{"type":48,"value":154},"must use Swift",{"type":48,"value":156},". Only as an absolute last resort, if Swift\nis completely unviable, may you use Node.js or TypeScript.",{"type":43,"tag":72,"props":158,"children":160},{"id":159},"_4-toolchain-verification",[161],{"type":48,"value":162},"4. Toolchain Verification",{"type":43,"tag":58,"props":164,"children":165},{},[166],{"type":48,"value":167},"Because this skill relies entirely on a native Swift script, you must verify the\nenvironment:",{"type":43,"tag":169,"props":170,"children":171},"ul",{},[172,186],{"type":43,"tag":173,"props":174,"children":175},"li",{},[176,178,184],{"type":48,"value":177},"Run ",{"type":43,"tag":91,"props":179,"children":181},{"className":180},[],[182],{"type":48,"value":183},"swift --version",{"type":48,"value":185}," before proceeding.",{"type":43,"tag":173,"props":187,"children":188},{},[189,191,197],{"type":48,"value":190},"If the Swift command is not found, you must stop and recommend the user\ninstall the Swift toolchain (e.g., via ",{"type":43,"tag":91,"props":192,"children":194},{"className":193},[],[195],{"type":48,"value":196},"xcode-select --install",{"type":48,"value":198}," on macOS), or\nask if you can attempt to install it for them. Do not attempt to proceed\nwithout Swift.",{"type":43,"tag":72,"props":200,"children":202},{"id":201},"_5-mandatory-linker-flags-for-static-frameworks-firebase",[203],{"type":48,"value":204},"5. Mandatory Linker Flags for Static Frameworks (Firebase)",{"type":43,"tag":58,"props":206,"children":207},{},[208,210,216],{"type":48,"value":209},"When setting up SPM dependencies that heavily rely on internal Objective-C\ncategories and ",{"type":43,"tag":91,"props":211,"children":213},{"className":212},[],[214],{"type":48,"value":215},"+load",{"type":48,"value":217}," methods (such as the Firebase iOS SDK suite), the Apple\nlinker will aggressively strip these methods out if they are linked statically.",{"type":43,"tag":58,"props":219,"children":220},{},[221,223,229],{"type":48,"value":222},"This causes fatal runtime crashes (e.g.,\n",{"type":43,"tag":91,"props":224,"children":226},{"className":225},[],[227],{"type":48,"value":228},"FirebaseAuth\u002FAuth.swift:167: Fatal error: Unexpectedly found nil",{"type":48,"value":230},").",{"type":43,"tag":58,"props":232,"children":233},{},[234,262],{"type":43,"tag":64,"props":235,"children":236},{},[237,239,244,246,252,254,260],{"type":48,"value":238},"The provided ",{"type":43,"tag":91,"props":240,"children":242},{"className":241},[],[243],{"type":48,"value":147},{"type":48,"value":245}," Swift script automatically injects the ",{"type":43,"tag":91,"props":247,"children":249},{"className":248},[],[250],{"type":48,"value":251},"-ObjC",{"type":48,"value":253},"\nflag to ",{"type":43,"tag":91,"props":255,"children":257},{"className":256},[],[258],{"type":48,"value":259},"OTHER_LDFLAGS",{"type":48,"value":261}," when adding Firebase products.",{"type":48,"value":263}," However, you should\nstill verify it is present in the build settings if you encounter issues.",{"type":43,"tag":169,"props":265,"children":266},{},[267],{"type":43,"tag":173,"props":268,"children":269},{},[270],{"type":48,"value":271},"Failing to include this flag when adding Firebase dependencies is a critical\nerror.",{"type":43,"tag":273,"props":274,"children":275},"hr",{},[],{"type":43,"tag":51,"props":277,"children":279},{"id":278},"empty-directory-workflow",[280],{"type":48,"value":281},"Empty Directory Workflow",{"type":43,"tag":58,"props":283,"children":284},{},[285,287,308],{"type":48,"value":286},"If you are asked to build an iOS app or configure Xcode dependencies but ",{"type":43,"tag":64,"props":288,"children":289},{},[290,292,298,300,306],{"type":48,"value":291},"no\n",{"type":43,"tag":91,"props":293,"children":295},{"className":294},[],[296],{"type":48,"value":297},".xcodeproj",{"type":48,"value":299}," or ",{"type":43,"tag":91,"props":301,"children":303},{"className":302},[],[304],{"type":48,"value":305},".xcworkspace",{"type":48,"value":307}," exists",{"type":48,"value":309},", you MUST ask the user to create the\nproject first:",{"type":43,"tag":58,"props":311,"children":312},{},[313],{"type":43,"tag":64,"props":314,"children":315},{},[316],{"type":48,"value":317},"\"No Xcode project found in this directory. Please create an empty Xcode\nproject manually and let me know when you are ready to proceed.\"",{"type":43,"tag":58,"props":319,"children":320},{},[321,323,328],{"type":48,"value":322},"Wait for the user to confirm they have created the ",{"type":43,"tag":91,"props":324,"children":326},{"className":325},[],[327],{"type":48,"value":297},{"type":48,"value":329}," via Xcode, then\nproceed with the Standard Xcode Workflow below.",{"type":43,"tag":273,"props":331,"children":332},{},[],{"type":43,"tag":51,"props":334,"children":336},{"id":335},"standard-xcode-workflow",[337],{"type":48,"value":338},"Standard Xcode Workflow",{"type":43,"tag":58,"props":340,"children":341},{},[342,344,350,352,357],{"type":48,"value":343},"Do not use raw text parsing, ",{"type":43,"tag":91,"props":345,"children":347},{"className":346},[],[348],{"type":48,"value":349},"sed",{"type":48,"value":351},", or Ruby scripts to modify ",{"type":43,"tag":91,"props":353,"children":355},{"className":354},[],[356],{"type":48,"value":128},{"type":48,"value":358}," files\ndirectly.",{"type":43,"tag":58,"props":360,"children":361},{},[362,364,370,372,378],{"type":48,"value":363},"Instead, execute the Swift configuration package bundled with this skill\n(",{"type":43,"tag":91,"props":365,"children":367},{"className":366},[],[368],{"type":48,"value":369},"scripts\u002Fxcode_spm_setup",{"type":48,"value":371},") to securely install SPM packages and link optional\nconfig files (like ",{"type":43,"tag":91,"props":373,"children":375},{"className":374},[],[376],{"type":48,"value":377},"GoogleService-Info.plist",{"type":48,"value":230},{"type":43,"tag":72,"props":380,"children":382},{"id":381},"critical-always-use-latest-sdk-version",[383],{"type":43,"tag":64,"props":384,"children":385},{},[386],{"type":48,"value":387},"CRITICAL: Always Use Latest SDK Version",{"type":43,"tag":58,"props":389,"children":390},{},[391,393,401],{"type":48,"value":392},"To ensure access to the latest features and security fixes, always use the most\nrecent version of the Firebase iOS SDK. Check for the latest release version at\n",{"type":43,"tag":394,"props":395,"children":399},"a",{"href":396,"rel":397},"https:\u002F\u002Fgithub.com\u002Ffirebase\u002Ffirebase-ios-sdk\u002Freleases",[398],"nofollow",[400],{"type":48,"value":396},{"type":48,"value":402},".",{"type":43,"tag":169,"props":404,"children":405},{},[406],{"type":43,"tag":173,"props":407,"children":408},{},[409,411,417],{"type":48,"value":410},"Use the most recent version number (e.g., ",{"type":43,"tag":91,"props":412,"children":414},{"className":413},[],[415],{"type":48,"value":416},"11.x.y",{"type":48,"value":418},") in your commands instead\nof hardcoded placeholders.",{"type":43,"tag":72,"props":420,"children":422},{"id":421},"understanding-the-scripts-actions",[423],{"type":48,"value":424},"Understanding the Script's Actions",{"type":43,"tag":58,"props":426,"children":427},{},[428],{"type":48,"value":429},"When adding a Swift Package to an Xcode project, two distinct steps must occur:",{"type":43,"tag":431,"props":432,"children":433},"ol",{},[434,446],{"type":43,"tag":173,"props":435,"children":436},{},[437,439,445],{"type":48,"value":438},"Adding the package repository dependency (e.g.,\n",{"type":43,"tag":91,"props":440,"children":442},{"className":441},[],[443],{"type":48,"value":444},"https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire",{"type":48,"value":230},{"type":43,"tag":173,"props":447,"children":448},{},[449,451,457,459,464,466,472,474,480],{"type":48,"value":450},"Selecting the target (e.g., ",{"type":43,"tag":91,"props":452,"children":454},{"className":453},[],[455],{"type":48,"value":456},"MyApp",{"type":48,"value":458},"), navigating to ",{"type":43,"tag":64,"props":460,"children":461},{},[462],{"type":48,"value":463},"General > Frameworks,\nLibraries, and Embedded Content",{"type":48,"value":465},", and hitting the ",{"type":43,"tag":91,"props":467,"children":469},{"className":468},[],[470],{"type":48,"value":471},"+",{"type":48,"value":473}," button to explicitly\nlink the specific product modules (e.g., ",{"type":43,"tag":91,"props":475,"children":477},{"className":476},[],[478],{"type":48,"value":479},"Alamofire",{"type":48,"value":230},{"type":43,"tag":58,"props":482,"children":483},{},[484,495],{"type":43,"tag":64,"props":485,"children":486},{},[487,488,493],{"type":48,"value":238},{"type":43,"tag":91,"props":489,"children":491},{"className":490},[],[492],{"type":48,"value":147},{"type":48,"value":494}," Swift script automatically handles BOTH of\nthese steps for you.",{"type":48,"value":496}," By passing the list of modules as arguments, it safely\ninjects the package dependency and automatically wires those modules to the main\ntarget's Frameworks build phase. You do not need to do any manual linking.",{"type":43,"tag":51,"props":498,"children":500},{"id":499},"usage",[501],{"type":48,"value":502},"Usage",{"type":43,"tag":431,"props":504,"children":505},{},[506,523],{"type":43,"tag":173,"props":507,"children":508},{},[509,514,516,521],{"type":43,"tag":64,"props":510,"children":511},{},[512],{"type":48,"value":513},"Locate the package path:",{"type":48,"value":515}," Find the absolute path to this skill's\n",{"type":43,"tag":91,"props":517,"children":519},{"className":518},[],[520],{"type":48,"value":369},{"type":48,"value":522}," directory on disk.",{"type":43,"tag":173,"props":524,"children":525},{},[526,531,533,539],{"type":43,"tag":64,"props":527,"children":528},{},[529],{"type":48,"value":530},"Execute:",{"type":48,"value":532}," Run the native ",{"type":43,"tag":91,"props":534,"children":536},{"className":535},[],[537],{"type":48,"value":538},"swift run",{"type":48,"value":540}," command using the signature below:",{"type":43,"tag":542,"props":543,"children":548},"pre",{"className":544,"code":545,"language":546,"meta":547,"style":547},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","swift run --package-path \u003CPATH_TO_SKILL>\u002Fscripts\u002Fxcode_spm_setup xcode_spm_setup \u003CProjectPath.xcodeproj> \u003CRepoURL> \u003CVersionRequirement> [--plist \u003COptional\u002FPath\u002FTo\u002FConfig.plist>] \u003CProduct1> [Product2 ...]\n","bash","",[549],{"type":43,"tag":91,"props":550,"children":551},{"__ignoreMap":547},[552],{"type":43,"tag":553,"props":554,"children":557},"span",{"class":555,"line":556},"line",1,[558,563,569,574,580,585,591,596,601,606,610,615,620,624,628,633,637,641,645,650,655,659,664,669,674,678,682,687,691,696,701,706],{"type":43,"tag":553,"props":559,"children":561},{"style":560},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[562],{"type":48,"value":21},{"type":43,"tag":553,"props":564,"children":566},{"style":565},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[567],{"type":48,"value":568}," run",{"type":43,"tag":553,"props":570,"children":571},{"style":565},[572],{"type":48,"value":573}," --package-path",{"type":43,"tag":553,"props":575,"children":577},{"style":576},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[578],{"type":48,"value":579}," \u003C",{"type":43,"tag":553,"props":581,"children":582},{"style":565},[583],{"type":48,"value":584},"PATH_TO_SKIL",{"type":43,"tag":553,"props":586,"children":588},{"style":587},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[589],{"type":48,"value":590},"L",{"type":43,"tag":553,"props":592,"children":593},{"style":576},[594],{"type":48,"value":595},">",{"type":43,"tag":553,"props":597,"children":598},{"style":565},[599],{"type":48,"value":600},"\u002Fscripts\u002Fxcode_spm_setup",{"type":43,"tag":553,"props":602,"children":603},{"style":565},[604],{"type":48,"value":605}," xcode_spm_setup",{"type":43,"tag":553,"props":607,"children":608},{"style":576},[609],{"type":48,"value":579},{"type":43,"tag":553,"props":611,"children":612},{"style":565},[613],{"type":48,"value":614},"ProjectPath.xcodepro",{"type":43,"tag":553,"props":616,"children":617},{"style":587},[618],{"type":48,"value":619},"j",{"type":43,"tag":553,"props":621,"children":622},{"style":576},[623],{"type":48,"value":595},{"type":43,"tag":553,"props":625,"children":626},{"style":576},[627],{"type":48,"value":579},{"type":43,"tag":553,"props":629,"children":630},{"style":565},[631],{"type":48,"value":632},"RepoUR",{"type":43,"tag":553,"props":634,"children":635},{"style":587},[636],{"type":48,"value":590},{"type":43,"tag":553,"props":638,"children":639},{"style":576},[640],{"type":48,"value":595},{"type":43,"tag":553,"props":642,"children":643},{"style":576},[644],{"type":48,"value":579},{"type":43,"tag":553,"props":646,"children":647},{"style":565},[648],{"type":48,"value":649},"VersionRequiremen",{"type":43,"tag":553,"props":651,"children":652},{"style":587},[653],{"type":48,"value":654},"t",{"type":43,"tag":553,"props":656,"children":657},{"style":576},[658],{"type":48,"value":595},{"type":43,"tag":553,"props":660,"children":661},{"style":587},[662],{"type":48,"value":663}," [--plist ",{"type":43,"tag":553,"props":665,"children":666},{"style":576},[667],{"type":48,"value":668},"\u003C",{"type":43,"tag":553,"props":670,"children":671},{"style":565},[672],{"type":48,"value":673},"Optional\u002FPath\u002FTo\u002FConfig.plis",{"type":43,"tag":553,"props":675,"children":676},{"style":587},[677],{"type":48,"value":654},{"type":43,"tag":553,"props":679,"children":680},{"style":576},[681],{"type":48,"value":595},{"type":43,"tag":553,"props":683,"children":684},{"style":565},[685],{"type":48,"value":686},"]",{"type":43,"tag":553,"props":688,"children":689},{"style":576},[690],{"type":48,"value":579},{"type":43,"tag":553,"props":692,"children":693},{"style":565},[694],{"type":48,"value":695},"Product",{"type":43,"tag":553,"props":697,"children":698},{"style":576},[699],{"type":48,"value":700},"1>",{"type":43,"tag":553,"props":702,"children":703},{"style":587},[704],{"type":48,"value":705}," [Product2 ",{"type":43,"tag":553,"props":707,"children":708},{"style":565},[709],{"type":48,"value":710},"...]\n",{"type":43,"tag":72,"props":712,"children":714},{"id":713},"example-1-generic-package-eg-alamofire",[715],{"type":48,"value":716},"Example 1: Generic Package (e.g., Alamofire)",{"type":43,"tag":58,"props":718,"children":719},{},[720,722,728],{"type":48,"value":721},"Adding Alamofire to a standard Xcode project. Notice there is no ",{"type":43,"tag":91,"props":723,"children":725},{"className":724},[],[726],{"type":48,"value":727},"--plist",{"type":48,"value":729}," flag.",{"type":43,"tag":542,"props":731,"children":733},{"className":544,"code":732,"language":546,"meta":547,"style":547},"swift run --package-path \u002FUsers\u002Ffoo\u002F.agents\u002Fskills\u002Fxcode-project-setup\u002Fscripts\u002Fxcode_spm_setup xcode_spm_setup MyApp.xcodeproj https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire 5.8.1 Alamofire\n",[734],{"type":43,"tag":91,"props":735,"children":736},{"__ignoreMap":547},[737],{"type":43,"tag":553,"props":738,"children":739},{"class":555,"line":556},[740,744,748,752,757,761,766,771,777],{"type":43,"tag":553,"props":741,"children":742},{"style":560},[743],{"type":48,"value":21},{"type":43,"tag":553,"props":745,"children":746},{"style":565},[747],{"type":48,"value":568},{"type":43,"tag":553,"props":749,"children":750},{"style":565},[751],{"type":48,"value":573},{"type":43,"tag":553,"props":753,"children":754},{"style":565},[755],{"type":48,"value":756}," \u002FUsers\u002Ffoo\u002F.agents\u002Fskills\u002Fxcode-project-setup\u002Fscripts\u002Fxcode_spm_setup",{"type":43,"tag":553,"props":758,"children":759},{"style":565},[760],{"type":48,"value":605},{"type":43,"tag":553,"props":762,"children":763},{"style":565},[764],{"type":48,"value":765}," MyApp.xcodeproj",{"type":43,"tag":553,"props":767,"children":768},{"style":565},[769],{"type":48,"value":770}," https:\u002F\u002Fgithub.com\u002FAlamofire\u002FAlamofire",{"type":43,"tag":553,"props":772,"children":774},{"style":773},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[775],{"type":48,"value":776}," 5.8.1",{"type":43,"tag":553,"props":778,"children":779},{"style":565},[780],{"type":48,"value":781}," Alamofire\n",{"type":43,"tag":72,"props":783,"children":785},{"id":784},"example-2-firebase-requires-plist",[786],{"type":48,"value":787},"Example 2: Firebase (Requires Plist)",{"type":43,"tag":58,"props":789,"children":790},{},[791,793,798,800],{"type":48,"value":792},"Adding Firebase and linking the ",{"type":43,"tag":91,"props":794,"children":796},{"className":795},[],[797],{"type":48,"value":377},{"type":48,"value":799}," to the resources\nbuild phase automatically. ",{"type":43,"tag":801,"props":802,"children":803},"em",{},[804,806,812,814,820],{"type":48,"value":805},"Note: Replace ",{"type":43,"tag":91,"props":807,"children":809},{"className":808},[],[810],{"type":48,"value":811},"11.0.0",{"type":48,"value":813}," with the actual latest\nversion from\n",{"type":43,"tag":394,"props":815,"children":817},{"href":396,"rel":816},[398],[818],{"type":48,"value":819},"the releases page",{"type":48,"value":402},{"type":43,"tag":542,"props":822,"children":824},{"className":544,"code":823,"language":546,"meta":547,"style":547},"swift run --package-path \u002FUsers\u002Ffoo\u002F.agents\u002Fskills\u002Fxcode-project-setup\u002Fscripts\u002Fxcode_spm_setup xcode_spm_setup MyApp.xcodeproj https:\u002F\u002Fgithub.com\u002Ffirebase\u002Ffirebase-ios-sdk 11.0.0 --plist MyApp\u002FGoogleService-Info.plist FirebaseCore FirebaseAuth FirebaseFirestore\n",[825],{"type":43,"tag":91,"props":826,"children":827},{"__ignoreMap":547},[828],{"type":43,"tag":553,"props":829,"children":830},{"class":555,"line":556},[831,835,839,843,847,851,855,860,865,870,875,880,885],{"type":43,"tag":553,"props":832,"children":833},{"style":560},[834],{"type":48,"value":21},{"type":43,"tag":553,"props":836,"children":837},{"style":565},[838],{"type":48,"value":568},{"type":43,"tag":553,"props":840,"children":841},{"style":565},[842],{"type":48,"value":573},{"type":43,"tag":553,"props":844,"children":845},{"style":565},[846],{"type":48,"value":756},{"type":43,"tag":553,"props":848,"children":849},{"style":565},[850],{"type":48,"value":605},{"type":43,"tag":553,"props":852,"children":853},{"style":565},[854],{"type":48,"value":765},{"type":43,"tag":553,"props":856,"children":857},{"style":565},[858],{"type":48,"value":859}," https:\u002F\u002Fgithub.com\u002Ffirebase\u002Ffirebase-ios-sdk",{"type":43,"tag":553,"props":861,"children":862},{"style":773},[863],{"type":48,"value":864}," 11.0.0",{"type":43,"tag":553,"props":866,"children":867},{"style":565},[868],{"type":48,"value":869}," --plist",{"type":43,"tag":553,"props":871,"children":872},{"style":565},[873],{"type":48,"value":874}," MyApp\u002FGoogleService-Info.plist",{"type":43,"tag":553,"props":876,"children":877},{"style":565},[878],{"type":48,"value":879}," FirebaseCore",{"type":43,"tag":553,"props":881,"children":882},{"style":565},[883],{"type":48,"value":884}," FirebaseAuth",{"type":43,"tag":553,"props":886,"children":887},{"style":565},[888],{"type":48,"value":889}," FirebaseFirestore\n",{"type":43,"tag":58,"props":891,"children":892},{},[893],{"type":43,"tag":801,"props":894,"children":895},{},[896],{"type":48,"value":897},"Note: The script is idempotent. It will automatically skip linking files or\npackages that are already present in the project.",{"type":43,"tag":899,"props":900,"children":901},"style",{},[902],{"type":48,"value":903},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":905,"total":1023},[906,923,940,960,975,991,1007],{"slug":907,"name":907,"fn":908,"description":909,"org":910,"tags":911,"stars":25,"repoUrl":26,"updatedAt":922},"extension-to-functions-codebase","convert Firebase Extensions to Cloud Functions","Skill for converting an installed Firebase Extension (or extension source) to a standalone Cloud Functions for Firebase codebase or publishable npm package, including upgrading triggers from V1 to V2 and configuring lifecycle hooks and declarative security",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[912,915,917,920],{"name":913,"slug":914,"type":15},"Cloud Functions","cloud-functions",{"name":916,"slug":8,"type":15},"Firebase",{"name":918,"slug":919,"type":15},"Migration","migration",{"name":921,"slug":921,"type":15},"npm","2026-07-31T06:23:32.436718",{"slug":924,"name":924,"fn":925,"description":926,"org":927,"tags":928,"stars":25,"repoUrl":26,"updatedAt":939},"firebase-ai-logic-basics","integrate Firebase AI Logic","Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[929,932,933,936],{"name":930,"slug":931,"type":15},"Backend","backend",{"name":916,"slug":8,"type":15},{"name":934,"slug":935,"type":15},"Gemini","gemini",{"name":937,"slug":938,"type":15},"LLM","llm","2026-07-31T05:53:23.557174",{"slug":941,"name":941,"fn":942,"description":943,"org":944,"tags":945,"stars":25,"repoUrl":26,"updatedAt":959},"firebase-app-hosting-basics","deploy web apps with Firebase App Hosting","Deploys and manages full-stack web applications (Next.js, Angular) with Server-Side Rendering (SSR) using Firebase App Hosting. Use when deploying Next.js\u002FAngular apps, configuring apphosting.yaml or firebase.json apphosting blocks, managing secrets, setting up GitHub CI\u002FCD, or configuring Blaze billing requirements. Don't use for classic static web hosting, Auth, Firestore, Crashlytics, or Xcode.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[946,949,952,953,956],{"name":947,"slug":948,"type":15},"Angular","angular",{"name":950,"slug":951,"type":15},"Deployment","deployment",{"name":916,"slug":8,"type":15},{"name":954,"slug":955,"type":15},"Frontend","frontend",{"name":957,"slug":958,"type":15},"Next.js","next-js","2026-07-31T05:53:19.57287",{"slug":961,"name":961,"fn":962,"description":963,"org":964,"tags":965,"stars":25,"repoUrl":26,"updatedAt":974},"firebase-auth-basics","set up Firebase Authentication","Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[966,969,970,971],{"name":967,"slug":968,"type":15},"Auth","auth",{"name":930,"slug":931,"type":15},{"name":916,"slug":8,"type":15},{"name":972,"slug":973,"type":15},"Security","security","2026-07-31T05:53:20.79137",{"slug":976,"name":976,"fn":977,"description":978,"org":979,"tags":980,"stars":25,"repoUrl":26,"updatedAt":990},"firebase-basics","build applications with Firebase","Provides foundational Firebase CLI setup, CLI installation, version checks (`firebase-tools@latest --version`), CLI login (including --no-localhost), project creation, project selection (`firebase use`), and app config file downloads (`google-services.json`, `GoogleService-Info.plist`). Use ONLY for CLI login, project creation\u002Fswitching, or downloading app config files. Don't use for Firebase Hosting deploy, Firestore, Auth, App Hosting, Data Connect, Crashlytics, or Remote Config.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[981,984,985,988,989],{"name":982,"slug":983,"type":15},"Authentication","authentication",{"name":930,"slug":931,"type":15},{"name":986,"slug":987,"type":15},"Database","database",{"name":950,"slug":951,"type":15},{"name":916,"slug":8,"type":15},"2026-07-31T05:53:21.570684",{"slug":992,"name":992,"fn":993,"description":994,"org":995,"tags":996,"stars":25,"repoUrl":26,"updatedAt":1006},"firebase-crashlytics","set up and manage Firebase Crashlytics","Comprehensive guide for Firebase Crashlytics, including provisioning and SDK usage. Use this skill when the user needs help setting up Crashlytics, adding crash reporting, or using the Crashlytics SDK in their application.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[997,1000,1001,1002,1003],{"name":998,"slug":999,"type":15},"Android","android",{"name":916,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},{"name":1004,"slug":1005,"type":15},"Observability","observability","2026-05-01T05:54:14.072678",{"slug":1008,"name":1008,"fn":1009,"description":1010,"org":1011,"tags":1012,"stars":25,"repoUrl":26,"updatedAt":1022},"firebase-data-connect","build backends with Firebase Data Connect","Builds and deploys Firebase SQL Connect (aka Firebase Data Connect) backends with PostgreSQL securely. Use when designing schemas with tables and relations, writing authorized queries and mutations, configuring real-time data updates, or generating type-safe SDKs. Use when you need a relational database with Firebase, or when the user mentions SQL Connect or Data Connect.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1013,1014,1015,1016,1019],{"name":930,"slug":931,"type":15},{"name":986,"slug":987,"type":15},{"name":916,"slug":8,"type":15},{"name":1017,"slug":1018,"type":15},"GraphQL","graphql",{"name":1020,"slug":1021,"type":15},"PostgreSQL","postgresql","2026-04-06T18:12:07.681031",12,{"items":1025,"total":1023},[1026,1033,1040,1048,1055,1063,1071,1079,1092,1105,1123,1139],{"slug":907,"name":907,"fn":908,"description":909,"org":1027,"tags":1028,"stars":25,"repoUrl":26,"updatedAt":922},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1029,1030,1031,1032],{"name":913,"slug":914,"type":15},{"name":916,"slug":8,"type":15},{"name":918,"slug":919,"type":15},{"name":921,"slug":921,"type":15},{"slug":924,"name":924,"fn":925,"description":926,"org":1034,"tags":1035,"stars":25,"repoUrl":26,"updatedAt":939},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1036,1037,1038,1039],{"name":930,"slug":931,"type":15},{"name":916,"slug":8,"type":15},{"name":934,"slug":935,"type":15},{"name":937,"slug":938,"type":15},{"slug":941,"name":941,"fn":942,"description":943,"org":1041,"tags":1042,"stars":25,"repoUrl":26,"updatedAt":959},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1043,1044,1045,1046,1047],{"name":947,"slug":948,"type":15},{"name":950,"slug":951,"type":15},{"name":916,"slug":8,"type":15},{"name":954,"slug":955,"type":15},{"name":957,"slug":958,"type":15},{"slug":961,"name":961,"fn":962,"description":963,"org":1049,"tags":1050,"stars":25,"repoUrl":26,"updatedAt":974},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1051,1052,1053,1054],{"name":967,"slug":968,"type":15},{"name":930,"slug":931,"type":15},{"name":916,"slug":8,"type":15},{"name":972,"slug":973,"type":15},{"slug":976,"name":976,"fn":977,"description":978,"org":1056,"tags":1057,"stars":25,"repoUrl":26,"updatedAt":990},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1058,1059,1060,1061,1062],{"name":982,"slug":983,"type":15},{"name":930,"slug":931,"type":15},{"name":986,"slug":987,"type":15},{"name":950,"slug":951,"type":15},{"name":916,"slug":8,"type":15},{"slug":992,"name":992,"fn":993,"description":994,"org":1064,"tags":1065,"stars":25,"repoUrl":26,"updatedAt":1006},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1066,1067,1068,1069,1070],{"name":998,"slug":999,"type":15},{"name":916,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},{"name":1004,"slug":1005,"type":15},{"slug":1008,"name":1008,"fn":1009,"description":1010,"org":1072,"tags":1073,"stars":25,"repoUrl":26,"updatedAt":1022},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1074,1075,1076,1077,1078],{"name":930,"slug":931,"type":15},{"name":986,"slug":987,"type":15},{"name":916,"slug":8,"type":15},{"name":1017,"slug":1018,"type":15},{"name":1020,"slug":1021,"type":15},{"slug":1080,"name":1080,"fn":1081,"description":1082,"org":1083,"tags":1084,"stars":25,"repoUrl":26,"updatedAt":1091},"firebase-firestore","manage and query Cloud Firestore databases","Sets up, manages, queries, and configures Cloud Firestore databases (Standard\u002FEnterprise edition), including data modeling, security rules, indexes, and SDK integrations (Web, Python, iOS, Android, Flutter). Use when creating\u002Flisting Firestore databases, defining data models\u002Findexes, writing SDK queries, or integrating Firestore SDKs. Don't use for Firebase Hosting, Data Connect, Auth, Storage\u002FGCS, Crashlytics, Functions, or BigQuery.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1085,1086,1087,1088],{"name":930,"slug":931,"type":15},{"name":986,"slug":987,"type":15},{"name":916,"slug":8,"type":15},{"name":1089,"slug":1090,"type":15},"NoSQL","nosql","2026-07-31T05:53:17.562137",{"slug":1093,"name":1093,"fn":1094,"description":1095,"org":1096,"tags":1097,"stars":25,"repoUrl":26,"updatedAt":1104},"firebase-hosting-basics","deploy static apps with Firebase Hosting","Deploys and configures classic Firebase Hosting for static websites, single-page apps (SPAs), and microservices. Use when deploying static sites\u002FSPAs, setting up custom domains, configuring firebase.json hosting settings (redirects, rewrites, headers, multi-site), or managing preview channels. Don't use for Firebase App Hosting (Next.js\u002FSSR), Auth, Firestore queries\u002Frules, Data Connect, or Crashlytics.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1098,1099,1100,1101],{"name":950,"slug":951,"type":15},{"name":916,"slug":8,"type":15},{"name":954,"slug":955,"type":15},{"name":1102,"slug":1103,"type":15},"Web Development","web-development","2026-07-31T05:53:22.565034",{"slug":1106,"name":1106,"fn":1107,"description":1108,"org":1109,"tags":1110,"stars":25,"repoUrl":26,"updatedAt":1122},"firebase-remote-config-basics","manage Firebase Remote Config and feature flags","Manages Firebase Remote Config templates, feature flags, loading strategies, and SDKs (Android, iOS). Use when downloading\u002Fdeploying remoteconfig JSON templates, managing version history\u002Ffeature flags, setting in-app defaults, fetchAndActivate(), real-time listeners, or SDK setup. Don't use for Firebase Hosting, Auth, Firestore, Data Connect, Crashlytics, or App Hosting.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1111,1114,1117,1118,1119],{"name":1112,"slug":1113,"type":15},"Configuration","configuration",{"name":1115,"slug":1116,"type":15},"Feature Flags","feature-flags",{"name":916,"slug":8,"type":15},{"name":17,"slug":18,"type":15},{"name":1120,"slug":1121,"type":15},"SDK","sdk","2026-07-31T05:53:18.552749",{"slug":1124,"name":1124,"fn":1125,"description":1126,"org":1127,"tags":1128,"stars":25,"repoUrl":26,"updatedAt":1138},"firebase-security-rules-auditor","audit Firestore security rules","Audits Firebase (Firestore, Cloud Storage) security rules for vulnerabilities, privilege escalation, role bypasses, create vs update inconsistencies, resource exhaustion, type safety, size limits, and hasOnly ownership checks. Use when auditing\u002Freviewing rules, running red-team rule assessments, or scoring against auditor checklists. Don't use for Firebase CLI (login, deploy), Auth, Crashlytics, Remote Config, or database queries.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1129,1132,1135,1136,1137],{"name":1130,"slug":1131,"type":15},"Audit","audit",{"name":1133,"slug":1134,"type":15},"Compliance","compliance",{"name":986,"slug":987,"type":15},{"name":916,"slug":8,"type":15},{"name":972,"slug":973,"type":15},"2026-07-31T05:53:16.588011",{"slug":4,"name":4,"fn":5,"description":6,"org":1140,"tags":1141,"stars":25,"repoUrl":26,"updatedAt":27},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1142,1143,1144,1145],{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":23,"slug":24,"type":15}]