---
name: Foundation
slug: foundation
category: Frontend
description: Foundation covers AttributedString formatting, alignment, selection, and SwiftUI integration on Apple platforms. Use it when working with styled text or attributed text APIs.
github: "https://github.com/rshankras/claude-code-apple-skills/tree/main/skills/foundation"
language: Swift
stars: 659
forks: 60
install: "npx degit https://github.com/rshankras/claude-code-apple-skills/tree/main/skills/foundation ~/.claude/skills/foundation"
installs_to: ~/.claude/skills/foundation
source_path: skills/foundation/SKILL.md
collection_size: 25
category_size: 567
collection_url: "https://dirskills.com/collections/rshankras/claude-code-apple-skills"
added: 2026-08-24T05:17:16.093Z
last_synced: 2026-08-24T05:17:16.093Z
canonical_url: "https://dirskills.com/skills/foundation"
---

# Foundation

Foundation covers AttributedString formatting, alignment, selection, and SwiftUI integration on Apple platforms. Use it when working with styled text or attributed text APIs.

**Install:**

```bash
npx degit https://github.com/rshankras/claude-code-apple-skills/tree/main/skills/foundation ~/.claude/skills/foundation
```

## README

# Foundation Skills

Foundation framework patterns for Apple platforms.

## When This Skill Activates

Use this skill when the user:
- Works with **AttributedString** (formatting, attributes, runs)
- Needs **rich text** alignment, selection, or styling logic
- Integrates attributed text with **SwiftUI**

## Available Skills

Paths are relative to THIS file's directory — skills run with cwd set to the
user's project, so resolve each path from this SKILL.md's own location.

| Skill | Read | Covers |
|-------|------|--------|
| attributed-string | `attributed-string/SKILL.md` | AttributedString formatting, alignment, selection, SwiftUI integration |

## How to Route

1. Read `attributed-string/SKILL.md` (relative to this file) plus any reference files it lists.
2. Apply the guidance to the user's code. For TextEditor-based rich text editing UI, see also `../swiftui/text-editing/SKILL.md`.
