Skill Wiki v0.1.0
rule @web-style/rule-object-shorthand-and-computed-keys

Object Shorthand And Computed Keys

Build objects with the most expressive ES2015+ syntax available at the literal: shorthand for properties whose key matches the source variable, method shorthand for inline methods, and computed-key syntax (`{ [expr]: val…

Skill
@web-style
Domain
web-style
Version
0.1.0
Quality
4.0
Edges
2 out · 3 in
Tokens
103/236/257
$ prime install @web-style/rule-object-shorthand-and-computed-keys

Projection

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

ObjectShorthandAndComputedKeys [rule] v0.1.0

Build objects with the most expressive ES2015+ syntax available at the literal: shorthand for properties whose key matches the source variable, method shorthand for inline methods, and computed-key syntax ({ [expr]: value }) for keys derived at construction time. Each form replaces a more verbose pre-ES2015 idiom and signals intent clearly.

Source

prime-system/examples/web-style/primes/compiled/@web-style/rule-object-shorthand-and-computed-keys/atom.yaml

Compiled at 2026-05-10