agentleFS
swyxioswyxio/skills/blog-system-design/SKILL.md

blog-system-design

Skill171 starsChanged 8 months agoMITView on GitHub

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.

The file

Show its rules and text

We split this skill into the rules it gives an agent

31 rules. About 0 are common, 29 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈29

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Use ai-devblog for choosing an article angle, writing and editing the prose, selecting article-specific evidence, and publishing a post.

    line 14
  2. Distinctive:

    search corpus and URL state.

    line 34
  3. Distinctive:

    Use one canonical post URL.

    line 52
  4. Distinctive:

    Do not create duplicate routes for visual variants of the same article.

    line 53
  5. Distinctive:

    Treat internal linking as part of the publication's information architecture, not as an SEO afterthought.

    line 57
  6. Distinctive:

    Use two complementary forms:

    line 62
  7. Distinctive:

    add contextual inline links where an earlier incident, implementation, benchmark, or design decision is directly mentioned in the prose.

    line 64
  8. Distinctive:

    Prefer two or three strong related posts over a long automatically generated list.

    line 69
  9. Distinctive:

    Prefer a compact two-column list on wide screens and one column on narrow screens.

    line 84
  10. Distinctive:

    Do not use decorative hero art to make the index feel substantial.

    line 94
  11. Distinctive:

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

    line 110
  12. Distinctive:

    mobile (below about 768px): use one reading column, compact masthead and back navigation, and a minimized TOC that expands without covering …

    line 117
  13. Distinctive:

    Treat iPhone layouts as first-class rather than a scaled-down desktop.

    line 121
  14. Distinctive:

    Use a restrained publication such as the Cloudflare blog as inspiration:

    line 135
  15. Distinctive:

    keep desktop body copy around 15–17px with roughly 1.55–1.7 line height.

    line 139
  16. Distinctive:

    use a readable measure, usually 65–80 characters, rather than a narrow magazine column or edge-to-edge prose.

    line 140
  17. Distinctive:

    keep article titles prominent but below billboard scale.

    line 142
  18. Distinctive:

    use monospace for metadata, code, labels, and small navigational indices.

    line 145
  19. Distinctive:

    When each item is a label plus one or two values, use a compact row, table, or definition list.

    line 154
  20. Distinctive:

    Prefer locally scrolling wide evidence over vertically expanding every field.

    line 158
  21. Distinctive:

    Test semantic foreground/background token pairs programmatically when colors are controlled by the site.

    line 164
  22. Distinctive:

    Avoid low-opacity labels on tinted panels and text placed directly over chart colors without a verified foreground.

    line 166
  23. Distinctive:

    Check default, hover, active, selected, disabled, and focus states.

    line 169
  24. Distinctive:

    Prefer semantic, site-native components for recurring forms:

    line 175
  25. Distinctive:

    Keep component logic and styles feature-owned.

    line 186
  26. Very specific:

    Use an information-dense SVG diagram, chart, annotated screenshot, or other technical visual when the opening needs a hero.

    line 197
  27. Distinctive:

    Use, in order of explanatory value:

    line 204
  28. Distinctive:

    Remove any visual that could be swapped for unrelated artwork without changing the article's meaning.

    line 211
  29. Distinctive:

    Run content, type, lint, link, and production-build checks.

    line 216
  30. Distinctive:

    no horizontal overflow, obscured text, clipped controls, or layout shifts.

    line 229
  31. Distinctive:

    Treat visual inspection as required evidence.

    line 239

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 the article permanently.

Treat iPhone layouts as first-class rather than a scaled-down desktop. Test at 320, 375, 390, and 430px when the system supports those widths. Keep the article index rail fully absent, preserve a visible back-to-index path, respect safe-area insets, keep fixed controls above browser chrome, and prevent expanded TOCs, tables, code, diagrams, and long titles from forcing horizontal scroll. Stack or scroll wide evidence locally instead of widening the page.

Generate the TOC from stable heading anchors. Highlight the current section. Let readers minimize and restore it. Keep it sticky beside the article on wide screens and floating on narrower screens. Ensure transformed ancestors do not break fixed positioning.

Favor compact technical typography

Use a restrained publication such as the Cloudflare blog as inspiration:

  • favor a highly legible sans-serif for body copy and a compact display face for headings;
  • keep desktop body copy around 15–17px with roughly 1.55–1.7 line height;
  • use a readable measure, usually 65–80 characters, rather than a narrow magazine column or edge-to-edge prose;
  • keep article titles prominent but below billboard scale;
  • reduce vertical ceremony between deck, byline, opening, headings, figures, and paragraphs;
  • use monospace for metadata, code, labels, and small navigational indices;
  • apply fluid type and spacing with bounded clamp() values where appropriate.

Information density does not mean tiny text. Compare how much useful content a reader can scan in one viewport, then check legibility, hierarchy, and touch targets.

Measure mobile density by useful facts visible per viewport, not by font size or the absence of horizontal overflow. Treat repeated tall cards as a design smell. When each item is a label plus one or two values, use a compact row, table, or definition list; do not allocate a large bordered panel and centered badge to every item. As a practical review trigger, redesign repeated mobile cards taller than roughly 72px unless their content or interaction genuinely needs the space. Prefer locally scrolling wide evidence over vertically expanding every field.

Enforce readable contrast

  • Meet at least 4.5:1 contrast for normal text and 3:1 for large text, controls, focus indicators, and meaningful graphical objects in every supported theme.
  • Test semantic foreground/background token pairs programmatically when colors are controlled by the site. Do not rely on visual intuition alone.
  • Avoid low-opacity labels on tinted panels and text placed directly over chart colors without a verified foreground. Use symbols, labels, or patterns in addition to color for meaning.
  • Check default, hover, active, selected, disabled, and focus states. A readable body palette does not excuse low-contrast metadata, legends, captions, or keyboard controls.

Build reusable explanatory components

Prefer semantic, site-native components for recurring forms:

  • Figure with caption, provenance, and alt text;
  • responsive comparison table with a textual mobile treatment;
  • code sample, focused diff, and meaningful language label;
  • note, caveat, definition, and operator callout;
  • tabs for real alternatives, never to hide the only complete example;
  • chart or diagram with explicit scale, labels, and textual equivalent;
  • interactive playground that exposes the result before interaction and supports keyboard, touch, reduced motion, and narrow screens.

Keep component logic and styles feature-owned. Keep article data separate from rendering. Do not grow one post route or global stylesheet into the permanent home of every custom visualization.

Keep visuals information-dense

Editorial illustration is welcome when it contributes a useful idea, memorable context, or recognizable publication identity. It must not become an enormous low-information block above the fold. Prefer a compact treatment beside the opening, later in the article, or in the social card.

Use an information-dense SVG diagram, chart, annotated screenshot, or other technical visual when the opening needs a hero. Generate a dedicated og:image for social previews when useful; do not assume it must also appear at full size inside the article. Do not generate decorative hero art unless the user explicitly requests it. Prefer no in-article image over a vibes image that does not explain, prove, or contextualize anything.

Use, in order of explanatory value:

  1. authentic screenshots of the relevant surface;
  2. deterministic diagrams, plots, tables, code, and diffs;
  3. article-specific interactive demonstrations;
  4. editorial photography or illustration only when it carries real context.

Remove any visual that could be swapped for unrelated artwork without changing the article's meaning.

Verify the system

Run content, type, lint, link, and production-build checks. Then inspect the rendered system at representative widths such as 1600, 1280, 1024, 768, 430, 390, 375, and 320px. Verify:

  • index density and search behavior, including /, Escape, ?q=, empty results, and browser back/forward;
  • rail resizing, minimum/maximum bounds, minimize/restore, and breakpoint hiding;
  • TOC anchors, active state, sticky/floating placement, and restore control;
  • contextual internal links and related-post lists, including reciprocal links where intended, missing targets, duplicates, self-links, and mobile density;
  • title wrapping, reading measure, code overflow, figures, tables, captions, and interactive fallbacks;
  • no horizontal overflow, obscured text, clipped controls, or layout shifts;
  • iPhone safe areas, browser-chrome clearance, fixed-control placement, long title wrapping, locally scrolling evidence, and expanded TOC containment;
  • visible focus, semantic landmarks, touch targets, reduced motion, and theme contrast;
  • measured contrast for normal text and controls in light and dark themes;
  • mobile information density: compact repeated evidence, multiple useful facts per viewport, and no one-card-per-screen status or proof sequences;
  • reasonable image and JavaScript weight.

Treat visual inspection as required evidence. A passing build does not prove that a reading system works. Neither does HTTP 200, an overflow measurement, or DOM presence. Inspect actual rendered screenshots at the target CSS widths.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.