Logo Layout Block Intelligence

Layout Block Intelligence

Cộng đồng
phazurlabs
layout-block-intelligence

Hơn 500 mẫu thành phần riêng lẻ — hero, lưới tính năng, bảng giá, lời chứng thực, CTA, chân trang, FAQ, số liệu, dòng thời gian — mỗi mẫu có thông số, khoảng cách và code. Dùng khi chọn hoặc xây dựng một thành phần. Để sắp xếp các thành phần thành một trang hoàn chỉnh, hãy dùng page-composition-engine.

Add to TypingMind

Tổng quan

Nhà phát hànhphazurlabs
Kho mãsumi
Tên kỹ nănglayout-block-intelligence
Sao
58
Bản fork
11
Tệp đi kèm
6
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 6 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được phazurlabs công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Layout Block Intelligence trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/phazurlabs/sumi/tree/main/skills/layout-block-intelligence
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/phazurlabs/sumi.git /tmp/sumi
mkdir -p .claude/skills
cp -r /tmp/sumi/skills/layout-block-intelligence .claude/skills/layout-block-intelligence
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Layout Block Intelligence trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Layout Block Intelligence ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Layout Block Intelligence với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Layout Block Intelligence — 500+ Production Section Patterns

Mental model

A page is a sequence of blocks, and each block has exactly one job. When a page feels wrong it is usually not the styling — it is two blocks doing the same job, or a block doing none.

  • One block, one argument. A hero makes a claim. Social proof supports it. A feature grid explains it. Pricing converts it. If you cannot name a block's argument, delete it.
  • Alternate density. Dense, then open, then dense. Uniform density reads as a wall regardless of how good the individual blocks are.
  • Every block needs a mobile form, and it is rarely "the same but narrower". A four-column feature grid becomes a two-by-two, not a four-high stack.
  • Spacing carries the grouping. Space between blocks must exceed space within them, or the eye cannot find the seams.

For ordering blocks into a whole page, that is page-composition-engine. This skill is the blocks themselves.

Index

BlockVariantsReference
Herocentered, split, full-bleed, video, gradienthero-section-patterns.md
Feature grid3-col, 4-col, alternating, icon-ledcontent-section-patterns.md
Content sectionprose, media-left, media-right, stat rowcontent-section-patterns.md
CTA bannersimple, email capture, split, full-bleedcta-pricing-patterns.md
Pricing table2-tier, 3-tier, comparison matrix, togglecta-pricing-patterns.md
Testimonialscard grid, carousel, single quote, videosocial-proof-patterns.md
Logo wall, ratings, review display—social-proof-patterns.md
Top nav as a page blockstandard, mega, transparent-over-heronavigation-footer-patterns.md
Footerminimal, sitemap, newsletter, meganavigation-footer-patterns.md
KPI card row, data widgets, chart cards—dashboard-data-patterns.md

Reference architecture

FileCoversLines
references/hero-section-patterns.mdhero anatomy, breakpoints, variants926
references/content-section-patterns.mdfeature and content blocks810
references/navigation-footer-patterns.mdnav and footer blocks638
references/cta-pricing-patterns.mdconversion blocks635
references/social-proof-patterns.mdtestimonials, logos, ratings616
references/dashboard-data-patterns.mddashboard blocks571

What every reference file contains

  1. The block's job in one sentence
  2. Universal anatomy — the parts every variant shares
  3. Breakpoint specifications, not just a mobile note
  4. Each variant with the condition that selects it
  5. Production HTML/CSS or TSX
  6. The anti-pattern that variant invites

Routing

For heroes — anatomy, breakpoint specs, and variants from centered and split to full-bleed: read references/hero-section-patterns.md.

For content sections — universal block specs plus the 3-column, 4-column and alternating feature-grid variants: read references/content-section-patterns.md.

For conversion blocks — CTA banners, email-capture CTAs, and pricing tables with the psychology behind each: read references/cta-pricing-patterns.md.

For social proof — testimonial grids and carousels, logo walls, and review displays: read references/social-proof-patterns.md.

For navigation and footers as page blocks — standard top nav, mega menu, transparent-over-hero, and footer variants: read references/navigation-footer-patterns.md.

For dashboard blocks — layout patterns, the dashboard spacing system, KPI card rows and data-widget variants: read references/dashboard-data-patterns.md.

Cross-References

  • component-patterns-code — Individual component implementation (buttons, inputs, modals, cards)
  • screen-flow-patterns — Full page types and navigation flows between pages
  • ui-pattern-intelligence — 200+ UI interaction patterns with benchmarks
  • visual-design-mastery — Color, typography, and composition scoring
  • platform-visual-standards — Platform-specific adaptations (iOS 26, Material 3, CSS)
  • performance-states-patterns — Loading, error, skeleton states for every block
  • accessibility-inclusive-design — WCAG requirements per block type
  • sector-style-intelligence — Industry-specific block styling and sequencing
  • interaction-motion-design — Animation and transition patterns for blocks
  • page-composition-engine — How to stack blocks into complete pages
  • responsive-block-patterns — Detailed breakpoint transformations for every block
  • conversion-optimization-patterns — Which blocks convert best and where to place them

Production Code Patterns

Section Wrapper (React/TSX + Tailwind)

tsx
interface SectionProps {
  children: React.ReactNode;
  background?: 'white' | 'gray' | 'dark' | 'brand' | 'gradient';
  padding?: 'sm' | 'md' | 'lg' | 'xl';
  maxWidth?: 'narrow' | 'standard' | 'wide' | 'full';
  id?: string;
}

const paddingMap = { sm: 'py-8 md:py-12 lg:py-16', md: 'py-12 md:py-16 lg:py-20', lg: 'py-16 md:py-20 lg:py-24', xl: 'py-20 md:py-28 lg:py-32' };
const maxWidthMap = { narrow: 'max-w-3xl', standard: 'max-w-6xl', wide: 'max-w-7xl', full: 'max-w-full' };
const bgMap = { white: 'bg-white text-gray-900', gray: 'bg-gray-50 text-gray-900', dark: 'bg-gray-900 text-white', brand: 'bg-blue-600 text-white', gradient: 'bg-gradient-to-br from-blue-600 to-purple-700 text-white' };

export function Section({ children, background = 'white', padding = 'lg', maxWidth = 'standard', id }: SectionProps) {
  return (
    <section id={id} className={bgMap[background]}>
      <div className={`mx-auto px-4 sm:px-6 lg:px-8 ${maxWidthMap[maxWidth]} ${paddingMap[padding]}`}>{children}</div>
    </section>
  );
}

Section Header

tsx
export function SectionHeader({ label, title, description, align = 'center' }: { label?: string; title: string; description?: string; align?: 'left' | 'center' }) {
  const cls = align === 'center' ? 'text-center mx-auto' : 'text-left';
  return (
    <div className={`max-w-2xl mb-12 lg:mb-16 ${cls}`}>
      {label && <p className="text-sm font-semibold uppercase tracking-wider text-blue-600 mb-3">{label}</p>}
      <h2 className="text-3xl sm:text-4xl lg:text-5xl font-bold tracking-tight">{title}</h2>
      {description && <p className="mt-4 text-lg text-gray-600 leading-relaxed">{description}</p>}
    </div>
  );
}

CSS Custom Properties

css
:root {
  --section-py: clamp(3rem, 8vw, 7.5rem);
  --section-px: clamp(1rem, 5vw, 5rem);
  --section-max-width: 72rem;
  --section-title-size: clamp(1.875rem, 4vw, 3rem);
  --section-header-gap: clamp(2rem, 4vw, 4rem);
}
.section { padding: var(--section-py) var(--section-px); }
.section__inner { max-width: var(--section-max-width); margin-inline: auto; }

Block Quality Checklist

  • Content flexibility: handles short AND long content without breaking?
  • Responsive at 5 breakpoints (1440, 1024, 768, 480, 320)?
  • Empty state: what renders with 0 items?
  • Overflow state: what happens with 50+ items?
  • Heading hierarchy: H2 section, H3 items, no skipping?
  • ARIA landmarks: section + aria-labelledby?
  • Keyboard navigation: all elements reachable?
  • Images lazy-loaded below fold?
  • prefers-reduced-motion respected?
  • Consistent spacing, no magic numbers?
  • Type scale followed, no orphaned heading words?
  • Color contrast WCAG AA (4.5:1 text, 3:1 UI)?
  • Visible focus indicators on interactive elements?
  • Skeleton loading state for async content?
  • Print styles render reasonably?
  • RTL language support considered?

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Layout Block Intelligence làm được gì?

Hơn 500 mẫu thành phần riêng lẻ — hero, lưới tính năng, bảng giá, lời chứng thực, CTA, chân trang, FAQ, số liệu, dòng thời gian — mỗi mẫu có thông số, khoảng cách và code. Dùng khi chọn hoặc xây dựng một thành phần. Để sắp xếp các thành phần thành một trang hoàn chỉnh, hãy dùng page-composition-engine.

Vì sao nên dùng Layout Block Intelligence trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Layout Block Intelligence là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Layout Block Intelligence trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/phazurlabs/sumi/tree/main/skills/layout-block-intelligence. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Layout Block Intelligence?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Layout Block Intelligence với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Layout Block Intelligence với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Layout Block Intelligence có miễn phí không?

Có. Kỹ năng này được phazurlabs phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇