Copilot-Skills apple-docs.instructions.md

Copilot-Skills apple-docs.instructions.md is an instructions file for GitHub Copilot from TheSethRose/Copilot-Skills. It costs 1,036 tokens per session, scanned A, original, MIT.

Coding guidance for Swift, Apple’s programming language, and SwiftUI, Apple’s framework for building user interfaces. It provides ways to look up Apple APIs and explore SwiftUI components.

In plain words
What is it for?
It helps developers find documentation for Swift symbols, discover SwiftUI components, and build or review files such as .swift, .swiftui, and Package.swift.
Why use it?
It reduces the time spent searching official Apple documentation for unfamiliar types, functions, and interface components. It also encourages standard Swift and SwiftUI code patterns.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/thesethrose/copilot-skills/apple-docs
Clone the repo
git clone --depth 1 https://github.com/TheSethRose/Copilot-Skills

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Copilot-Skills apple-docs.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/thesethrose/copilot-skills/apple-docs.svg)](https://agentmods.dev/instructions/thesethrose/copilot-skills/apple-docs)
Your own site
<a href="https://agentmods.dev/instructions/thesethrose/copilot-skills/apple-docs"><img src="https://agentmods.dev/badge/instructions/thesethrose/copilot-skills/apple-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,036 This file is loaded in full into every session.
When invoked 1,036 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01036 $0.01036
Opus 5 $0.00518 $0.00518
Sonnet 5 $0.00207 $0.00207
Haiku 4.5 $0.00104 $0.00104

Measured 4d ago against content hash 12815a3da465, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Copilot-Skills apple-docs.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/instructions/apple-docs.instructions.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Apple Docs - Auto-Loaded Instructions

Auto-loads for: **/*.swift, **/*.swiftui, **/Package.swift

Default Behaviors

When working in Swift files, this skill provides:

  • Quick access to Apple's official API documentation
  • Symbol lookup for Swift/SwiftUI components
  • Framework exploration capabilities

Common Patterns

Looking Up Swift Symbols

When you see unfamiliar Swift code:

let task = Task { ... }

Use: bash .github/copilot-skills/documentation/apple-docs/scripts/get-symbol.sh swift/task

Finding SwiftUI Components

When building UI:

Button("Press Me") { ... }

Use: bash .github/copilot-skills/documentation/apple-docs/scripts/get-symbol.sh swiftui/button

Exploring Frameworks

When starting a new feature, explore available APIs:

bash .github/copilot-skills/documentation/apple-docs/scripts/search-framework.sh swiftui "navigation"

Quality Guidelines

Code Style

  • Follow Swift naming conventions (PascalCase for types, camelCase for variables)
  • Use descriptive names that match Apple's API patterns
  • Leverage type inference where appropriate

SwiftUI Patterns

  • Use declarative view composition
  • Prefer built-in modifiers over custom solutions
  • Check documentation for availability across platforms

Documentation References

  • Always check symbol availability for target platforms
  • Reference Apple docs when using advanced APIs
  • Link to specific symbols in code comments when helpful

Workflow Integration

During Development

  1. Encounter unfamiliar API
  2. Run get-symbol.sh to fetch docs
  3. Review usage and examples
  4. Implement correctly

Code Review

  1. Question API usage
  2. Verify with search-framework.sh
  3. Check platform availability
  4. Suggest alternatives if needed

Best Practices

✅ Do:

  • Use scripts to verify API availability
  • Check documentation before Stack Overflow
  • Search frameworks before creating custom solutions
  • Cache frequently used documentation locally

Read the full file on GitHub · 165 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 165 lines · 1,036 tokens per session scan A 12815a3da465

Subscribe to this mod's changes

Copilot-Skills apple-docs.instructions.md is an instructions file published in the GitHub repository TheSethRose/Copilot-Skills (3 stars, last pushed 8mo ago), licensed MIT. It adds 1,036 tokens to every session, about $0.0052 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

Xcode-Build-Optimization-Agent-Skill copilot-instructions.md

Instructions for AvdLee/Xcode-Build-Optimization-Agent-Skill, covering repository mission, agent skill requirements, behavior constraints, build optimization focus areas and common issues to flag.

AvdLee/Xcode-Build-Optimization-Agent-Skill · 525 tokens

copilot copilot-instructions.md

Copilot instructions for navikt/copilot, covering copilot instructions for navikt/copilot, repository overview, nav development standards, nav principles and nav tech stack.

navikt/copilot · 3,922 tokens

copilot AGENTS.md

AGENTS.md instructions for navikt/copilot, covering agents.md for navikt/copilot, what this repo is, efficiency rule, standard commands and conventions.

navikt/copilot · 720 tokens

capgo-skills AGENTS.md

AGENTS.md instructions for Cap-go/capgo-skills, covering agents.md, quick start, install dependencies, build the plugin (typescript + rollup + docgen) and full verification (ios, android, web).

Cap-go/capgo-skills · 1,444 tokens

github-copilot-superpowers copilot-agent.instructions.md

Instructions for kasuken/github-copilot-superpowers, covering copilot agent instructions, 🎯 instruction hierarchy, 📋 execution order vs priority, execution order (workflow sequence) and ⛔ mandatory response template (every request).

kasuken/github-copilot-superpowers · 2,285 tokens

github-copilot-superpowers subagents.instructions.md

Instructions for kasuken/github-copilot-superpowers, covering subagent instructions (ssot), terminology, agent role: orchestrator only, ⚠️ absolute rules (non-negotiable) and mcp delegation rules.

kasuken/github-copilot-superpowers · 1,913 tokens