Line Length Optimal
Measures rendered characters-per-line (CPL) for prose blocks and flags content that violates the 45–75 character optimal range (35–90 acceptable). Long lines harm readability; short lines fragment reading rhythm.
$ prime install @community/check-line-length-optimal Projection
Always in _index.xml · the agent never has to ask for this.
LineLengthOptimal [check] v1.0.0
Measures rendered characters-per-line (CPL) for prose blocks and flags content that violates the 45–75 character optimal range (35–90 acceptable). Long lines harm readability; short lines fragment reading rhythm.
Loaded when retrieval picks the atom as adjacent / supporting.
LineLengthOptimal [check] v1.0.0
Measures rendered characters-per-line (CPL) for prose blocks and flags content that violates the 45–75 character optimal range (35–90 acceptable). Long lines harm readability; short lines fragment reading rhythm.
signature: (html: string, css: string, context?: object) -> CheckResult predicate: // For every text-bearing block (
,
Validates
@community/rule-line-length-optimal
Severity
medium
Failure Message Template
Block '{selector}' renders at {cpl} characters per line — outside acceptable range ({acceptable}). Constrain max-width with max-width: 65ch or set container width to ~720px at 18px font-size.
Evaluation Method
automated
Tools
- playwright
- puppeteer
- canvas
False Positive Rate
medium
Loaded when retrieval picks the atom as a focal / direct hit.
LineLengthOptimal [check] v1.0.0
Measures rendered characters-per-line (CPL) for prose blocks and flags content that violates the 45–75 character optimal range (35–90 acceptable). Long lines harm readability; short lines fragment reading rhythm.
signature: (html: string, css: string, context?: object) -> CheckResult predicate: // For every text-bearing block (
,
Validates
@community/rule-line-length-optimal
Severity
medium
Failure Message Template
Block '{selector}' renders at {cpl} characters per line — outside acceptable range ({acceptable}). Constrain max-width with max-width: 65ch or set container width to ~720px at 18px font-size.
Evaluation Method
automated
Tools
- playwright
- puppeteer
- canvas
False Positive Rate
medium
Validates
@community/rule-line-length-optimal
Severity
medium
Failure Message Template
Block '{selector}' renders at {cpl} characters per line — outside acceptable range ({acceptable}). Constrain max-width with max-width: 65ch or set container width to ~720px at 18px font-size.
Evaluation Method
automated
Tools
- playwright
- puppeteer
- canvas
False Positive Rate
medium
Source
prime-system/examples/frontend-design/primes/compiled/@community/check-line-length-optimal/atom.yaml