Link To Html 标志

Link To Html

社区
LjyYano
link-to-html

Use when the user provides a podcast/video/article URL or an existing Obsidian note (.md) and wants a self-contained HTML viewer page generated. Produces a Podwise-inspired single-file HTML with sidebar, episode header, 6 tabs (Summary, Mindmap, Transcript, Keywords, Highlights, Shownotes), dark/light theme, and markmap mindmap rendering.

概览

发布者LjyYano
代码仓库skill-pack
技能名称link-to-html
星标数
43
复刻数
4
附带文件
1
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 LjyYano 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Link To Html AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/LjyYano/skill-pack/tree/main/skills/link-to-html
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LjyYano/skill-pack.git /tmp/skill-pack
mkdir -p .claude/skills
cp -r /tmp/skill-pack/skills/link-to-html .claude/skills/link-to-html
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Link To Html,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Link To Html。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Link To Html 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Podcast Note → HTML Viewer

Overview

Read an Obsidian podcast note (.md) and produce a single self-contained HTML file with a Podwise-inspired UI: sidebar navigation, episode header, 6 tabbed panels, dark/light theme toggle, and interactive markmap mindmap.

Input: Podcast URL (will invoke link-to-note skill first) OR path to an existing .md podcast note.

Output: Same directory as the .md, same filename but .html extension.

Example: AI/Podcasts/商业小样37 意想不到的 AI 股 康宁.md → AI/Podcasts/商业小样37 意想不到的 AI 股 康宁.html


Prerequisites

  • The .md note must follow the link-to-note skill's template (frontmatter + 摘要 + Takeaways + 思维导图 + 章节导读 + 金句 + 详细论点 + 完整转录)
  • Internet access for CDN scripts (d3, markmap-lib, markmap-view)

Workflow

User input
  ├─ Podcast URL → invoke link-to-note skill → get .md path → continue ↓
  └─ .md file path → read .md → extract data → fill HTML template → write .html

Step 1: If input is a URL, generate the note first

Invoke the link-to-note skill with the URL. Wait for it to finish and produce the .md file. Then continue to Step 2.

Step 2: Read and parse the .md note

Extract the following data from the note:

DataSource in .mdHow to extract
TITLEfrontmatter title or first # headingDirect read
PODCAST_NAMEfrontmatter authorTake part before · (e.g. 商业就是这样 · 肖文杰 / 约小亚 → 商业就是这样)
DATE_DISPLAYfrontmatter dateFormat as DD Mon YYYY (e.g. 2026-03-30 → 30 Mar 2026)
DURATIONfrontmatter durationUse as-is (e.g. "14:36" → 14m36s for display)
PLATFORMfrontmatter platformUse as-is
SOURCE_URLfrontmatter sourceFor links
TAGSfrontmatter tagsArray of tag strings
SUMMARY_BODY## 摘要 section, first paragraphText between ## 摘要 and > [!summary]
TAKEAWAYS[]> [!summary] Takeaways bullet listEach - item as a string
MINDMAP_MDContent inside ```markmap code blockRaw markdown text between code fences
OUTLINES[]## 章节导读 table rowsParse `
HIGHLIGHTS[]> [!quote] ~ MM:SS calloutsParse timestamp and quote text → {ts, text}
DETAILS_HTML## 详细论点 through ## 个人思考Convert each ### subsection to HTML <div class="detail-section">
THOUGHTS[]## 个人思考 checkbox itemsEach - [ ] text as a string
TURNS[]> [!note]- 完整转录 contentParse **[MM:SS]** Text → {ts, text} (no speaker)
SHOWNOTES_HTML> [!info]- 节目 Shownotes contentConvert key-value pairs to <dl class="shownotes-grid">
COVER_ZHFirst 2 chars of PODCAST_NAMEFor cover placeholder
COVER_ENEnglish equivalent if available, else omitFor cover placeholder

Step 3: Generate KEYWORDS array

Combine:

  1. All frontmatter tags (excluding generic ones like 播客笔记)
  2. Extract top 10-15 high-frequency nouns/terms from the summary body

Deduplicate and limit to ~25 keywords.

Step 4: Fill the HTML template

Read template.html from the skill directory. Replace all {{PLACEHOLDER}} tokens with extracted data. Write the result to the output .html file.


Template Placeholders

The template file is template.html (same directory as this SKILL.md). All {{TOKEN}} strings are replaced with episode-specific data:

PlaceholderSourceExample value
{{TITLE}}frontmatter title商业小样37 | "意想不到的 AI 股":康宁
{{PODCAST_NAME}}frontmatter author, before ·商业就是这样
{{COVER_ZH}}First 2 chars of PODCAST_NAME商业
{{COVER_ZH_FIRST_CHAR}}First char of PODCAST_NAME商
{{COVER_EN}}English equivalent or empty stringJUST BUSINESS
{{COVER_GRADIENT_START}}From gradient palette#ff7a4e
{{COVER_GRADIENT_END}}From gradient palette#ee4f3a
{{DATE_DISPLAY}}Formatted from frontmatter date30 Mar 2026
{{DURATION_DISPLAY}}From frontmatter duration14m36s
{{PLATFORM}}From frontmatter platformApple Podcasts
{{SUMMARY_BODY}}## 摘要 first paragraph(full text)
{{TAKEAWAYS_HTML}}<li class="takeaway">...</li> items(HTML string)
{{OUTLINES_JSON}}JSON array[{ts:'00:00',text:'...'}]
{{TURNS_JSON}}JSON array[{ts:'00:02',text:'...'}] (no speaker)
{{HIGHLIGHTS_JSON}}JSON array[{ts:'01:55',text:'...'}]
{{KEYWORDS_JSON}}JSON array of strings['康宁','AI',...]
{{MINDMAP_MD}}Raw markmap markdown (escape backticks)(multiline string)
{{HIGHLIGHTS_COUNT}}Number of highlights7
{{SHOWNOTES_CONTENT}}Full shownotes HTML block(meta info + details + thoughts)

Generating SHOWNOTES_CONTENT

Build the HTML from three parts:

  1. Meta info card: <div class="meta-info">...</div> + <h2>{{TITLE}}</h2> + <p>{{description}}</p> + <dl class="shownotes-grid">...</dl> (from shownotes callout key-value pairs)
  2. Detail sections: Each ### subsection under ## 详细论点 → <div class="detail-section"><h3>...</h3><p>...</p><ul>...</ul><div class="tip-box">...</div></div>
  3. Personal thoughts: ## 个人思考 checkboxes → <div class="personal-thoughts">...</div>

Cover Placeholder Rules

  • Use the podcast name's first 2 Chinese characters for cover-zh
  • Use an uppercase English translation/abbreviation for cover-en if available
  • Background gradient: pick from these palettes based on podcast name hash:
    ['#ff7a4e','#ee4f3a'], ['#3b82f6','#1d4ed8'], ['#10b981','#059669'],
    ['#f59e0b','#d97706'], ['#8b5cf6','#6d28d9'], ['#ec4899','#be185d']
  • Apply to .episode-cover background, .mini-cover background, and .mini-play-btn is not affected

Critical Implementation Notes

  1. markmap dark mode text: Must use CSS variable override --markmap-text-color:#ffffff on .mindmap-wrap .markmap in dark theme. Do NOT use fill on SVG text or inline <style> injection — markmap uses foreignObject with HTML divs, not SVG text.

  2. CDN load order: d3 → markmap-lib → markmap-view. All three are required.

  3. Transcript search: Use <mark> with inline style for highlighting. Escape regex special chars in search term.

  4. No speaker labels. Transcript turns render as ts + text only; the .speaker-chip element is not emitted. Upstream link-to-note also omits speaker labels (过往 diarization / shownotes-inference 都不稳定).

  5. The template file (template.html) contains all static CSS, HTML structure, and JS logic — only the {{PLACEHOLDER}} tokens change between episodes.


Quick Reference

Input: URL or .md path
  → (if URL) invoke link-to-note → get .md
  → Parse .md → extract TITLE, PODCAST_NAME, DATE, DURATION, PLATFORM,
                 SUMMARY, TAKEAWAYS, MINDMAP_MD, OUTLINES, HIGHLIGHTS,
                 TURNS (ts+text, no speaker), KEYWORDS, DETAILS, THOUGHTS, SHOWNOTES
  → Fill HTML template (copy static parts from reference)
  → Write to same-dir .html

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Link To Html AI 技能有什么作用?

Use when the user provides a podcast/video/article URL or an existing Obsidian note (.md) and wants a self-contained HTML viewer page generated. Produces a Podwise-inspired single-file HTML with sidebar, episode header, 6 tabs (Summary, Mindmap, Transcript, Keywords, Highlights, Shownotes), dark/light theme, and markmap mindmap rendering.

为什么在 TypingMind 中使用 Link To Html?

因为您只需安装一次,就能搭配任何模型使用。Link To Html 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Link To Html?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/LjyYano/skill-pack/tree/main/skills/link-to-html。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Link To Html?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Link To Html 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Link To Html 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Link To Html AI 技能免费吗?

是的。LjyYano 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇