Chuyển đến nội dung
Skillpedia
Tài liệu kỹ thuật101k · #873

docs-page

Skill này làm gì

Công cụ này tạo một trang tài liệu hoàn chỉnh trong một tệp HTML duy nhất. Nội dung được chia thành ba cột: menu điều hướng bên trái, phần nội dung chính ở giữa và mục lục bên phải.

Khi nào nên dùng

  • ✓Khi bạn cần một trang hướng dẫn hoặc bài hướng dẫn.
  • ✓Khi tạo tài liệu tham chiếu API.
  • ✓Để tạo tài liệu kỹ thuật chi tiết.

Liên kết skill

https://github.com/nexu-io/open-design/blob/main/design-templates/docs-page/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/nexu-io/open-design/blob/main/design-templates/docs-page/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo trang tài liệu cho chức năng đăng nhập của người dùng, gồm ví dụ mã và các ghi chú cảnh báo.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ đọc hướng dẫn thiết kế, chọn chủ đề phù hợp và sắp xếp nội dung thành ba cột bằng CSS Grid. Nó đảm bảo văn bản dễ đọc và mã được định dạng đúng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

“Tokens” là gì?

Tokens là những khối xây dựng định sẵn mà công cụ dùng để định dạng văn bản và mã, giúp mọi thứ nhất quán.

“Bố cục lật đúng khi dir="rtl"” nghĩa là gì?

Nghĩa là trang tự động thích ứng với các ngôn ngữ viết từ phải sang trái (như tiếng Ả Rập) bằng cách đảo thứ tự các cột.

Trang được tạo có cần JavaScript không?

Không. Nút sao chép mã chỉ mang tính hình ảnh. Cấu trúc trang được xây dựng bằng HTML và CSS.

Chi tiết

Mô tả gốc của tác giả

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".

repo: nexu-io/open-design

Độ phổ biến

Sao GitHub
101k
Vị trí xếp hạng
#873
Giấy phép
Apache-2.0
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự