Skill Wiki v0.1.0
rule @ios-swift/rule-names-of-side-effects-end-imperative

Names Of Side Effects End Imperative

The grammar of a method name signals whether it mutates. Mutating methods use imperative verb phrases: `array.sort()`, `set.insert(x)`, `string.append("!")`.…

Skill
@ios-swift
Domain
ios-swift
Version
0.1.0
Quality
4.0
Edges
3 out · 2 in
Tokens
119/274/300
$ prime install @ios-swift/rule-names-of-side-effects-end-imperative

Projection

Always in _index.xml · the agent never has to ask for this.

NamesOfSideEffectsAreImperative [rule] v0.1.0

The grammar of a method name signals whether it mutates. Mutating methods use imperative verb phrases: array.sort(), set.insert(x), string.append("!"). Their non-mutating counterparts use the past participle (-ed) or present participle (-ing) form: array.sorted(), string.appending("!"). When -ed is awkward, prefer the noun phrase: x.union(y) (non-mutating) vs. x.formUnion(y) (mutating).

Source

prime-system/examples/ios-swift/primes/compiled/@ios-swift/rule-names-of-side-effects-end-imperative/atom.yaml

Compiled at 2026-05-10