← ClaudeAtlas

h1-mobile-checklisted

Detect Japanese H1 headings that break awkwardly on mobile (375px), where 1-2 characters spill onto a second line or particles/verbs get split mid-phrase. Renders the page at iPhone SE width, measures line boxes, and suggests optimal `<br />` insertion points using bunsetsu boundaries. Battle-tested on netsujo.jp and miyakodeit.com (3 prior incidents). Use when user says "H1", "mobile break", "見出し改行", "375px", "Japanese line break", "iPhone改行", "H1モバイル", or "見出しが崩れる".
suirindo/netsujo-aio-seo · ★ 0 · AI & Automation · score 70
Install: claude install-skill suirindo/netsujo-aio-seo
# H1 Mobile Break Checker Production-ready checker for Japanese H1/H2 headings that detects mid-particle splits, dangling tail characters, and over-long headings at 375px mobile width. Combines static analysis (character count + grammar) with dynamic Playwright rendering (actual line-box measurement) and proposes `<br />` insertions at natural bunsetsu boundaries. ## What it does 1. **Static H1/H2 extraction** from `.tsx`, `.jsx`, `.html`, `.md`, `.mdx` files or live URLs 2. **Length check**: warns when H1 exceeds 15 characters (will likely wrap on 375px) 3. **Dynamic measurement**: renders the page at 375x667 with Playwright, reads `getBoundingClientRect()` per line, flags tail lines under 3 characters 4. **Particle-split detection**: flags Critical when a line starts with a Japanese particle (`を`, `が`, `に`, `で`, `と`, `は`, `から`, `まで`, `より`, `へ`, `の`) 5. **Verb-stem-split detection**: flags Warning when a verb is broken between stem and ending (e.g. `もたら` + `す`) 6. **`<br />` suggestion**: analyzes bunsetsu boundaries and proposes the optimal insertion point so both halves are visually balanced and grammatically intact ## When to use - Before every deploy that touches H1/H2 copy - After translating English headings into Japanese - When auditing existing blog/marketing pages for mobile UX regressions - In CI as a gate against H1 length regressions ## Critical rules (enforced) Per the netsujo monorepo `CLAUDE.md` headline rules: 1. **No 1-2 character tail lines** — the