Xcode 27 system prompts and internal documentation
Python
515
20 commits
updated Sep 29, 2026
This repository contains system prompts and documentation from Xcode 27 beta 6, providing insights into Apple's approach to AI-assisted coding and comprehensive guides for iOS 26/27 features and frameworks. You can also find them at Xcode.app/Contents/PlugIns/IDEIntelligenceChat.framework/Versions/A/Resources.
.idechatprompttemplate)Core prompts that power Xcode's AI coding assistant in different modes and contexts:
BasicSystemPrompt.idechatprompttemplate - Foundation prompt for code analysis and suggestionsReasoningSystemPrompt.idechatprompttemplate - Enhanced reasoning for complex coding tasksVariantASystemPrompt.idechatprompttemplate / VariantBSystemPrompt.idechatprompttemplate - Alternative system prompt variantsIntegratorSystemPrompt.idechatprompttemplate - Precise code editing with specific instructionsNewCodeIntegratorSystemPrompt.idechatprompttemplate - Integration of entirely new codeFastApplyIntegratorSystemPrompt.idechatprompttemplate - Rapid code modificationsTextEditorToolSystemPrompt.idechatprompttemplate - Tool-assisted text editing modePlannerExecutorStylePlannerSystemPrompt.idechatprompttemplate - Planning-based coding approachCurrentFile.idechatprompttemplate - Full current file contextCurrentFileAbbreviated.idechatprompttemplate - Condensed file contextCurrentFileName.idechatprompttemplate - File name only contextCurrentSelection.idechatprompttemplate - Selected code contextNoSelection.idechatprompttemplate - No selection contextOriginalFile.idechatprompttemplate - Original file stateToolAssistedBasicSystemPrompt.idechatprompttemplate - Enhanced with search and editing toolsToolAssistedReasoningSystemPrompt.idechatprompttemplate - Reasoning with tool accessToolAssistedInQueryDetailedGuidelines.idechatprompttemplate - Detailed tool usage guidelinesAgentSystemPromptAddition.idechatprompttemplate - Xcode agent system prompt with MCP tools, documentation search, and code style guidelinesAgentAdditionalContext.idechatprompttemplate - Project structure and file context for agent modeAgentVersions.plist - Agent version configuration (Claude Code 2.1.220, Codex 0.145.0 as of beta 5)CodingToolTemplateDocument.idechatprompttemplate - Documentation generation via XcodeUpdate toolCodingToolTemplateExplain.idechatprompttemplate - Code explanation tool templateCodingToolTemplateGeneratePlayground.idechatprompttemplate - Swift #Playground generation tool templateCodingToolTemplateGeneratePreview.idechatprompttemplate - SwiftUI #Preview generation tool templateGenerateDocumentation.idechatprompttemplate - Code documentation generationGeneratePlayground.idechatprompttemplate - Swift Playground creationGeneratePreview.idechatprompttemplate - SwiftUI Preview generation with smart embedding rulesPromptSuggestionGenerator.idechatprompttemplate - Suggests 3 contextual prompts based on project, active file, branch, commits, and build diagnosticsChatTitleResolver.idechatprompttemplate - Chat session title generationQuery.idechatprompttemplate - Query processingSearchResults.idechatprompttemplate - Search result formattingIssues.idechatprompttemplate - Issue identification and resolutionSnippets.idechatprompttemplate - Code snippet managementOn-demand skills that pair a system prompt with bundled *-ref-*.md.packaged reference docs (and helper scripts), loaded only when the task matches:
audit-xcode-security-settings.idechatprompttemplate - Audits and progressively enables security build settings: compiler warnings, static analyzer checkers, Enhanced Security, Pointer Authentication, hardware memory tagging, typed allocators, stack zero-init, etc. Reworked in beta 3 into a phased plan-and-approve workflow (editable plan file, XcodeUpdate edits, per-target task tracking) with a new universal-binaries-for-libraries reference. In beta 5 the single "Basic Clang safety warnings" item was split into three separately checkable groups — Compiler warnings (fire on every build), Static analyzer warnings and Clang-tidy warnings (both Build and analyze only) — plan parents became non-checkable group headings, and the approval step now answers questions and expands the plan before applying. Ships with audit-xcode-security-settings-script-filter_build_settings.pyadopt-c-bounds-safety.idechatprompttemplate - Guide for adopting, reviewing, and debugging the C -fbounds-safety language extension (pointer annotations, build settings, runtime trap debugging). Renamed from c-bounds-safety in beta 3 with expanded trigger conditionsapp-intents-specialist.idechatprompttemplate - New in beta 5. Evergreen App Intents best practices and correctness review: perform() execution model (Sendable, not @MainActor, retriable), entity/query design and id stability, EntityPropertyQuery, AppEnum raw-value stability, parameters and parameter summaries, @Dependency placement, localized errors, donation, App Shortcut phrases, URL representation, configuration intents, and intent factoringapp-intents-whats-new-27.idechatprompttemplate - New in beta 5. New App Intents APIs from the iOS 26 (2025) and iOS 27 (2026) releases, each tagged with its @available floor: supportedModes/IntentModes (and the openAppWhenRun deprecation), LongRunningIntent, interactive SnippetIntent, requestChoice, Visual Intelligence (IntentValueQuery + SemanticContentDescriptor), onscreen entities, Spotlight indexing and IndexedEntityQuery, @ComputedProperty/@DeferredProperty, Apple Intelligence schema adoption, RelevantEntities, SyncableEntity/EntityOwnership, SystemShortcut, EntityCollection, AppUnionValue, and unit testing with AppIntentsTestingbuilding-document-based-swiftui-applications.idechatprompttemplate - New in beta 5. Dedicated skill for the new SwiftUI Document protocol (ReadableDocument/WritableDocument): DocumentGroup setup, DocumentReader/DocumentWriter, FileWrapper convenience, package documents and incremental writes, direct file-URL access, Subprogress reporting, the undo registration that autosave depends on, custom UTType declaration, read-only viewers, and migration from FileDocument/ReferenceFileDocument. Split out of the swiftui-whats-new-27 skillswiftui-specialist.idechatprompttemplate - SwiftUI best practices and idiomatic patterns: view structure, data flow, environment, modifiers, localization, animations, ForEach identity, soft-deprecated APIs. Beta 5 rewrote the trigger description, added guidance on preferring AnyShapeStyle over an if/else @ViewBuilder branch when ternary styles don't unify (and on not assuming a style ternary fails to compile), warned against subscript-based argument-less @Observable projections, and folded the visionOS statusBarHidden deprecation note into the soft-deprecated listswiftui-whats-new-27.idechatprompttemplate - New SwiftUI APIs/behaviors for the 2027 OS releases: @State macro migration, reorderable(), AsyncImage caching, toolbar overflow, item-binding alerts/dialogs, swipe actions, @ContentBuilder. In beta 5 the description was condensed and the document-based-apps and deprecations references were dropped from the skill (documents moved to their own skill, deprecations to swiftui-specialist)uikit-app-modernization.idechatprompttemplate - Modernizes UIKit apps for multi-window environments by replacing legacy shared-state APIs (UIScreen.main, interfaceOrientation, asymmetric safe areas) with scene-aware alternativesComprehensive guides for iOS 26 features and framework updates:
FoundationModels-Using-on-device-LLM-in-your-app.md - Apple's on-device LLM integrationFoundation-AttributedString-Updates.md - AttributedString enhancementsSwift-Concurrency-Updates.md - Latest Swift concurrency featuresSwift-InlineArray-Span.md - New Swift array typesSwiftData-Class-Inheritance.md - SwiftData inheritance supportSwiftUI-Implementing-Liquid-Glass-Design.md - New Liquid Glass visual materialUIKit-Implementing-Liquid-Glass-Design.md - Liquid Glass in UIKitAppKit-Implementing-Liquid-Glass-Design.md - Liquid Glass for macOSWidgetKit-Implementing-Liquid-Glass-Design.md - Liquid Glass in widgetsSwiftUI-New-Toolbar-Features.md - Enhanced toolbar capabilitiesSwiftUI-Styled-Text-Editing.md - Advanced text editing featuresSwiftUI-WebKit-Integration.md - Web content in SwiftUISwiftUI-AlarmKit-Integration.md - System alarm functionalityImplementing-Visual-Intelligence-in-iOS.md - Camera-based object recognitionImplementing-Assistive-Access-in-iOS.md - Accessibility enhancementsWidgets-for-visionOS.md - visionOS widget developmentSwift-Charts-3D-Visualization.md - 3D chart capabilitiesMapKit-GeoToolbox-PlaceDescriptors.md - Enhanced location servicesStoreKit-Updates.md - StoreKit improvementsAppIntents-Updates.md - App Intents framework updatesIDEIntelligenceChat.xcplugindata - Plugin data for Xcode's AI chat featurebert-estimate.vocab - BERT model vocabulary for embeddingsBased on analysis of the system prompts, Apple follows these key principles for AI coding assistance:
@Test and #expect macrosXcode 27 system prompts and internal documentation
Python
515
20 commits
updated Sep 29, 2026
This repository contains system prompts and documentation from Xcode 27 beta 6, providing insights into Apple's approach to AI-assisted coding and comprehensive guides for iOS 26/27 features and frameworks. You can also find them at Xcode.app/Contents/PlugIns/IDEIntelligenceChat.framework/Versions/A/Resources.
.idechatprompttemplate)Core prompts that power Xcode's AI coding assistant in different modes and contexts:
BasicSystemPrompt.idechatprompttemplate - Foundation prompt for code analysis and suggestionsReasoningSystemPrompt.idechatprompttemplate - Enhanced reasoning for complex coding tasksVariantASystemPrompt.idechatprompttemplate / VariantBSystemPrompt.idechatprompttemplate - Alternative system prompt variantsIntegratorSystemPrompt.idechatprompttemplate - Precise code editing with specific instructionsNewCodeIntegratorSystemPrompt.idechatprompttemplate - Integration of entirely new codeFastApplyIntegratorSystemPrompt.idechatprompttemplate - Rapid code modificationsTextEditorToolSystemPrompt.idechatprompttemplate - Tool-assisted text editing modePlannerExecutorStylePlannerSystemPrompt.idechatprompttemplate - Planning-based coding approachCurrentFile.idechatprompttemplate - Full current file contextCurrentFileAbbreviated.idechatprompttemplate - Condensed file contextCurrentFileName.idechatprompttemplate - File name only contextCurrentSelection.idechatprompttemplate - Selected code contextNoSelection.idechatprompttemplate - No selection contextOriginalFile.idechatprompttemplate - Original file stateToolAssistedBasicSystemPrompt.idechatprompttemplate - Enhanced with search and editing toolsToolAssistedReasoningSystemPrompt.idechatprompttemplate - Reasoning with tool accessToolAssistedInQueryDetailedGuidelines.idechatprompttemplate - Detailed tool usage guidelinesAgentSystemPromptAddition.idechatprompttemplate - Xcode agent system prompt with MCP tools, documentation search, and code style guidelinesAgentAdditionalContext.idechatprompttemplate - Project structure and file context for agent modeAgentVersions.plist - Agent version configuration (Claude Code 2.1.220, Codex 0.145.0 as of beta 5)CodingToolTemplateDocument.idechatprompttemplate - Documentation generation via XcodeUpdate toolCodingToolTemplateExplain.idechatprompttemplate - Code explanation tool templateCodingToolTemplateGeneratePlayground.idechatprompttemplate - Swift #Playground generation tool templateCodingToolTemplateGeneratePreview.idechatprompttemplate - SwiftUI #Preview generation tool templateGenerateDocumentation.idechatprompttemplate - Code documentation generationGeneratePlayground.idechatprompttemplate - Swift Playground creationGeneratePreview.idechatprompttemplate - SwiftUI Preview generation with smart embedding rulesPromptSuggestionGenerator.idechatprompttemplate - Suggests 3 contextual prompts based on project, active file, branch, commits, and build diagnosticsChatTitleResolver.idechatprompttemplate - Chat session title generationQuery.idechatprompttemplate - Query processingSearchResults.idechatprompttemplate - Search result formattingIssues.idechatprompttemplate - Issue identification and resolutionSnippets.idechatprompttemplate - Code snippet managementOn-demand skills that pair a system prompt with bundled *-ref-*.md.packaged reference docs (and helper scripts), loaded only when the task matches:
audit-xcode-security-settings.idechatprompttemplate - Audits and progressively enables security build settings: compiler warnings, static analyzer checkers, Enhanced Security, Pointer Authentication, hardware memory tagging, typed allocators, stack zero-init, etc. Reworked in beta 3 into a phased plan-and-approve workflow (editable plan file, XcodeUpdate edits, per-target task tracking) with a new universal-binaries-for-libraries reference. In beta 5 the single "Basic Clang safety warnings" item was split into three separately checkable groups — Compiler warnings (fire on every build), Static analyzer warnings and Clang-tidy warnings (both Build and analyze only) — plan parents became non-checkable group headings, and the approval step now answers questions and expands the plan before applying. Ships with audit-xcode-security-settings-script-filter_build_settings.pyadopt-c-bounds-safety.idechatprompttemplate - Guide for adopting, reviewing, and debugging the C -fbounds-safety language extension (pointer annotations, build settings, runtime trap debugging). Renamed from c-bounds-safety in beta 3 with expanded trigger conditionsapp-intents-specialist.idechatprompttemplate - New in beta 5. Evergreen App Intents best practices and correctness review: perform() execution model (Sendable, not @MainActor, retriable), entity/query design and id stability, EntityPropertyQuery, AppEnum raw-value stability, parameters and parameter summaries, @Dependency placement, localized errors, donation, App Shortcut phrases, URL representation, configuration intents, and intent factoringapp-intents-whats-new-27.idechatprompttemplate - New in beta 5. New App Intents APIs from the iOS 26 (2025) and iOS 27 (2026) releases, each tagged with its @available floor: supportedModes/IntentModes (and the openAppWhenRun deprecation), LongRunningIntent, interactive SnippetIntent, requestChoice, Visual Intelligence (IntentValueQuery + SemanticContentDescriptor), onscreen entities, Spotlight indexing and IndexedEntityQuery, @ComputedProperty/@DeferredProperty, Apple Intelligence schema adoption, RelevantEntities, SyncableEntity/EntityOwnership, SystemShortcut, EntityCollection, AppUnionValue, and unit testing with AppIntentsTestingbuilding-document-based-swiftui-applications.idechatprompttemplate - New in beta 5. Dedicated skill for the new SwiftUI Document protocol (ReadableDocument/WritableDocument): DocumentGroup setup, DocumentReader/DocumentWriter, FileWrapper convenience, package documents and incremental writes, direct file-URL access, Subprogress reporting, the undo registration that autosave depends on, custom UTType declaration, read-only viewers, and migration from FileDocument/ReferenceFileDocument. Split out of the swiftui-whats-new-27 skillswiftui-specialist.idechatprompttemplate - SwiftUI best practices and idiomatic patterns: view structure, data flow, environment, modifiers, localization, animations, ForEach identity, soft-deprecated APIs. Beta 5 rewrote the trigger description, added guidance on preferring AnyShapeStyle over an if/else @ViewBuilder branch when ternary styles don't unify (and on not assuming a style ternary fails to compile), warned against subscript-based argument-less @Observable projections, and folded the visionOS statusBarHidden deprecation note into the soft-deprecated listswiftui-whats-new-27.idechatprompttemplate - New SwiftUI APIs/behaviors for the 2027 OS releases: @State macro migration, reorderable(), AsyncImage caching, toolbar overflow, item-binding alerts/dialogs, swipe actions, @ContentBuilder. In beta 5 the description was condensed and the document-based-apps and deprecations references were dropped from the skill (documents moved to their own skill, deprecations to swiftui-specialist)uikit-app-modernization.idechatprompttemplate - Modernizes UIKit apps for multi-window environments by replacing legacy shared-state APIs (UIScreen.main, interfaceOrientation, asymmetric safe areas) with scene-aware alternativesComprehensive guides for iOS 26 features and framework updates:
FoundationModels-Using-on-device-LLM-in-your-app.md - Apple's on-device LLM integrationFoundation-AttributedString-Updates.md - AttributedString enhancementsSwift-Concurrency-Updates.md - Latest Swift concurrency featuresSwift-InlineArray-Span.md - New Swift array typesSwiftData-Class-Inheritance.md - SwiftData inheritance supportSwiftUI-Implementing-Liquid-Glass-Design.md - New Liquid Glass visual materialUIKit-Implementing-Liquid-Glass-Design.md - Liquid Glass in UIKitAppKit-Implementing-Liquid-Glass-Design.md - Liquid Glass for macOSWidgetKit-Implementing-Liquid-Glass-Design.md - Liquid Glass in widgetsSwiftUI-New-Toolbar-Features.md - Enhanced toolbar capabilitiesSwiftUI-Styled-Text-Editing.md - Advanced text editing featuresSwiftUI-WebKit-Integration.md - Web content in SwiftUISwiftUI-AlarmKit-Integration.md - System alarm functionalityImplementing-Visual-Intelligence-in-iOS.md - Camera-based object recognitionImplementing-Assistive-Access-in-iOS.md - Accessibility enhancementsWidgets-for-visionOS.md - visionOS widget developmentSwift-Charts-3D-Visualization.md - 3D chart capabilitiesMapKit-GeoToolbox-PlaceDescriptors.md - Enhanced location servicesStoreKit-Updates.md - StoreKit improvementsAppIntents-Updates.md - App Intents framework updatesIDEIntelligenceChat.xcplugindata - Plugin data for Xcode's AI chat featurebert-estimate.vocab - BERT model vocabulary for embeddingsBased on analysis of the system prompts, Apple follows these key principles for AI coding assistance:
@Test and #expect macros