Logo Spec To Readable Html

Spec To Readable Html

Cộng đồng
KeMezz
spec-to-readable-html

Transform Markdown or text specifications into human-readable HTML documents with summaries, reordered structure, visual explanations, diagrams, charts, and traceability to the source. Use when asked to convert a spec, requirements document, API spec, product spec, design doc, or technical document into readable HTML, especially when the user wants summarization, restructuring, diagrams, graphs, images, or visual aids rather than a literal Markdown-to-HTML conversion.

Tổng quan

Nhà phát hànhKeMezz
Kho mãspec-to-readable-html
Tên kỹ năngspec-to-readable-html
Sao
43
Bản fork
3
Tệp đi kèm
2
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được KeMezz công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Spec To Readable Html trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/KeMezz/spec-to-readable-html/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/KeMezz/spec-to-readable-html.git \
  .claude/skills/spec-to-readable-html
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Spec To Readable Html trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Spec To Readable Html ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Spec To Readable Html với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Spec to Readable HTML

This skill turns specifications into polished, human-readable HTML reports. It is not a simple Markdown renderer. It should analyze the source, summarize where helpful, reorganize content for comprehension, and add visual aids when they clarify the document.

When invoked, $lang sets the output language (default: ja). If omitted, Japanese is used.

When to Use This Skill

Use this skill when the user asks to:

  • Convert a specification, requirements document, design doc, API spec, PRD, RFC, or technical document into HTML
  • Make a Markdown spec easier for humans to read
  • Add summaries, diagrams, charts, screenshots, icons, or visual explanations to a document
  • Turn dense requirements into a readable web page or report
  • Produce executive summaries, implementation overviews, API maps, workflows, architecture diagrams, or decision summaries from a spec

Do not treat the task as a literal Markdown-to-HTML conversion unless the user explicitly asks for a faithful conversion.

Core Principles

  1. Improve comprehension, not just formatting

    • Summarize long sections.
    • Group related information.
    • Surface key decisions, risks, dependencies, and open questions.
  2. Preserve traceability

    • Do not silently change meaning.
    • Mark inferred content as Inferred or Assumption.
    • Prefer linking or referencing original section names where possible.
  3. Use visuals only when they help

    • Add diagrams for flows, relationships, architecture, state transitions, timelines, or data models.
    • Add charts only when the source contains comparable quantities, priorities, timelines, statuses, or categories.
    • Do not invent quantitative data.
  4. Make the output portable

    • Prefer a single portable HTML file with embedded CSS.
    • The base template uses the Mermaid CDN by default for Mermaid diagrams.
    • Document the Mermaid CDN dependency in the footer or a comment when Mermaid is used.
    • If the user asks for offline, no-network, or fully self-contained output, replace Mermaid diagrams with inline SVG instead of loading the CDN.
    • Avoid additional external dependencies unless the user allows them.

Input Handling

Accept any of these inputs:

  • Markdown file
  • Plain text specification
  • Multiple related spec files
  • API schema / OpenAPI fragments
  • README-style product or technical notes
  • Existing HTML that needs improvement

Before producing HTML, identify:

  • Document type: PRD, API spec, technical spec, design doc, operations runbook, etc.
  • Target audience: business, engineering, QA, operations, mixed audience
  • Main entities: users, systems, APIs, screens, jobs, data models
  • Main processes: workflows, sequences, state transitions
  • Ambiguities, missing decisions, and risks

If the target audience or desired level of detail is unclear, make a reasonable default:

  • Audience: mixed product + engineering
  • Detail: readable but implementation-aware
  • Output: single portable HTML document with embedded CSS; Mermaid diagrams may use the CDN unless offline/no-network output is requested

Recommended Workflow

  1. Read and map the source

    • Extract title, purpose, scope, background, requirements, flows, APIs, data, constraints, risks, and open questions.
  2. Create a reader-friendly structure

    • Executive summary
    • What this document covers
    • Key concepts / glossary
    • Main workflows or user journeys
    • Functional requirements
    • Non-functional requirements
    • System / API / data overview
    • Visual diagrams
    • Risks, assumptions, open questions
    • Appendix: source-aligned details
  3. Summarize selectively

    • Keep exact details for requirements, API contracts, constraints, and acceptance criteria.
    • Summarize background, motivation, repeated explanations, and long prose.
    • Use callouts for important notes.
  4. Choose visual aids

    • Use the visual decision guide below.
    • Create diagrams as inline SVG, Mermaid source, or image files depending on the environment and user preference.
    • Always add captions and alt text.
  5. Generate polished HTML

    • Use semantic HTML: section, article, nav, table, figure, figcaption.
    • Include a sticky or top table of contents for long docs.
    • Use readable typography, spacing, and contrast.
    • Include print-friendly CSS when useful.
  6. Validate output

    • Check that source meaning is preserved.
    • Ensure assumptions are labeled.
    • Ensure visuals match the source.
    • Ensure the HTML opens standalone unless dependencies were explicitly chosen.

Visual Decision Guide

Choose visuals based on the content:

Source contentBest visual
Step-by-step business or user processFlowchart
API calls between systemsSequence diagram
System components and dependenciesArchitecture diagram
Status lifecycleState diagram
Tables with entities and relationshipsER diagram / relationship map
Milestones or phased rolloutTimeline
Priority, status, category countsBar chart / stacked chart
Decision alternativesComparison matrix
Screen transitionsUser journey / sitemap
Long section structureSummary cards

Preferred formats:

  1. Inline SVG for standalone visual diagrams and charts, especially when fully self-contained or offline output is required.
  2. Mermaid for architecture, flowchart, sequence, state, and ER diagrams when source code readability matters. In the base template, Mermaid uses a CDN dependency.
  3. HTML/CSS cards and tables for summaries and comparisons.
  4. Raster images only if image generation or screenshots are explicitly requested or available.

If using Mermaid, include the Mermaid source in the HTML or appendix so it can be edited later, and document the CDN dependency unless Mermaid has been pre-rendered to inline SVG.

HTML Output Requirements

Use references/template.html as the base HTML template and references/html-output-template.md as the component guide when generating a complete HTML file. Copy the full <style> block and section structure from the template, then replace {{PLACEHOLDER}} tokens with content derived from the source.

The HTML should usually include:

  • Document title and short subtitle
  • Generated date or source version if known
  • Executive summary
  • Table of contents
  • Summary cards for key points
  • Main sections with concise headings
  • Tables for requirements, APIs, data fields, decisions, risks, and open questions
  • Visual diagrams with captions
  • Source traceability notes
  • Print-friendly styling

For dense technical specs, include badges such as:

  • Must, Should, Could
  • Confirmed, Inferred, Assumption, Open Question
  • High Risk, Medium Risk, Low Risk

HTML Safety and Escaping

  • Treat source-derived prose, table cell content, captions, metadata, and placeholder replacements as untrusted text by default.
  • HTML-escape &, <, >, ", and ' before inserting source text into text nodes or attributes, unless deliberately emitting generated, safe markup.
  • Do not pass raw source HTML through by default. If limited HTML is required, use a small allowlist of semantic tags and safe attributes.
  • Keep code blocks and source excerpts as escaped text inside <pre><code> or equivalent containers.
  • When source content is used inside Mermaid labels, quote or escape labels so user-provided HTML, event handlers, and javascript: URLs are not emitted into the page.
  • Inline SVG may be generated by the agent, but SVG or HTML copied from the source must be sanitized or replaced with a safe generated diagram.

Rules for Summarization and Inference

  • Never remove contractual or normative requirements without indicating they were summarized.
  • Preserve keywords such as MUST, SHOULD, SHALL, required, optional, deprecated.
  • Keep IDs, endpoint paths, field names, status names, enum values, error codes, and limits exact.
  • If a diagram requires interpretation, label it as an inferred view.
  • If the source is ambiguous, create an Open Questions section instead of guessing.

Language

Default output language is Japanese (<html lang="ja">). If the user requests a different language, use that language for all headings, badges, labels, and body text. Keep technical terms (API names, field names, paths, code identifiers) in their original language regardless.

Quality Checklist

Before finalizing, verify:

  • The output is more readable than the source, not merely converted.
  • Important requirements and constraints are preserved.
  • Summaries do not change meaning.
  • Visuals are accurate and useful.
  • Inferred content and assumptions are labeled.
  • Tables are used for structured details.
  • The HTML has a table of contents.
  • The file is standalone, or dependencies such as Mermaid CDN are documented.
  • Accessibility basics are covered: headings, contrast, alt text/captions.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

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

Kỹ năng AI Spec To Readable Html làm được gì?

Transform Markdown or text specifications into human-readable HTML documents with summaries, reordered structure, visual explanations, diagrams, charts, and traceability to the source. Use when asked to convert a spec, requirements document, API spec, product spec, design doc, or technical document into readable HTML, especially when the user wants summarization, restructuring, diagrams, graphs, images, or visual aids rather than a literal Markdown-to-HTML conversion.

Vì sao nên dùng Spec To Readable Html trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Spec To Readable Html là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Spec To Readable Html trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/KeMezz/spec-to-readable-html/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Spec To Readable Html?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Spec To Readable Html với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Spec To Readable Html với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Spec To Readable Html có miễn phí không?

Có. Kỹ năng này được KeMezz phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇