AI LineAiline Skillhub
技能市场/docs-page

docs-page

docs-page

A documentation page — inline-start nav, scrollable article body, inline-end table of contents. Use when the brief mentions "docs", "documentation", "guide", "API reference", or "tutorial".

Docs Page Skill

Produce a single, three-column documentation page in one HTML file.

Workflow

  1. Read the active DESIGN.md (injected above). Use the body type token for prose; the mono token for code; respect line-height and max-width rules.
  2. Pick a topic from the brief — the page should look like real docs, not a generic wireframe. Concrete API names, command examples, plausible parameters.
  3. Lay out three regions, expressed on the inline axis so the layout flips correctly under dir="rtl":
    • Inline-start nav (240–280px, sticky): grouped link list, current page bolded with an inline-start-edge accent stripe. 3–5 groups of 4–8 links.
    • Article body (max-width ~720px, centered in the middle column): H1, lede paragraph, H2 sections, code blocks, callout boxes (note / warning), inline links, lists.
    • Inline-end TOC (200–240px, sticky): "On this page" with the H2/H3 anchors, current section highlighted as the user scrolls.
  4. Write a single HTML document:
    • <!doctype html> through </html>, all CSS inline.
    • CSS Grid for the three columns; sticky positioning for the rails.
    • Code blocks: monospace token, soft surface fill, copy-button affordance (visual only — no JS needed).
    • Anchor IDs on every H2/H3 so the TOC links work.
    • data-od-id on the nav, article, and TOC.
  5. Prose: write at least 350 words of believable docs. Include at least one shell command, one code snippet (5–15 lines), one callout, one table.
  6. Self-check:
    • Body text wraps at the DS line-length sweet spot (60–75 chars).
    • Code uses the DS mono token, not generic monospace.
    • Accent is restrained — used for active nav item, links, one callout border. Not on body text.
    • Page is readable at 1280w and collapses gracefully below 900w (TOC drops out, nav becomes a top drawer).
    • Use logical CSS (margin-inline-start, border-inline-start, inset-inline-end, text-align: start) on the rails and accent stripe so the layout flips correctly under dir="rtl".

Output contract

Emit between <artifact> tags:

<artifact identifier="docs-slug" type="text/html" title="Docs — Page Title">
<!doctype html>
<html>...</html>
</artifact>

One sentence before the artifact, nothing after.

安装中心

可直接安装到 9 个框架(另有 Cursor / Windsurf 需转换为 rules 格式)。悬停可查看各框架的技能目录。

方式一 · 复制提示词(推荐)

粘贴给你的 Claude Code,它会自己完成下载和安装(安装文件直接取自原始仓库)

请帮我安装技能「docs-page」:
1. 从原始仓库下载技能文件:https://raw.githubusercontent.com/nexu-io/open-design/main/design-templates/docs-page/SKILL.md(GitHub 上的 SKILL.md 原始文件)
2. 保存为 ~/.claude/skills/docs-page/SKILL.md(目录不存在则创建)
3. 确认文件存在后,告诉我安装结果

方式二 · 命令行安装

npx CLI 跨平台可用(自动检测本机 Agent);PowerShell 方式无需安装任何东西

npx ailine-skills add docs-page
New-Item -ItemType Directory -Force "$HOME\.claude\skills\docs-page" | Out-Null; curl.exe -fsSL "https://raw.githubusercontent.com/nexu-io/open-design/main/design-templates/docs-page/SKILL.md" -o "$HOME\.claude\skills\docs-page\SKILL.md"

方式三 · 前往原始仓库

第三方技能不由本站分发安装文件,请从原始仓库获取(上方命令/提示词已直连原始文件)