Skip to content
Skillpedia
Interfaces (UI/UX)56k · #3287

shade-use-primitives

What it does

This skill tells an AI agent to use Shade's layout building blocks instead of hand-written layout classes. It is for developers building interfaces who want consistent spacing and structure.

When to use it

  • ✓When you lay out a screen, section, or row in a Shade-based app.
  • ✓When you need to space, align, stack, or wrap elements.
  • ✓When you are tempted to add layout classes to a plain wrapper element.

Skill link

https://github.com/TryGhost/Ghost/blob/main/apps/shade/skills/shade-use-primitives/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/TryGhost/Ghost/blob/main/apps/shade/skills/shade-use-primitives/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“I want to lay out the form fields on my settings page with even spacing, using Shade's layout blocks.”

5 new skills a week. 1 minute to read.

How it works

The agent picks a layout block for each wrapper, such as Stack for vertical groups or Inline for rows. It sets gaps and padding from Shade's named spacing steps, and uses class names only for what the props do not cover.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Shade use primitives

Layout in Ghost UI reads by intent: Stack, Inline, Box, Grid, Container and Text replace hand-written flex and grid classes. The rules live in Primitives.

Docs links use https://shade.ghost.org. If the project's AGENTS.md says where Shade's docs are (another address, or a source folder), use that instead. Fetch web pages with curl -s.

Workflow

  1. Check for a larger shape first. A whole page starts from shade-page-templates; a recurring product shape may already be a pattern in Patterns.
  2. Pick the primitive for each wrapper with Use a primitive when.
  3. Set gaps and padding from the Spacing scale.
  4. Reserve className for what the props don't cover.

Self-check

  • No wrapper element in your diff carries only layout classes.
  • Spacing on primitives uses the named steps, and direction, gap, alignment and justification come from props.
  • Nothing in Don't applies to your diff.
FAQ

What are the main layout blocks?

The skill names Stack, Inline, Box, Grid, Container, and Text as the building blocks.

Should I still write flex or grid classes?

The skill says layout should read by intent, so the primitives replace most hand-written flex and grid classes.

Is there a shortcut for a whole page?

Yes. A whole page starts from a page template, and recurring shapes may already exist as a pattern.

Details

Original description by the author

Lay out Ghost UI with Shade's layout primitives. Use when laying out a screen, section or row, or when spacing, aligning, stacking or wrapping elements.

repo: TryGhost/Ghost

Popularity

GitHub stars
56k
Ranking position
#3287
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills