本文へスキップ
Kitbay
スキル

Shade component decision

MIT2026年11月11日 更新55,770GitHubスター

A maintainer skill in the Ghost repository that triggers when files are added under Shade, Ghost's shared design-system package, and helps decide whether a new piece of interface belongs there and at which layer: token, primitive, component, recipe or pattern.

スキルの内容

A maintainer skill in the Ghost repository that triggers when files are added under Shade, Ghost's shared design-system package, and helps decide whether a new piece of interface belongs there and at which layer: token, primitive, component, recipe or pattern. The agent follows a short decision flow (colours and sizes are tokens, layout is a primitive, generic controls are components, shared class rules are recipes, anything aware of Ghost concepts is a pattern) and respects that each layer may only depend on those below it. Code is promoted into Shade only when it is reused in two places, generic, stable, generically named, slot-based and stateless; otherwise it stays local. Common misclassifications and next steps are listed.

できること

  • Choose a design-system layer for new UI
  • Check layer dependency rules
  • Apply a promotion checklist before sharing code
  • Avoid common component misclassifications