---
name: foundation
description: Foundation framework skills — AttributedString patterns for rich text formatting, alignment, selection, and SwiftUI integration. Use when working with styled text or AttributedString APIs.
allowed-tools: [ Read, Glob, Grep ]
last_verified: 2026-07-16
review_by: 2027-06-22
title: foundation
canonical_url: https://skilld.dev/gh/rshankras/claude-code-apple-skills/foundation
last_updated: 2026-09-28T09:26:27.000Z
---

> **Skill from skilld.dev.** Follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [attributed-string/SKILL.md](https://skilld.dev/api/skills-raw/rshankras/claude-code-apple-skills/foundation/attributed-string/SKILL.md).
>
> If the user asked to install this Skill, run `npx skilld install rshankras/claude-code-apple-skills/foundation`. Install writes the Skill files into the project, so every session loads them.

# 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`.
