Agent skill · software engineering · thebushidocollective

cocoapods-subspecs-organization

Use when organizing complex CocoaPods libraries into subspecs. Covers modular architecture, dependency management between subspecs, and default subspecs patterns for better code organization and optional features.

Why this skill is useful

Provides specific patterns and examples for organizing CocoaPods subspecs that the AI wouldn't reliably generate on its own.

What it needs

About 5k tokens when loaded. Last updated 2026-07-19. 187 stars on the source repository.

What this skill does

CocoaPods - Subspecs Organization Organize complex libraries into modular subspecs for better maintainability and optional features. What Are Subspecs? Subspecs allow you to split a pod into logical modules that can be installed independently or as a group. Benefits Modularity: Separate core functionality from optional features Selective Installation: Users install only what they need Reduced Dependencies: Optional features don't force unnecessary dependencies Better Organization: Clear separation of concerns Basic Subspec Pattern Dependency Patterns Subspec Dependencies External Dependencies Per Subspec Default Subspecs Single Default Subspec Multiple Default Subspecs Platform-Specific Subspecs Resource Bundles in Subspecs Common Subspec Patterns Core + Optional Features Layered Architecture Protocol + Implementations User Installation Patterns Installing Default Subspecs Installing Specific Subspecs Installing All Subspecs Nested Subspecs Best Practices Directory Structure Naming Conventions Dependency Guidelines Anti-Patterns Don't ❌ Create too many small subspecs ❌ Circular dependencies ❌ Duplicate source files Do ✅ Group related functionality ✅ Use clear dependency hierarchy ✅ Keep source files separate Testing Subspecs Related Skills cocoapods-podspec-fundamentals cocoapods-test-specs cocoapods-publishing-workflow

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills thebushidocollective/subspecs-organization

View the source on GitHub

Browse the @skills marketplace