Skill Wiki v0.1.0
rule @web-style/rule-default-parameters-not-mutate-args

Default Parameters Not Mutate Args

Express defaults in the parameter list with `=`. Do not patch missing values inside the body with reassignment, `||`, or by writing into `arguments`.…

Skill
@web-style
Domain
web-style
Version
0.1.0
Quality
4.0
Edges
2 out · 2 in
Tokens
86/201/219
$ prime install @web-style/rule-default-parameters-not-mutate-args

Projection

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

DefaultParametersNotMutateArgs [rule] v0.1.0

Express defaults in the parameter list with =. Do not patch missing values inside the body with reassignment, ||, or by writing into arguments. Default-parameter syntax keeps the function signature self-documenting and makes the default value visible at the call boundary.

Source

prime-system/examples/web-style/primes/compiled/@web-style/rule-default-parameters-not-mutate-args/atom.yaml

Compiled at 2026-05-10