设计与多媒体

Skill Introduction

试用

Generate a beautiful, deployable HTML introduction page for any AgentSkill. Reads USAGE.md (preferred) or SKILL.md, parses name, description, and feature sec...

它能做什么

Generate a beautiful, deployable HTML introduction page for any AgentSkill. Reads USAGE.md (preferred) or SKILL.md, parses name, description, and feature sections, then renders a polished page with a hero section, feature cards, quick start, command examples, collapsible doc cards, side navigation, and a floating install button. Supports 4 themes: light (default), aurora (dark glass), techblue (debug-tool style), finance (dark blue + gold). Optionally deploys via a pluggable hook so re-runs update the same URL. Use when the user says "generate a skill intro page", "make a doc page for this skill", "publish this skill's docs", "skill-introduction". If the user does not specify a target skill, ask them for the skill name or directory path.

技能文档

skill-introduction

Auto-generate a polished HTML introduction page from a skill's USAGE.md or SKILL.md. Four themes, optional deploy hook, re-runs update the same URL.

Quick Start

Generate only (no deploy)

python3 scripts/generate_html.py --skill-dir  --no-deploy

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

Specify author

python3 scripts/generate_html.py --skill-dir  --author "Jane Doe"

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

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

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

python3 scripts/generate_html.py --skill-dir  \
  --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

RegionContent
HeroSkill name, subtitle, trigger tags, install/docs buttons
HighlightsAuto-extracted from ## sections, up to 6 cards (hidden if none)
FeaturesColored top-border cards, 3-col grid, up to 6 (hidden if none)
Quick StartTabs: user steps + terminal commands
Detailed DocsTabs: collapsible doc cards grouped by h2
RoadmapShown only if source has "roadmap/plan/future/todo" sections
Known IssuesExtracted from "notes/issues/limitations/known" sections
FooterSkill name · maintainer · last updated
Side navRight-fixed, scroll-spy highlight
Floating installBottom-right, links to install URL

Parameters

FlagDescriptionDefault
--skill-dirTarget skill directory (required)
--outputOutput HTML path./output/-intro.html
--no-deployGenerate only, skip deploydeploy if hook configured
--hub-urlInstall button URLhttps://clawhub.com/skill/
--authorMaintainer nameresolved from env/git/$USER
--update-idForce-update specific dashboard idfrom cache
--themelight / aurora / techblue / financelight
--sourceSource md file (relative or absolute)auto USAGE.md > SKILL.md
--subtitleHero subtitle one-linertruncates description

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)

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

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

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

SettingDefaultOverride
Cache file~/.cache/skill-introduction/cache.jsonSKILL_INTRO_CACHE env
Authorenv > git > $USERSKILL_INTRO_AUTHOR env
Deploy hooknoneSKILL_INTRO_DEPLOY_CMD env (see below)

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 

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

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

  • vendor/mistune/mistune v3.x, BSD-3-Clause License, © Hsiaoming Yang. Vendored unmodified for offline rendering.

相关技能

Generate install commands, README snippets, website cards, and social copy for published skills

11 次安装

Convert a book, paper, document, documentation site, or code repository into a structured, on-demand agent skill. Use when the user wants to turn a PDF, EPUB, DOCX, a URL, a docs site, or a GitHub repo into a skill they can load later — "make a skill from this book", "turn this paper into a skill", "turn these docs into a skill", "I want an agent that knows this library".

3 次安装

Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.

3 次安装1 星标

Generate Skill skeleton code, SKILL.md, and reference materials following best practices

2 次安装

Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.

25 次安装1 星标

Claude Code skill management. Topics — writer (create), lint (validate + fix frontmatter), merge (combine related), dedup (find duplicates), convert (agent → skill), architecture (multi-topic structure), upgrade (enhance + add topics), route (topic placement), trigger (declare + auto-register hooks), find (discover via npx skills CLI), graph (extract depends-on + topic body Skill calls into Edge Table + Mermaid + dispatched d3 force-directed render), language (per-skill language consistency enforcement), portability (public skill cross-ref + vendor isolation), publish-scope (published skill scope review before extending), invoke-discipline (slash command → Skill tool call, multi-topic Read, post-decision auto-invoke, interactive script, vendor dispatch). Use when: "skill writer", "skill lint", "skill merge", "skill dedup", "create skill", "frontmatter fix", "multi-topic skill", "convert agent", "skill upgrade", "add topic", "topic route", "trigger compile", "hook auto register", "find

24 次安装