coding-best-practices
Reviews Swift/iOS code for adherence to modern Swift idioms, Apple platform best practices, architecture patterns, and code quality standards. Use when user mentions best practices, code review, clean code, refactoring, or wants to improve code quality.
npx skills add rshankras/claude-code-apple-skills --skill coding-best-practices --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Coding Best Practices Skill Reviews Swift/iOS code for adherence to modern Swift idioms, Apple platform best practices, architecture patterns, and code quality standards. ## When This Skill Activates Use this skill when the user: - Asks for code review or code quality check - Mentions "best practices", "clean code", or "refactoring" - Wants to improve existing code - Requests architecture or design pattern review - Asks about Swift idioms or modern patterns - Wants performance optimization suggestions ## Review Process ### 1. Identify Scope - If user specifies files/classes, review those - Otherwise, ask which areas to focus on or review recent changes - Prioritize ViewModels, business logic, and data layer over simple views ### 2. Load Reference Patterns Before starting the review, familiarize yourself with the reference patterns by reading the following files in `.claude/skills/coding-best-practices/`: - **swift-patterns.md** - Optionals, type safety, collections, error handling, naming - **swiftui-patterns.md** - State management, view composition, performance - **architecture-patterns.md** - MVVM, code organization, memory management, security - **coredata-patterns.md** - Cor
- When This Skill Activates
- Review Process
- 1. Identify Scope
- 2. Load Reference Patterns
- 3. Review Categories
- 4. Review Output Format
- Review Checklist
- Swift Language
- SwiftUI
- Architecture
- Core Data
- Memory Management
- Testing & Security
- Modern SwiftUI Baseline (What to Reach For Today)
What does the coding-best-practices skill do?
Reviews Swift/iOS code for adherence to modern Swift idioms, Apple platform best practices, architecture patterns, and code quality standards. Use when user mentions best practices, code review, clean code, refactoring, or wants to improve code quality.
How do I install it?
Run `npx skills add rshankras/claude-code-apple-skills --skill coding-best-practices --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
