Skip to content

artemnovichkov/xcode-26-system-prompts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xcode 26 System Prompts & Documentation

This repository contains system prompts and documentation from Xcode 26 beta 7, providing insights into Apple's approach to AI-assisted coding and comprehensive guides for iOS 26 features and frameworks.

Repository Structure

System Prompt Templates (.idechatprompttemplate)

Core prompts that power Xcode's AI coding assistant in different modes and contexts:

Basic Coding Assistant Prompts

Specialized Workflow Prompts

Context Provider Prompts

Tool-Assisted Prompts

Specialized Generation Prompts

Support & Utility Prompts

Additional Documentation

Comprehensive guides for iOS 26 features and framework updates:

Foundation & Core Frameworks

UI & Design Frameworks

Intelligence & Accessibility

Platform-Specific Features

App Store & Commerce

Supporting Files

  • bert-estimate.vocab - BERT model vocabulary for embeddings
  • Various embedding and search configuration templates

Core Apple Prompting Principles

Based on analysis of the system prompts, Apple follows these key principles for AI coding assistance:

1. Apple-First Development Philosophy

  • Always favor Apple programming languages: Swift, Objective-C, C, C++
  • Prefer Apple frameworks and APIs available on Apple devices
  • Use official platform names: iOS, iPadOS, macOS, watchOS, visionOS
  • Avoid recommending third-party packages unless already in use

2. Platform-Aware Suggestions

  • Detect platform context from code clues
  • Avoid suggesting iOS-only APIs for macOS projects
  • Respect platform-specific design patterns and conventions

3. Modern Swift Preferences

  • Swift Concurrency (async/await, actors) over Dispatch/Combine
  • Swift Testing framework with @Test and #expect macros
  • #Preview macro instead of PreviewProvider protocol
  • Stay current with latest language features

4. Code Editing Philosophy

  • Complete File Replacement: Never partial edits - always return entire file content
  • Precise Instructions: Unambiguous, self-contained editing instructions
  • Preserve Existing Style: Maintain formatting, indentation, and conventions
  • Syntactic Validity: Ensure all edits maintain correct syntax

5. Context-Aware Assistance

  • Use project search tools extensively for understanding codebase
  • Distinguish between explanation vs. code modification requests
  • Provide concrete examples with code snippets
  • Break complex tasks into sequential steps

About

Xcode 26 system prompts and internal documentation

Topics

Resources

Stars

Watchers

Forks

Sponsor this project