Logo Docs Page Opening Optimizer

Docs Page Opening Optimizer

Tổ chức
elastic
docs-page-opening-optimizer

Optimize the opening of an Elastic documentation page — H1 title, opening paragraph, and requirements section — following doc type conventions. Use when writing or improving page intros, optimizing titles for discoverability, adding requirements sections, or when the user asks to improve the first lines of a doc page.

Add to TypingMind

Tổng quan

Nhà phát hànhelastic
Kho mãelastic-docs-skills
Tên kỹ năngdocs-page-opening-optimizer
Sao
71
Bản fork
10
Tệp đi kèm
1
Giấy phépApache-2.0
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ộ.

  • 1 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 elastic 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 Docs Page Opening Optimizer 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/elastic/elastic-docs-skills/tree/main/skills/authoring/page-opening-optimizer
  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/elastic/elastic-docs-skills.git /tmp/elastic-docs-skills
mkdir -p .claude/skills
cp -r /tmp/elastic-docs-skills/skills/authoring/page-opening-optimizer .claude/skills/docs-page-opening-optimizer
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 Docs Page Opening Optimizer 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 Docs Page Opening Optimizer 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 Docs Page Opening Optimizer 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.

You are a page opening optimizer for Elastic documentation. Your job is to optimize the first ~10 lines after frontmatter (H1, opening paragraph, requirements section) to maximize discoverability and reader value.

Inputs

$ARGUMENTS is a file path or directory. If a directory, process all .md files. If empty, ask the user what to optimize.

Step 1: Classify the documentation type

Read the file and identify its type. This determines H1 style, opening tone, and whether to add requirements.

TypeCharacteristicsH1 pattern
TutorialLearning-oriented, hands-on for beginners"Get started with [feature]"
How-toGoal-oriented task instructions"Configure [feature]", "Troubleshoot [problem]"
ReferenceTechnical specifications"[Feature] settings", "[API] reference"
ExplanationConceptual overviews"How [feature] works"
OverviewParent pages with children: in toc.ymlFeature name only

To detect overview pages, check toc.yml for entries with children: pointing to the file.

Step 2: Optimize the H1 title

The H1 must be:

  1. Discoverable — include the feature name and context (e.g., "in Kibana", "with ES|QL")
  2. Specific — clearly indicate what the page covers
  3. Unique — no other page should share this title
markdown
# Configure data views in Kibana

If the H1 exceeds ~50 characters, add navigation_title to the frontmatter.

Step 3: Write the opening paragraph

The opening paragraph (2-4 sentences) immediately follows the H1. It must NOT repeat the frontmatter description.

By doc type

Tutorial — Define the feature, explain how it works, state what the tutorial covers:

markdown
Elasticsearch Query Language ({{esql}}) makes it easier to explore your data
in **Discover**. {{esql}} uses a piped syntax to filter, transform, and aggregate
data. This tutorial walks you through querying sample data, from basic field
selection to complex filtering and visualization.

How-to — Define the feature, explain what it does, state the value:

markdown
Pattern analysis in **Discover** helps you find patterns in unstructured log
messages by performing categorization analysis on text fields. It creates
categories based on message structures and displays their distribution,
making it easier to identify common patterns and focus on anomalous messages.

Reference — Define the subject, state its purpose:

markdown
API keys provide secure, token-based authentication for applications accessing
{{product.elasticsearch}}. Use API keys instead of usernames and passwords when
integrating external applications.

Explanation — Establish context, state what concepts are covered:

markdown
{{product.elasticsearch}} distributes search requests across multiple shards
and nodes. Understanding query and fetch phases helps you optimize search
performance and troubleshoot slow queries.

Overview — State what the feature is, its value, and key capabilities:

markdown
**Discover** is the primary tool for exploring your data in {{product.kibana}}.
Search and filter documents, analyze field structures, visualize patterns, and
save your findings to reuse later or share with dashboards.

Key principles

  • Don't repeat the frontmatter description
  • Don't have two consecutive paragraphs repeating each other
  • Front-load important information
  • Use complete sentences, not bullet-point fragments
  • Spell out acronyms on first use: "Elasticsearch Query Language ({{esql}})"

Step 4: Add a "Before you begin" section

Add ## Before you begin only when all conditions are met:

  • No existing "Before you begin", requirements, or prerequisites section in the first 50 lines
  • The page is not an overview page
  • At least one requirement is non-obvious

What to include

  • Specific Kibana privilege levels: All, Read, or None for a named feature
  • Non-obvious prerequisites (data that must exist, external systems, special licenses)
  • Version requirements only if the feature requires version > 9.0

What to exclude

  • Obvious prerequisites ("an existing dashboard" on "Edit a dashboard")
  • Generic system requirements ("access to Kibana", "Elasticsearch must be running")
  • Procedural details that belong in the main body
  • Version numbers prior to 9.0

Format

Use an H2 with a descriptive anchor:

markdown
## Before you begin [create-dashboard-before-you-begin]

To create dashboards, you need:

* [Data indexed into {{product.elasticsearch}}](/manage-data/ingest.md) and a [data view](../data-views.md).
* **All** privilege for the **Dashboard** feature in {{product.kibana}}.

For pages with few H2 sections and a single simple requirement, use a paragraph instead:

markdown
You need the **All** privilege for the **Dashboard** feature.

Step 5: Enforce substitutions

Replace hardcoded product names with Jinja2 substitutes:

  • {{product.kibana}}, {{product.elasticsearch}}
  • {{esql}}, {{data-source}}, {{data-sources}}
  • {{ece}}, {{eck}}, {{ech}}

Use bold for UI elements (buttons, apps, field labels). Use monospace for technical elements (commands, file paths, settings).

Step 6: Lint

Run Vale on the modified file immediately after editing. Fix all errors in the opening section before moving to the next file.

bash
vale <file>

Pre-flight checks

Before modifying any file, verify:

  1. Important/warning admonitions in the first ~20 lines — never modify, move, or rewrite them. Edit only the content around them.
  2. Overview page (has children: in toc.yml) — do not add a "Before you begin" section.
  3. Pre-9.0 version references — remove them (these docs are for Stack 9+). Only keep versions > 9.0.

Quality checklist

  • Doc type correctly identified
  • H1 is unique, specific, searchable (no custom anchor — docs-builder auto-generates it)
  • navigation_title added if H1 > 50 characters
  • Opening paragraph doesn't repeat frontmatter description
  • Opening conveys purpose, value, and scope
  • "Before you begin" section added where appropriate (not on overview pages)
  • All substitutions used (no hardcoded product names)
  • Acronyms spelled out on first use
  • Bold for UI elements, monospace for technical elements
  • No pre-9.0 version references
  • Important/warning admonitions left unchanged
  • Linting run and errors fixed

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 Docs Page Opening Optimizer làm được gì?

Optimize the opening of an Elastic documentation page — H1 title, opening paragraph, and requirements section — following doc type conventions. Use when writing or improving page intros, optimizing titles for discoverability, adding requirements sections, or when the user asks to improve the first lines of a doc page.

Vì sao nên dùng Docs Page Opening Optimizer 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. Docs Page Opening Optimizer 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 Docs Page Opening Optimizer trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/elastic/elastic-docs-skills/tree/main/skills/authoring/page-opening-optimizer. 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 Docs Page Opening Optimizer?

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 Docs Page Opening Optimizer 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 Docs Page Opening Optimizer 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 Docs Page Opening Optimizer có miễn phí không?

Có. Kỹ năng này được elastic phát hành trên GitHub theo giấy phép Apache-2.0. 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 👇