Skill Wiki v0.1.0
rule @web-style/rule-destructure-objects-and-arrays

Destructure Objects And Arrays

When a function reads more than one property of an object — its parameter, its return value, or any local — pull them out with destructuring.…

Skill
@web-style
Domain
web-style
Version
0.1.0
Quality
4.0
Edges
2 out · 0 in
Tokens
93/231/258
$ prime install @web-style/rule-destructure-objects-and-arrays

Projection

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

DestructureObjectsAndArrays [rule] v0.1.0

When a function reads more than one property of an object — its parameter, its return value, or any local — pull them out with destructuring. When a function returns several named values, return an object and let the caller destructure; do not return an array unless the order is meaningful and stable forever.

Source

prime-system/examples/web-style/primes/compiled/@web-style/rule-destructure-objects-and-arrays/atom.yaml

Compiled at 2026-05-10