‹ 首页

repeated-component-alignment

@dembrandt · 收录于 1 周前

Any component rendered many times — cards, list rows, table cells, nav items, tiles, KPI widgets, feed entries — is a fixed slot model, not a free-form box. The same slots appear in the same place in every instance and stay aligned across siblings even when text and values vary in length. Reserve space for optional slots, pin anchor elements (CTA, price, value), clamp overflowing text, and give the full value back via title/tooltip. Use when building or reviewing any repeated component whose content length differs between instances.

适合你,如果经常构建或审查卡片、列表行等重复组件

/ 通过 npx 安装 校验哈希
npx oh-my-skill add dembrandt/dembrandt-skills/repeated-component-alignment
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- dembrandt/dembrandt-skills/repeated-component-alignment
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify dembrandt/dembrandt-skills/repeated-component-alignment
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
25GitHub stars
~2.2K上下文体积 · 单文件
索引托管

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。