View complexity

From moasq/nanowave · View interactive version

View complexity is an AI agent skill from the GitHub repository moasq/nanowave. View complexity management: 30-line body rule, computed property extraction, subview decomposition, type-check timeout prevention. Use when a view body is getting long, refactoring large views, or hitting Swift type-checker timeouts. Triggers: long body, refactor view, extract subview, type-check ti

How to use this skill

Skill file

View Complexity

VIEW BODY COMPLEXITY (CRITICAL):

REQUIRED PATTERN:

var body: some View {
    VStack(spacing: AppTheme.Spacing.medium) {
        headerSection
        contentSection
        actionsSection
    }
}

private var headerSection: some View { ... }
private var contentSection: some View { ... }
private var actionsSection: some View { ... }

TYPE-CHECK TIMEOUT FIX:

WHEN EDITING EXISTING FILES:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.