Tooluck logoTooluck
SKILL.md

generators

Agent skill fromrshankras/claude-code-apple-skills

Code generator skills that produce production-ready Swift code for common app components. Use when user wants to add logging, analytics, onboarding, review prompts, networking, authentication, paywalls, settings, persistence, error monitoring, CI/CD pipelines, localization, push notifications, deep linking, testing, accessibility, widgets, feature flags, app icons, image caching, pagination, HTTP caching, share cards, social export, subscription lifecycle, referral systems, watermarks, streak tracking, milestone celebrations, what's new screens, lapsed user re-engagement, usage insights, variable rewards, consent flows, account deletion, permission priming, force updates, state restoration, debug menus, offline queues, feedback forms, announcement banners, quick win sessions, Spotlight indexing, App Clips, screenshot automation, background processing, app extensions, data export, or SwiftUI preview sample data and variant matrices.

How to install generators

install generators
# install the claude-code-apple-skills pack with the skills CLI
npx skills add rshankras/claude-code-apple-skills

# or add only this skill to Claude Code: copy the folder

skills/generators/

# into

~/.claude/skills/generators/ (all projects)

.claude/skills/generators/ (one project)

skills/generators/SKILL.md

MITFull file
1# Code Generators
2
3Production-ready code generators for iOS and macOS apps. Unlike advisory skills (review, audit), these skills generate working code tailored to your project.
4
5## When This Skill Activates
6
7Use this skill when the user:
8- Wants to add a common app component (logging, analytics, onboarding, etc.)
9- Asks to "set up" or "add" infrastructure code
10- Mentions replacing print() with proper logging
11- Wants to add App Store review prompts
12- Needs analytics or crash reporting setup
13
14## Key Principles
15
16### 1. Context-Aware Generation
17Before generating code, skills will:
18- Read existing project structure and patterns
19- Detect deployment targets and Swift version
20- Identify architecture patterns (MVVM, TCA, etc.)
21- Check for existing implementations to avoid conflicts
22
23### 2. Protocol-Based Architecture
24Provider-dependent code uses protocols for easy swapping:
25```swift
26protocol AnalyticsService { ... }
27class TelemetryDeckAnalytics: AnalyticsService { ... }
28class FirebaseAnalytics: AnalyticsService { ... }
29// Change provider by swapping ONE line
30```
31
32### 3. Platform Detection
33Skills detect iOS vs macOS and App Store vs direct distribution to generate appropriate code.
34
35## Available Generators
36
37Read relevant module files based on the user's needs:
38
39### logging-setup/
40Replace print() statements with structured os.log/Logger.
41- Audit existing print() usage
42- Generate AppLogger infrastructure
43- Migrate print → Logger with proper privacy levels
44
45### analytics-setup/
46…

Excerpt shown under the repository's MIT license.

More skills in claude-code-apple-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates