Layout Block Intelligence 标志

Layout Block Intelligence

社区
phazurlabs
layout-block-intelligence

500 多种独立页面区块模式——首屏、功能网格、定价表、用户评价、CTA、页脚、常见问题、数据统计和时间线——每种都附有规格、间距和代码。选择或构建单个区块时使用。若要安排区块顺序并组成完整页面,请使用 page-composition-engine。

Add to TypingMind

概览

发布者phazurlabs
代码仓库sumi
技能名称layout-block-intelligence
星标数
58
复刻数
11
附带文件
6
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 6 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 phazurlabs 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Layout Block Intelligence AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/phazurlabs/sumi/tree/main/skills/layout-block-intelligence
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Layout Block Intelligence,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Layout Block Intelligence。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Layout Block Intelligence 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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?

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Layout Block Intelligence AI 技能有什么作用?

500 多种独立页面区块模式——首屏、功能网格、定价表、用户评价、CTA、页脚、常见问题、数据统计和时间线——每种都附有规格、间距和代码。选择或构建单个区块时使用。若要安排区块顺序并组成完整页面,请使用 page-composition-engine。

为什么在 TypingMind 中使用 Layout Block Intelligence?

因为您只需安装一次,就能搭配任何模型使用。Layout Block Intelligence 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Layout Block Intelligence?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/phazurlabs/sumi/tree/main/skills/layout-block-intelligence。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Layout Block Intelligence?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Layout Block Intelligence 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Layout Block Intelligence 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Layout Block Intelligence AI 技能免费吗?

是的。phazurlabs 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇