Guide authoring

From microlinkhq/www · View interactive version

Guide authoring is an AI agent skill from the GitHub repository microlinkhq/www. Create or revise docs guides under src/content/docs/guides with runnable MDX examples.

How to use this skill

Skill file

Microlink Guide Authoring

Goal

Create guides like the current screenshot guide: practical, workflow-first, easy to scan, and strictly aligned with the API docs.

When to Use

Read first

When asked to create or revise a guide, read:

  1. src/content/docs/guides/index.md
  2. The target utility guide folder, if it exists.
  3. src/content/docs/guides/screenshot/*.md as the house-style baseline.
  4. All relevant src/content/docs/api/parameters/** pages for the utility.
  5. Related shared docs when applicable:
  1. Common pattern pages under src/content/docs/guides/common/:
  1. src/components/patterns/Aside/constants.js if the guide set changes.

The screenshot guide is the current benchmark for tone, depth, and cross-linking. Match its quality, not necessarily its exact file count.

Core principles

Shared content architecture

Caching, private pages, and troubleshooting contain patterns that are identical across all workflows. To avoid duplication and maintenance drift:

  1. Shared pattern pages live under src/content/docs/guides/common/. They contain the universal advice: how ttl/staleTtl/force work, how headers/x-api-header-*/proxy work, and how to read debug headers.
  2. Per-guide pages for caching, private pages, and troubleshooting are slim — they contain only the guide-specific advice (e.g., "set meta: false for screenshot-only requests") and link to the shared pattern page for the universal parts.
  3. When creating a new guide, do NOT duplicate the shared content. Write the guide-specific tips and link to common/.

The pattern is:

Pick the page set

Start with the smallest useful set. Do not copy the screenshot page list blindly.

| Page | Use when | Typical content |

|------|----------|-----------------|

| index.md | Always | Quickstart, response model, canonical syntax, key decision points, roadmap, "See also" |

| customizing-output.md | The utility has output-specific options | Output modes, formatting, visual differences, asset customization |

| browser-settings.md | Headless browser rendering changes the result | Device, viewport, color scheme, media type, JavaScript, rendering settings |

| page-interaction.md | Browser actions affect success | waitUntil, waitForSelector, click, scroll, styles, scripts, function, adblock |

| embedding.md | Users need to consume assets in markup or choose a delivery mode | JSON vs direct asset response, embed, response shaping, filenames |

| caching-and-performance.md | Freshness, cost, and speed matter | Guide-specific speedups only, then link to common/caching |

| private-pages.md | Auth, sessions, forwarded headers, or endpoint choice matter | Guide-specific examples only, then link to common/private-pages |

| troubleshooting.md | Failure modes are common or multi-causal | Guide-specific issues only, then link to common/troubleshooting |

Rename pages when the utility needs different language (e.g., the markdown guide uses choosing-scope.md instead of defining-rules.md), but keep the workflow-first grouping.

Authoring workflow

  1. Audit the utility surface.
  1. Design the information architecture.
  1. Write the hub page.
  1. Write subguides.
  1. Update shared navigation.
  1. Cross-check before finishing.

MDX conventions

Common imports:

import { Link } from 'components/elements/Link'
import { Figcaption } from 'components/markdown/Figcaption'
import { MultiCodeEditorInteractive } from 'components/markdown/MultiCodeEditorInteractive'
import ProBadge from 'components/patterns/ProBadge/ProBadge'

Guardrails

1. parameter page type, frontmatter, and examples

2. directly related basics/getting-started docs

3. explicit user confirmation

Definition of done

Templates

For copyable outlines, see references/templates.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.