swift-conventions

Enforce Swift coding conventions, style, type safety, and organization.

Updated Dec 25, 2025
One-click install
npx skills add https://github.com/mourato/prisma --skill swift-conventions-mourato
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-conventions
Source: https://github.com/mourato/prisma/tree/main/.agents/skills/swift-conventions
Command: npx skills add https://github.com/mourato/prisma --skill swift-conventions-mourato

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures Swift code adheres to established conventions for readability, type safety, and maintainability, reducing technical debt and improving collaboration.

Core Features & Use Cases

  • Style Guide Enforcement: Aligns code with SwiftLint rules and team-specific best practices.
  • Type Safety Promotion: Encourages the use of strong types, enums, and Result for robust error handling.
  • Code Organization: Guides on naming, imports, and module structure for clarity.
  • Use Case: When refactoring a legacy Swift module, use this Skill to ensure the new code follows the project's established Swift conventions.

Quick Start

Apply Swift style conventions to the current Swift codebase.

Frequently Asked Questions about swift-conventions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce Swift coding conventions and style guide rules in a project?

This Skill enforces Swift conventions by checking your codebase against style rules, type safety practices, and naming idioms. It aligns with SwiftLint configurations and team best practices to reduce technical debt and improve collaboration.

Can I use this to check Swift file size and complexity during refactoring?

Yes, this Skill applies rules on file size, complexity, and preferred idioms, making it suitable for checking Swift code during refactoring. It ensures new code aligns with the project's established conventions and organizational structure.

What is the best way to promote type safety and robust error handling in Swift?

The best way to promote type safety in Swift is by using strong types, enums, and the Result type for robust error handling. This Skill guides code organization and naming to maintain these strict type safety standards across the codebase.

Does this Swift style guide enforcement work with existing SwiftLint configurations?

Yes, this Skill works with existing SwiftLint configurations by aligning code with those rules and team-specific best practices. It requires adherence to established rules on file size, complexity, preferred idioms, and naming conventions.