跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
设计与 UI

blog-system-design

Design, build, or revise a technical blog as a product system. Use when work affects the blog index, category or section pages, article layout, typography, information density, internal linking, full-text search, keyboard shortcuts, resizable or collapsible navigation, table of contents, responsive breakpoints, reusable article components, media policy, accessibility, or blog-wide visual QA. Pair with ai-devblog when publishing individual technical articles; keep article writing in ai-devblog and shared presentation infrastructure here.

swyxio · 已有 AI 审核记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add swyxio/skills --skill blog-system-design

技能说明


name: blog-system-design description: Design, build, or revise a technical blog as a product system. Use when work affects the blog index, category or section pages, article layout, typography, information density, internal linking, full-text search, keyboard shortcuts, resizable or collapsible navigation, table of contents, responsive breakpoints, reusable article components, media policy, accessibility, or blog-wide visual QA. Pair with ai-devblog when publishing individual technical articles; keep article writing in ai-devblog and shared presentation infrastructure here.

Blog System Design

Build a dense, readable technical publication rather than a marketing landing page. Treat the index, post shell, navigation, typography, and explanatory components as one reusable reading system.

Keep the boundary clear

Use ai-devblog for choosing an article angle, writing and editing the prose, selecting article-specific evidence, and publishing a post. Use this skill when that work requires a new or changed shared layout, navigation model, taxonomy, search behavior, or reusable component.

One article must not silently redesign the blog. Audit the existing system first. Reuse a suitable established component; change the system deliberately when the existing pattern is inadequate.

Audit before designing

Inspect the rendered blog and its implementation at desktop, tablet, and mobile sizes. Identify:

  • content source and metadata schema;
  • index, category, archive, and post routes;
  • typography, spacing, reading width, and theme tokens;
  • navigation, heading anchors, TOC behavior, and keyboard shortcuts;
  • existing inline links, related-post metadata, and the archive's internal-link graph;
  • search corpus and URL state;
  • reusable figures, tables, code blocks, callouts, tabs, and playgrounds;
  • image provenance, loading behavior, accessibility, and bundle cost.

Preserve durable URLs, feeds, metadata, and existing content contracts. Keep shared layout code separate from article-owned content and data.

Information architecture

Provide the smallest useful hierarchy:

  1. Index — recent and featured posts, full-text search, and clear metadata.
  2. Sections — stable categories or topics only when they help readers find related work. Do not manufacture a large taxonomy from a small archive.
  3. Post — title, short deck, compact byline, prose, contextual navigation, and explanatory components.
  4. Archive/feed — durable chronological access for readers and machines.

Use one canonical post URL. Make filters shareable through query parameters. Do not create duplicate routes for visual variants of the same article.

Build intentional internal links

Treat internal linking as part of the publication's information architecture, not as an SEO afterthought. When adding or substantially revising a post, scan the existing archive for a small number of relationships that genuinely help a reader continue the subject.

Use two complementary forms:

  • add contextual inline links where an earlier incident, implementation, benchmark, or design decision is directly mentioned in the prose;
  • store a short ordered list of related-post identifiers in the canonical post catalog and render it consistently near the end of the article.

Prefer two or three strong related posts over a long automatically generated list. Curate for explanatory continuity, not shared keywords alone. Add reciprocal links when two posts are true counterparts, but do not force every relationship to be bidirectional. Keep stable post identity separate from link labels so titles can change without breaking references.

Validate the link graph in tests: every related identifier must resolve to a public canonical post, lists must not contain duplicates or the current post, and ordering must be preserved. Render related reading as compact semantic links with useful context such as category, date, reading time, title, and a short description. Do not let repeated recommendation cards dominate mobile reading density.

Design a useful index

  • Prefer a compact two-column list on wide screens and one column on narrow screens. Keep titles, category, date, and reading time easy to scan.
  • Provide simple client-side full-text search across title, description, category, and body when the archive is small enough to ship safely. Use a real index or server search when the corpus makes client delivery wasteful.
  • Bind / to focus search when the reader is not typing. Let Escape clear or blur it. Show the shortcut beside the field.
  • Store non-empty search text in ?q= with replace-state semantics so filtered indexes survive reload, sharing, and browser navigation.
  • Show result count, a specific no-match state, and a visible clear action.
  • Do not use decorative hero art to make the index feel substantial. Lead with the strongest article and its useful description.

Design the post shell

On wide desktop screens, keep the blog index available in a left rail while the reader opens a post. Make the rail genuinely useful:

  • support pointer resizing with an explicit separator or handle;
  • support keyboard resizing or provide equivalent preset widths;
  • define sensible minimum, default, and maximum widths;
  • offer a labeled minimize/restore control;
  • preserve the reader's width preference when the site already persists UI preferences;
  • transition width and visibility without shifting the reading position.

Use conventional responsive transitions unless the existing site defines better breakpoints:

  • wide desktop (about 1280px and above): resizable index rail, article, and sticky TOC can coexist;
  • tablet/small desktop (about 768–1279px): hide the index rail, keep an obvious return-to-index action, and use a floating minimized TOC;
  • mobile (below about 768px): use one reading column, compact masthead and back navigation, and a minimized TOC that expands without covering th
阅读完整来源 ↗