Step 2 of N-tool element design (spec v0 §7.1 pinned to this impl). First production element-level tool, replacing the batch_design generic DSL for the specific pattern LLMs most commonly get wrong: horizontal scroll rows of cards / metric tiles / nav items. Tool fixes the structure at schema level: - Outer wrapper: fill_container + clipContent=true + vertical layout - Inner row: fit_content + horizontal + gap + padding=[0,20] - Children: fixed numeric width per variant (card=140 / metric=120 / nav=72) Exactly matches packages/pen-ai-skills/skills/phases/generation/overflow.md §HORIZONTAL SCROLL ROWS. Sugar over handleBatchDesign (D1=A route). - tools/add-scroll-row-v0.ts: 230-line builder with 3 children_type presets - routes/design-routes.ts: register in production DESIGN_TOOL_DEFINITIONS - __tests__/add-scroll-row-v0.test.ts: 13 tests covering wrapper invariants, per-type structure, icon/subtitle optionality, overrides, persistence, golden snapshot - d0-parity-spike.test.ts: rewrite "names exactly" assertion to "pre-D0 tools still present" so new production tools don't break baseline; scope snapshot to pre-D0 5 tools only 70/70 pen-mcp tests pass. format:check + tsc --noEmit both green. |
||
|---|---|---|
| .. | ||
| agent-native@e1f90cab96 | ||
| pen-acp | ||
| pen-ai-skills | ||
| pen-core | ||
| pen-engine | ||
| pen-figma | ||
| pen-mcp | ||
| pen-react | ||
| pen-renderer | ||
| pen-sdk | ||
| pen-types | ||
| CLAUDE.md | ||