agentsclimarketplace

Masonry

Skill bg-szy/TOP-SKILLS/skills/superskills/masonry

When the user wants to design, optimize, or audit masonry (Pinterest-style) layouts for content display. Also use when the user mentions "masonry layout," "masonry grid," "Pinterest layout," "waterfall layout," "brick layout," "varying height grid," "gallery layout," or "masonry SEO." For crawl and scroll UX, use site-crawlability.From its SKILL.md

Install
npx -y skills add bg-szy/TOP-SKILLS --skill masonry

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.2 KB, 891 tokens by cl100k_base, as published. Nobody here has run it

Components: Masonry Layout

Guides masonry layout design for content with varying heights. Masonry stacks items in columns without distinct rows; items fill gaps like a brick wall. Best for image galleries, portfolios, and discovery-focused platforms.

When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.

When to Use Masonry

Use masonry whenUse grid when
Varying heightsEqual-height items
Image-heavy; varied aspect ratiosProducts, templates (consistent)
Gallery, portfolio, showcaseCard grid
Discovery, browsing; visual-firstStructured browsing

See grid for equal-height grid; card for card structure.

Masonry vs Grid vs Bento vs Carousel

LayoutStructureBest for
GridEqual rows and columns; uniform itemsProducts, templates, features
MasonryColumns; items stack without rows; gaps filledPinterest, Behance; varied content
BentoIntentional sections; predefined sizesHomepage, dashboard; Apple-style
CarouselSlides; one/few visible; swipe/clickTestimonials, logos, featured items; see carousel

Masonry Structure

ElementPurpose
Columns2–4 columns; fluid or fixed
ItemsVarying heights; natural aspect ratio
GapConsistent horizontal and vertical spacing
OrderTop-to-bottom fill within columns

Implementation

  • CSS columns: column-count; simple, no JS; but items flow top-to-bottom then next column
  • Masonry.js / libraries: True masonry (left-to-right fill); may need JS
  • CSS Grid + grid-auto-flow: dense: Approximate; no JS; see grid for dense grid

Note: Pure masonry can create accessibility challenges (screen reader order); ensure logical DOM order.

SEO Considerations

Masonry + infinite scroll = content not crawlable. Masonry galleries often use infinite scroll or lazy load; crawlers cannot emulate scroll or "Load more" clicks, so content beyond the initial view is not discoverable.

If you useThen
Infinite scrollProvide paginated component pages with full URLs; implement pushState; see site-crawlability for search-friendly infinite scroll
Lazy loadEnsure content exists in HTML or is reachable via crawlable links
PaginationPrefer for SEO-critical content; crawlers can follow next/prev links

Reference: Google – Infinite scroll search-friendly recommendations

Best Practices

PrinciplePractice
Visual-firstThumbnails; minimal text
Aspect ratioPreserve original; avoid forced cropping
Lazy loadMany images; load on scroll
PerformanceMasonry can be heavy; consider grid for simpler cases

Use Cases

Use caseFormatPage Skill
Showcase / GalleryUser work; varied sizesshowcase-page-generator
PortfolioProjects; mixed media
Pinterest-stylePins; discovery
Image-heavy blogBlog with varied imagesblog-page-generator

Related Skills

  • site-crawlability: Infinite scroll SEO; paginated component pages; search-friendly implementation
  • grid: Equal-height grid; when masonry is overkill
  • carousel: Carousel for slides/rotation; when masonry is overkill
  • card: Card structure; masonry often uses cards
  • showcase-page-generator: Gallery masonry
  • image-optimization: Lazy load, aspect ratio, LCP

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,758. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.