- This repository is a documentation skill pack for Xcode 26 era Apple framework updates.
- Content lives in Markdown; there is no compiled source code or app target here.
- When writing, prefer crisp summaries and actionable guidance.
README.mdexplains how to install the skill.xcode-26/SKILL.mddefines the skill metadata and the reference map.xcode-26/references/holds the detailed topic notes used by agents.- Images such as
source.pnglive at the repo root.
- No build system, package manager, or CI config is present in this repo.
- There are no lint or test scripts configured.
- If you need to validate Swift snippets, do it in a host app or scratch Xcode project.
- Prefer manual review: check code blocks compile and match Apple API naming.
- Not applicable; there is no test harness in this repository.
- If a user wants a single test, instruct them to run it in their app target.
- No
.cursor/rules/,.cursorrules, or.github/copilot-instructions.mdfound. - If these appear later, append their guidance here and follow them.
- Use Markdown with ATX headings (
#,##,###) as seen in reference files. - Start files with an overview section when writing new topic docs.
- Keep paragraphs short; prefer 1-3 sentences before a list.
- Use bullet lists for features, steps, and callouts.
- Use numbered lists for procedures that must be followed in order.
- Keep line length around 100-120 characters when convenient.
- Use backticks for identifiers, API names, file paths, and commands.
- Place code in fenced blocks with a language tag (usually
swiftorbash). - Avoid fancy typography; stick to ASCII punctuation.
- Prefer neutral, instructional tone; avoid marketing language.
- Skill files start with YAML front matter (
---),name, anddescription. - The
nameshould match the folder (xcode-26) and be lowercase. - Keep the description action-oriented and mention the supported domains.
- Maintain the "Reference map" section listing all reference docs.
- When adding a new reference doc, update the map in
xcode-26/SKILL.md.
- Use
## Overviewand## Basic Implementationwhen relevant. - Use
###for subtopics such as setup, customization, or testing. - Include short "Key features" or "Key updates" lists near the top.
- Provide both explanation and code examples when a feature is complex.
- Call out platform availability and OS requirements explicitly.
- Prefer specific API names and modifiers rather than broad prose.
- Note any feature caveats or gotchas as short bullet points.
- Use Swift 6 idioms unless the feature is older.
- Use
importstatements only for frameworks actually referenced. - Keep sample code minimal but complete enough to compile.
- Use
UpperCamelCasefor types andlowerCamelCasefor variables/functions. - Use trailing closures and shorthand arguments when they aid clarity.
- Prefer
letovervarunless mutation is required. - Use
@MainActor/@Observable/@Environmentwhere appropriate and documented. - Show
Task {}orasync/awaitfor concurrency examples rather than callbacks.
- Use
do/try/catchwhen the API throws; surface meaningful errors in text. - Mention error types or domains only when relevant to the feature.
- For optional-returning APIs, use
guard letwith a short fallback. - Avoid silent failures in sample code; show a minimal error path.
- Use Apple's official framework names (SwiftUI, UIKit, AppKit, WidgetKit).
- Use platform names with correct casing (iOS, iPadOS, macOS, visionOS).
- Use "Liquid Glass" capitalization as seen in reference docs.
- Prefer "App Intents" (plural) and "Foundation Models Framework" naming.
- When referencing APIs, include the module if it helps disambiguate.
- Group imports at the top of code blocks; avoid unused imports.
- If multiple frameworks are required, list system frameworks first.
- Avoid third-party frameworks in examples unless explicitly requested.
- Keep indentation at 4 spaces in Swift code blocks.
- Align chained modifiers vertically when readability improves.
- Use blank lines between conceptual sections in long code samples.
- Avoid overly long chained expressions; split into intermediate
letbindings.
- Prefer direct guidance based on these reference docs.
- If information is missing, say so and suggest where to look next.
- When summarizing, keep the mapping between feature and framework clear.
- Avoid guessing APIs; if unsure, state the uncertainty.
- For user requests about Xcode 26 features, open the relevant file in
xcode-26/references/. - Summarize using the repository's phrasing and terminology.
- If multiple references apply, merge the guidance and note intersections.
- Keep answers short unless the user asks for deep dives.
- Name files using Title-Case words with hyphens, e.g.
SwiftUI-New-Toolbar-Features.md. - Place new docs under
xcode-26/references/. - Add the file to
xcode-26/SKILL.mdunder "Reference map". - Update
README.mdonly if install or usage changes.
- Ensure all headings are properly nested (no skipping levels).
- Verify code fences are closed and language tags are correct.
- Avoid duplicate headings in the same file unless intentional.
- Keep images local when possible and include alt text.
- Use a scratch Xcode project to compile Swift snippets.
- Run examples on the minimum OS versions mentioned in the docs.
- If validating widgets or StoreKit, use local configuration files as described.
- No automated tooling or CI configuration is present.
- No Swift packages, Xcode projects, or tests are included.
- This repo is documentation-first; treat it like a knowledge base.
- Do not include real API keys or credentials in examples.
- Avoid writing code that requires private entitlements unless noted.
- Prefer on-device testing recommendations when Apple requires it.
- Keep edits scoped to the topic being addressed.
- Preserve existing structure and wording unless updating for clarity.
- When adding major sections, match the tone of the surrounding document.
- Re-run spelling and grammar checks mentally after edits.
- When linking to Apple docs, use official developer.apple.com URLs.
- Use link text that describes the destination (not "click here").
- Keep reference links at the end of sections when possible.
- If the
xcode-26skill is referenced, load only the needed reference files. - Mention when guidance is not covered by the current reference set.
- Avoid inventing new APIs; prefer "check the latest docs" if uncertain.
- Keep this AGENTS.md aligned with repository contents.
- If new tooling appears, update Build/Lint/Test sections first.
- Revisit style guidelines after major content restructuring.