Use when writing, reviewing, or renaming Swift APIs, including declarations, call sites, argument labels, Boolean names, protocols, overloads, documentation comments, and small abstractions.
835 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
286
stars on the repo
on the repository, not the skill itself
Install
one command, takes just this skill from the repository
Read call sites first; isolated declarations can mislead.
Search nearby terms, helpers, and overloads. Reuse same-concept names.
Draft the one-sentence documentation summary. Redesign if it needs caveats, implementation details, or repeated type names.
Add helpers, types, overloads, or wrappers only for real concepts, meaningful repetition, or bug prevention.
Re-read final use sites as English. Fix anything artificial, vague, redundant, or ambiguous.
Names
Include words needed to avoid ambiguity.
Omit words that repeat visible type information.
Name values by role. Use established terms correctly.
Avoid nonstandard abbreviations. Keep acronyms consistent with Swift casing, such as URL, UTF8, and userID.
Prefer member APIs when there is a natural receiver.
Use make... for factories that create new values.
Use properties for cheap, side-effect-free state; methods for work, conversion, or effects.
Give side-effect-free methods noun-phrase or prepositional names, such as distance(to:); give mutating or side-effecting methods imperative verb names, such as append(_:).