hig-project-context
When the user starts HIG work on a project, asks to set up or update their design context, or another hig-* skill needs project details that are not recorded yet. Reads the codebase, confirms with the user, and writes .agents/apple-design-context.md (platforms, stack, design syst
Install
npx skills add https://github.com/raintree-technology/hig-doctor/tree/main/skills/hig-project-context
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install raintree-technology-hig-doctor@llmmart
git clone https://github.com/raintree-technology/hig-doctor.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole raintree-technology/hig-doctor collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Apple HIG: Project Context
Create and maintain .agents/apple-design-context.md so other HIG skills can skip redundant questions.
If .agents/apple-design-context.md (or the older .claude/apple-design-context.md) exists, read it first and update it instead of starting over.
Gathering Context
Before asking questions, auto-discover context from:
- README.md -- Product description, platform targets
- Package.swift / .xcodeproj -- Supported platforms, minimum OS versions, dependencies
- Info.plist -- App category, required capabilities, supported orientations
- Existing code -- Import statements reveal frameworks (SwiftUI vs UIKit, HealthKit, etc.)
- Assets.xcassets -- Color assets, icon sets, dark mode variants
- Accessibility audit -- Grep for accessibility modifiers/attributes
Present findings and ask the user to confirm or correct. Then gather anything still missing:
1. Product Overview
- What does the app do? (one sentence)
- Category (productivity, social, health, game, utility, etc.)
- Stage (concept, development, shipped, redesign)
2. Target Platforms
- Which Apple platforms? (iOS, iPadOS, macOS, tvOS, watchOS, visionOS)
- Minimum OS versions
- Universal or platform-specific?
3. Technology Stack
- UI framework: SwiftUI, UIKit, AppKit, or mixed?
- Architecture: single-window, multi-window, document-based?
- Apple technologies in use? (HealthKit, CloudKit, ARKit, etc.)
4. Design System
- System defaults or custom design system?
- Brand colors, fonts, icon style?
- Dark mode and Dynamic Type support status
5. Accessibility Requirements
- Target level (baseline, enhanced, comprehensive)
- Specific considerations (VoiceOver, Switch Control, etc.)
- Regulatory requirements (WCAG, Section 508)
6. User Context
- Primary personas (1-3)
- Key use cases and environments (desk, on-the-go, glanceable, immersive)
- Known pain points or design challenges
7. Existing Design Assets
- Figma/Sketch files?
- Apple Design Resources in use?
- Existing component library?
Context Document Template
Generate .agents/apple-design-context.md using this structure:
# Apple Design Context
## Product
- **Name**: [App name]
- **Description**: [One sentence]
- **Category**: [Category]
- **Stage**: [Concept / Development / Shipped / Redesign]
## Platforms
| Platform | Supported | Min OS | Notes |
|----------|-----------|--------|-------|
| iOS | Yes/No | | |
| iPadOS | Yes/No | | |
| macOS | Yes/No | | |
| tvOS | Yes/No | | |
| watchOS | Yes/No | | |
| visionOS | Yes/No | | |
## Technology
- **UI Framework**: [SwiftUI / UIKit / AppKit / Mixed]
- **Architecture**: [Single-window / Multi-window / Document-based]
- **Apple Technologies**: [List any: HealthKit, CloudKit, ARKit, etc.]
## Design System
- **Base**: [System defaults / Custom design system]
- **Brand Colors**: [List or reference]
- **Typography**: [System fonts / Custom fonts]
- **Dark Mode**: [Supported / Not yet / N/A]
- **Dynamic Type**: [Supported / Not yet / N/A]
## Accessibility
- **Target Level**: [Baseline / Enhanced / Comprehensive]
- **Key Considerations**: [List any specific needs]
## Users
- **Primary Persona**: [Description]
- **Key Use Cases**: [List]
- **Known Challenges**: [List]
Updating Context
When updating an existing context document:
- Read the current
.agents/apple-design-context.md(move an older.claude/copy there) - Ask what has changed
- Update only the changed sections
- Preserve all unchanged information
Related Skills
- hig-platforms -- Platform-specific guidance
- hig-foundations -- Color, typography, layout decisions
- hig-patterns -- UX pattern recommendations
- hig-components-* -- Component recommendations
- hig-inputs -- Input method coverage
- hig-technologies -- Apple technology relevance
Files (hig-doctor)
-
SKILL.md 4.4 KB
--- name: hig-project-context description: >- When the user starts HIG work on a project, asks to set up or update their design context, or another hig-* skill needs project details that are not recorded yet. Reads the codebase, confirms with the user, and writes .agents/apple-design-context.md (platforms, stack, design system, accessibility targets) so the other HIG skills stop re-asking. license: MIT. Apple HIG content is © Apple Inc. metadata: version: "1.1.0" hig-snapshot: "2025-02-02" --- # Apple HIG: Project Context Create and maintain `.agents/apple-design-context.md` so other HIG skills can skip redundant questions. If `.agents/apple-design-context.md` (or the older `.claude/apple-design-context.md`) exists, read it first and update it instead of starting over. ## Gathering Context Before asking questions, auto-discover context from: 1. **README.md** -- Product description, platform targets 2. **Package.swift / .xcodeproj** -- Supported platforms, minimum OS versions, dependencies 3. **Info.plist** -- App category, required capabilities, supported orientations 4. **Existing code** -- Import statements reveal frameworks (SwiftUI vs UIKit, HealthKit, etc.) 5. **Assets.xcassets** -- Color assets, icon sets, dark mode variants 6. **Accessibility audit** -- Grep for accessibility modifiers/attributes Present findings and ask the user to confirm or correct. Then gather anything still missing: ### 1. Product Overview - What does the app do? (one sentence) - Category (productivity, social, health, game, utility, etc.) - Stage (concept, development, shipped, redesign) ### 2. Target Platforms - Which Apple platforms? (iOS, iPadOS, macOS, tvOS, watchOS, visionOS) - Minimum OS versions - Universal or platform-specific? ### 3. Technology Stack - UI framework: SwiftUI, UIKit, AppKit, or mixed? - Architecture: single-window, multi-window, document-based? - Apple technologies in use? (HealthKit, CloudKit, ARKit, etc.) ### 4. Design System - System defaults or custom design system? - Brand colors, fonts, icon style? - Dark mode and Dynamic Type support status ### 5. Accessibility Requirements - Target level (baseline, enhanced, comprehensive) - Specific considerations (VoiceOver, Switch Control, etc.) - Regulatory requirements (WCAG, Section 508) ### 6. User Context - Primary personas (1-3) - Key use cases and environments (desk, on-the-go, glanceable, immersive) - Known pain points or design challenges ### 7. Existing Design Assets - Figma/Sketch files? - Apple Design Resources in use? - Existing component library? ## Context Document Template Generate `.agents/apple-design-context.md` using this structure: ```markdown # Apple Design Context ## Product - **Name**: [App name] - **Description**: [One sentence] - **Category**: [Category] - **Stage**: [Concept / Development / Shipped / Redesign] ## Platforms | Platform | Supported | Min OS | Notes | |----------|-----------|--------|-------| | iOS | Yes/No | | | | iPadOS | Yes/No | | | | macOS | Yes/No | | | | tvOS | Yes/No | | | | watchOS | Yes/No | | | | visionOS | Yes/No | | | ## Technology - **UI Framework**: [SwiftUI / UIKit / AppKit / Mixed] - **Architecture**: [Single-window / Multi-window / Document-based] - **Apple Technologies**: [List any: HealthKit, CloudKit, ARKit, etc.] ## Design System - **Base**: [System defaults / Custom design system] - **Brand Colors**: [List or reference] - **Typography**: [System fonts / Custom fonts] - **Dark Mode**: [Supported / Not yet / N/A] - **Dynamic Type**: [Supported / Not yet / N/A] ## Accessibility - **Target Level**: [Baseline / Enhanced / Comprehensive] - **Key Considerations**: [List any specific needs] ## Users - **Primary Persona**: [Description] - **Key Use Cases**: [List] - **Known Challenges**: [List] ``` ## Updating Context When updating an existing context document: 1. Read the current `.agents/apple-design-context.md` (move an older `.claude/` copy there) 2. Ask what has changed 3. Update only the changed sections 4. Preserve all unchanged information ## Related Skills - **hig-platforms** -- Platform-specific guidance - **hig-foundations** -- Color, typography, layout decisions - **hig-patterns** -- UX pattern recommendations - **hig-components-*** -- Component recommendations - **hig-inputs** -- Input method coverage - **hig-technologies** -- Apple technology relevance
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.