A practical, opinionated Swift style skill for writing, reviewing, and refactoring modern Swift code. Covers naming, formatting, file organization, documentation, and coding conventions. Project instructions and formatter/linter configurations take precedence over its defaults.
87%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Use this skill to apply practical, opinionated conventions when writing, reviewing, and refactoring modern Swift code. Project instructions and formatter/linter configurations take precedence over this skill’s defaults.
generate, review, audit, refactor, or answer)
and requested scope.Mode outputs:
generate and refactor: apply the rules directly with minimal explanation.review: report only concrete violations or risks introduced by the change.audit: assess existing code within the explicitly requested style-audit
scope and report findings without editing files.answer: explain briefly and cite only the relevant rule.AGENTS.md and CLAUDE.md. Project instructions and formatter/linter
configurations take precedence over this skill's defaults. If applicable
project instructions or tool configurations conflict with one another and no
explicit precedence resolves the conflict, identify it and ask the user how
to proceed.UpperCamelCase.lowerCamelCase.struct, class,
actor, and extension declarations, including nested declarations. Exception:
omit the leading blank line in structs and classes containing only stored
properties, without property observers. Computed properties, observers,
initializers, methods, or any other declarations retain the leading blank line.
Actors and extensions retain it even when they contain only properties.
Do not insert a leading blank line in enum, protocol, or other blocks.
No block has a trailing blank line.// MARK: - for meaningful sections.[T], [K: V], T? when the compiler allows them.references/PRACTICES.md.guard for early exits and avoid unnecessary fallthrough.references/FILE_STRUCTURE.md for scope, exceptions, and audit behavior.references/NAMING.mdreferences/FILE_STRUCTURE.mdreferences/FORMATTING.mdreferences/PRACTICES.mdpchelnikov/Swift-Style-Skill
aafec7b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.