Skip to content
alyn
rshankras

Foundation skill

Foundation framework skills — AttributedString patterns for rich text formatting, alignment, selection, and SwiftUI integration. Use when working with styled text or AttributedString APIs.

$npx skills add rshankras/claude-code-apple-skills --skill foundation
View this skill on GitHubrshankras/claude-code-apple-skills/skills/foundation/SKILL.md
Pack stars
881
Pack installs
14k
Alyn Score
54/99
Updated
2 days ago
License
MIT
– views – installs via Alyn

rshankras

Foundation

Install Foundation

Pick your agent. Every command is ready to paste.

$npx skills add rshankras/claude-code-apple-skills --skill foundation

The open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads foundation when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the foundation skill”. In Codex, type $foundation.

The skill itself

SKILL.md

FolderGitHub

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.

Tips for Foundation

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • It is part of a pack with 30 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Foundation

What does the Foundation skill do?

Foundation framework skills — AttributedString patterns for rich text formatting, alignment, selection, and SwiftUI integration. Use when working with styled text or AttributedString APIs.

How do I install Foundation?

Run "npx skills add rshankras/claude-code-apple-skills --skill foundation" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Foundation work in Cursor and Codex?

Yes. Foundation uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

Is Foundation free?

Foundation is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.

Who made Foundation?

Foundation is published by rshankras in the rshankras/claude-code-apple-skills repository, together with 29 other skills.

Similar skills. From other creators.