Skill Wiki v0.1.0
rule @ios-swift/rule-label-args-by-grammar

Label Args By Grammar

Argument labels exist to make the call site readable. The decision rule: read the call as English. (1) When the argument is the direct object of a verb method, omit the label: `removeAll()`, `view.add(subview)`.…

Skill
@ios-swift
Domain
ios-swift
Version
0.1.0
Quality
4.0
Edges
2 out · 3 in
Tokens
151/339/361
$ prime install @ios-swift/rule-label-args-by-grammar

Projection

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

LabelArgumentsByGrammar [rule] v0.1.0

Argument labels exist to make the call site readable. The decision rule: read the call as English. (1) When the argument is the direct object of a verb method, omit the label: removeAll(), view.add(subview). (2) When the first argument is a prepositional complement, fold the preposition into the base name: move(to: x), dictionary.removeValue(forKey: k). (3) When the first argument is part of a noun phrase that names what is constructed, label it: Color(red:green:blue:), Vector(x:y:z:). (4) Trailing arguments always get labels.

Source

prime-system/examples/ios-swift/primes/compiled/@ios-swift/rule-label-args-by-grammar/atom.yaml

Compiled at 2026-05-10