📦
点我安装
OpenClaw Skill · skill-introduction

skill-introduction

Beautiful HTML docs for your skill

🕒 2026-06-22
⚠️本页内容取自 SKILL.md(面向 AI 触发),可能偏技术。建议在 skill 目录补充 USAGE.md 以生成面向用户的说明页。

为什么选 skill-introduction?

快速了解这个 Skill 的核心价值。

📄
Quick Start
Quick Start
📄
Generated Page Layout
Generated Page Layout
📄
Parameters
Parameters
📄
Source Selection (important)
--source (explicit)
📄
Subtitle (agents: do this)
❌ Truncated: `Generate a beautiful, deployable HTML introduction page for any Ag
📄
Rendering Engine
Block-level markdown (tables / nested lists / blockquotes / hr) is rendered by v

开箱即用的能力

覆盖主要场景的功能模块一览。

📄Quick Start
📄Generated Page Layout
📄Parameters
📄Source Selection (important)
  • --source (explicit)
  • USAGE.md in skill dir (recommended, user-facing)
  • SKILL.md (fallback)
📄Subtitle (agents: do this)
  • ❌ Truncated: `Generate a beautiful, deployable HTML introduction page for any Ag
  • ✅ One-liner: Beautiful, deployable HTML docs for your skill in one command
📄Rendering Engine
  • Block-level markdown (tables / nested lists / blockquotes / hr) is rendered by v
  • If vendor/ is missing the script falls back to a built-in regex renderer — no

几分钟上手

先安装 Skill,然后选择你的身份开始。

1
Generate only (no deploy)
python3 scripts/generate_html.py --skill-dir --no-deploy Outputs to ./output/-intro.html (override with --output).
2
Specify author
python3 scripts/generate_html.py --skill-dir --author "Jane Doe" Author resolution order: --author → SKILL_INTRO_AUTHOR env → git config --global user.name → $USER.
3
Pick a theme
python3 scripts/generate_html.py --skill-dir --theme aurora Themes: light (default), aurora (dark glass), techblue (debug-tool), finance (dark blue + gold).
4
Use a specific source file
python3 scripts/generate_html.py --skill-dir --source USAGE.md Default resolution: --source > USAGE.md > SKILL.md (fallback with notice).
快速上手命令
Generate only (no deploy)
python3 scripts/generate_html.py "c-flag">--skill-dir <path-to-skill> "c-flag">--no-deploy

Specify author
python3 scripts/generate_html.py "c-flag">--skill-dir <path> "c-flag">--author "Jane Doe"

Pick a theme
python3 scripts/generate_html.py "c-flag">--skill-dir <path> "c-flag">--theme aurora

所有功能与命令

点击展开每个功能的详细说明。

📤 Quick Start
📄Generate only (no deploy)基础▶
python3 scripts/generate_html.py --skill-dir <path-to-skill> --no-deploy

Outputs to ./output/<slug>-intro.html (override with --output).

📄Specify author基础▶
python3 scripts/generate_html.py --skill-dir <path> --author "Jane Doe"

Author resolution order: --author → SKILL_INTRO_AUTHOR env → git config --global user.name → $USER.

📄Pick a theme基础▶
python3 scripts/generate_html.py --skill-dir <path> --theme aurora

Themes: light (default), aurora (dark glass), techblue (debug-tool), finance (dark blue + gold).

📄Use a specific source file基础▶
python3 scripts/generate_html.py --skill-dir <path> --source USAGE.md

Default resolution: --source > USAGE.md > SKILL.md (fallback with notice).

📄Custom subtitle (recommended)基础▶
python3 scripts/generate_html.py --skill-dir <path> \
  --subtitle "Beautiful, deployable HTML docs for your skill"

Without --subtitle, the page truncates the long description field — usually ugly. Always pass a one-liner.

🎨 Generated Page Layout
📄Generated Page Layout基础▶
Region Content
Hero Skill name, subtitle, trigger tags, install/docs buttons
Highlights Auto-extracted from ## sections, up to 6 cards (hidden if none)
Features Colored top-border cards, 3-col grid, up to 6 (hidden if none)
Quick Start Tabs: user steps + terminal commands
Detailed Docs Tabs: collapsible doc cards grouped by h2
Roadmap Shown only if source has "roadmap/plan/future/todo" sections
Known Issues Extracted from "notes/issues/limitations/known" sections
Footer Skill name · maintainer · last updated
Side nav Right-fixed, scroll-spy highlight
Floating install Bottom-right, links to install URL
⚙️ Parameters
📄Parameters基础▶
Flag Description Default
--skill-dir Target skill directory (required) —
--output Output HTML path ./output/<name>-intro.html
--no-deploy Generate only, skip deploy deploy if hook configured
--hub-url Install button URL https://clawhub.com/skill/<slug>
--author Maintainer name resolved from env/git/$USER
--update-id Force-update specific dashboard id from cache
--theme light / aurora / techblue / finance light
--source Source md file (relative or absolute) auto USAGE.md > SKILL.md
--subtitle Hero subtitle one-liner truncates description
🔧 Source Selection (important)
📄Source Selection (important)基础▶

Selection order:

  1. --source (explicit)
  2. USAGE.md in skill dir (recommended, user-facing)
  3. SKILL.md (fallback)

⚠️ SKILL.md is written for AI trigger matching (contains technical triggers, "when the user says…" phrasing). Rendering it directly to humans looks technical. If falling back to SKILL.md, the page shows a notice at the top and the terminal prints [WARN]. Add a USAGE.md for a polished user-facing page. Never soften SKILL.md's description to make it pretty — that breaks AI trigger matching.

📊 Subtitle (agents: do this)
📄Subtitle (agents: do this)基础▶

The hero subtitle should be a one-liner pitch, not raw description. Descriptions are long (contain triggers + technical detail); truncating to 130 chars + ... looks bad.

Agents: read the skill, craft a concise pitch, pass it via --subtitle.

Examples:

  • ❌ Truncated: Generate a beautiful, deployable HTML introduction page for any AgentSkill. Reads USAGE.md (preferred) or SKILL.md, parses name...
  • ✅ One-liner: Beautiful, deployable HTML docs for your skill in one command
🛠️ Rendering Engine
📄Rendering Engine基础▶

Block-level markdown (tables / nested lists / blockquotes / hr) is rendered by vendored mistune (BSD-3-Clause, in vendor/mistune/, ships with the skill, pure Python). If vendor/ is missing the script falls back to a built-in regex renderer — no crash, just simpler output.

📝 Cache
📄Cache基础▶

After successful deploy, the dashboard id is cached so subsequent runs auto-update the same URL.

Setting Default Override
Cache file ~/.cache/skill-introduction/cache.json SKILL_INTRO_CACHE env
Author env > git > $USER SKILL_INTRO_AUTHOR env
Deploy hook none SKILL_INTRO_DEPLOY_CMD env (see below)
🔍 Deploy Hook (optional)
📄Deploy Hook (optional)基础▶

The skill does not bind to any hosting platform. To enable deploy, set SKILL_INTRO_DEPLOY_CMD to a script/command that:

  1. Accepts the HTML file path as $1
  2. (Optional) reads SKILL_INTRO_UPDATE_ID env when updating an existing page
  3. Prints the deployed URL (containing dashboardId=<32hex>) on stdout to enable cache-based updates
export SKILL_INTRO_DEPLOY_CMD="/path/to/my-deploy.sh"
python3 scripts/generate_html.py --skill-dir <path>

If no hook is configured, the skill prints [INFO] No deploy hook configured and leaves the local HTML untouched.

📤 Notes
📄Notes基础▶
  • Target skill must have USAGE.md or SKILL.md or the script exits with an error.
  • Generated page quality depends on source structure: clearer sections → prettier page.
  • Empty sections (highlights / features / roadmap) are hidden — no fake content.
  • If the user does not provide a skill path, ask them; do not auto-guess.
🎨 Third-party Notice
📄Third-party Notice基础▶
  • vendor/mistune/ — mistune v3.x, BSD-3-Clause License, © Hsiaoming Yang. Vendored unmodified for offline rendering.
💻 Generate only (no deploy)
📄Generate only (no deploy)基础▶
python3 scripts/generate_html.py --skill-dir <path-to-skill> --no-deploy

Outputs to ./output/<slug>-intro.html (override with --output).

⚙️ Specify author
📄Specify author基础▶
python3 scripts/generate_html.py --skill-dir <path> --author "Jane Doe"

Author resolution order: --author → SKILL_INTRO_AUTHOR env → git config --global user.name → $USER.

🔧 Pick a theme
📄Pick a theme基础▶
python3 scripts/generate_html.py --skill-dir <path> --theme aurora

Themes: light (default), aurora (dark glass), techblue (debug-tool), finance (dark blue + gold).

📡 Use a specific source file
📄Use a specific source file基础▶
python3 scripts/generate_html.py --skill-dir <path> --source USAGE.md

Default resolution: --source > USAGE.md > SKILL.md (fallback with notice).

💻 Custom subtitle (recommended)
📄Custom subtitle (recommended)基础▶
python3 scripts/generate_html.py --skill-dir <path> \
  --subtitle "Beautiful, deployable HTML docs for your skill"

Without --subtitle, the page truncates the long description field — usually ugly. Always pass a one-liner.

⚙️ Deploy Hook (optional)
📄Deploy Hook (optional)基础▶

The skill does not bind to any hosting platform. To enable deploy, set SKILL_INTRO_DEPLOY_CMD to a script/command that:

  1. Accepts the HTML file path as $1
  2. (Optional) reads SKILL_INTRO_UPDATE_ID env when updating an existing page
  3. Prints the deployed URL (containing dashboardId=<32hex>) on stdout to enable cache-based updates
export SKILL_INTRO_DEPLOY_CMD="/path/to/my-deploy.sh"
python3 scripts/generate_html.py --skill-dir <path>

If no hook is configured, the skill prints [INFO] No deploy hook configured and leaves the local HTML untouched.

⚠️ 已知问题 & 注意事项
  • Skill 的调用质量取决于 SKILL.md 描述的清晰度,描述越具体,AI 识别越准确。
  • 复杂任务建议分步骤描述需求,避免一次输入过多要求。
  • 如遇调用失败,请检查 Skill 是否已正确安装,或尝试重新描述需求。