Skill Wiki v0.1.0
principle @web-style/principle-consistency-within-codebase

Consistency Within Codebase

Local consistency outranks personal preference. If the existing code uses arrow functions everywhere, the new arrow function is correct even if you would have written `function`. If the codebase imports from `.…

Skill
@web-style
Domain
web-style
Version
0.1.0
Quality
4.0
Edges
3 out · 2 in
Tokens
194/325/325
$ prime install @web-style/principle-consistency-within-codebase

Projection

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

ConsistencyWithinCodebase [principle] v0.1.0

Within one codebase, the same problem should be solved the same way. When two reasonable conventions exist, pick one and apply it everywhere. The cost of mixing is real: the reader cannot tell when a different choice carries information versus when it is just whoever-typed-it-first preference, so they have to slow down on every line.

Local consistency outranks personal preference. If the existing code uses arrow functions everywhere, the new arrow function is correct even if you would have written function. If the codebase imports from ./lib, do not introduce ./lib/index for the same target. Match what is there. Change conventions deliberately and across the whole codebase, not file-by-file.

Source

prime-system/examples/web-style/primes/compiled/@web-style/principle-consistency-within-codebase/atom.yaml

Compiled at 2026-05-10