xxf-coding-style

Community

Enforce clean, modular Swift coding standards.

AuthorNBXXF
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This coding standard addresses the drift in Swift codebases by enforcing disciplined file organization, disciplined extension separation, and consistent naming, ensuring maintainability and scalability across iOS projects.

Core Features & Use Cases

  • One-core-type-per-file enforcement: each Swift type (class/struct/enum/protocol) lives in its own file to improve navigation and review.
  • Dedicated extensions per responsibility: extensions are split into separate files by feature or protocol, reducing merged diffs and improving readability.
  • Consistency in naming and access control: promotes upperCamelCase for types, lowerCamelCase for members, final by default, private by default, and safe optional handling.
  • Documentation mindset: all public APIs and significant members must carry documentation comments to support onboarding and code comprehension.
  • Use cases: a new feature team adopting this standard will incrementally refactor existing files, create new modules with clean separations, and enforce builds with lint checks.

Quick Start

Start by applying the file organization rules to your next module and splitting the main type and its extensions into dedicated files.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: xxf-coding-style
Download link: https://github.com/NBXXF/xxf_ios/archive/main.zip#xxf-coding-style

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.