Long Audio To Obsidian logo

Long Audio To Obsidian

Community
cafe3310
long-audio-to-obsidian

将语音转写项目输出的复杂文件结构整理合并为适合 Obsidian 归档的 Markdown 文档

Overview

Publishercafe3310
Repositorypublic-agent-skills
Skill namelong-audio-to-obsidian
Stars
256
Forks
30
Bundled files
1
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by cafe3310 on GitHub. Read the source before you install it.

Installation

Install the Long Audio To Obsidian AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cafe3310/public-agent-skills/tree/main/skills/long-audio-to-obsidian
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cafe3310/public-agent-skills.git /tmp/public-agent-skills
mkdir -p .claude/skills
cp -r /tmp/public-agent-skills/skills/long-audio-to-obsidian .claude/skills/long-audio-to-obsidian
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Long Audio To Obsidian in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Long Audio To Obsidian on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Long Audio To Obsidian is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Long Audio to Obsidian Archiver

此技能将散乱的语音转写项目文件整理成结构清晰的 Markdown 文档,便于在 Obsidian 等知识库中归档。

它采用 "Agent 规划 + 脚本执行" 的模式:

  1. Agent (你):负责理解目录结构、识别文件类型、对分段文件进行逻辑排序(例如按行号 1-200, 201-400),并生成合并计划。
  2. Script:负责根据你的计划,机械地读取文件并生成 Markdown。

使用场景

当用户要求将一个包含多个原始音频、数十个转写分段、以及各种说明文档的目录“整理归档”时使用。

工作流 (Workflow)

1. 调查与分析 (Survey & Analyze)

首先,使用 list_directory (必要时配合 glob) 扫描目标项目目录。 你需要回答以下问题:

  • 哪些是原始录音文本?(通常在 1-原始文件 或类似目录)
  • 哪些是最终输出的分段脚本?(通常在 5-最终输出,文件名包含行号如 _1-200)
    • 关键任务:你需要根据文件名中的数字对它们进行正确排序。
  • 哪些是项目元数据?(日志、术语表、背景要求等)
  • 哪些是衍生知识/问答?(5-最终输出 中非分段的 Markdown 文件)

2. 生成合并配置 (Generate Configuration)

基于你的分析,构建一个 JSON 配置文件。不要直接输出给用户,而是准备写入临时文件。

JSON 结构定义:

json
{
  "output_dir": "目标项目路径/obsidian_archive",
  "tasks": [
    {
      "filename": "1-原始录音汇总.md",
      "title": "原始录音汇总",
      "sections": [
        {
          "title": "文件1.txt",
          "path": "绝对路径或相对路径/文件1.txt",
          "syntax": "text"
        }
      ]
    },
    {
      "filename": "2-最终输出脚本汇总.md",
      "title": "最终输出脚本汇总",
      "sections": [
        {
          "title": "Part 1 (1-200)",
          "path": "路径/output_1-200.txt",
          "syntax": "text"
        },
        {
          "title": "Part 2 (201-400)",
          "path": "路径/output_201-400.txt",
          "syntax": "text"
        }
        // Agent 必须确保这里的顺序是正确的!
      ]
    }
    // ... 继续为“整理要求汇总”和“知识整理汇总”创建任务
  ]
}

3. 执行合并 (Execute)

  1. 使用 write_file 将 JSON 配置保存为临时文件,例如 merge_plan.json。

  2. 调用脚本执行合并:

    bash
    python3 .gemini/skills/long-audio-to-obsidian/scripts/doc_merger.py merge_plan.json

    (注意:请根据实际安装位置调整脚本路径)

  3. 检查脚本输出,确认生成成功。

  4. 删除临时文件 merge_plan.json。

4. 优化命名与生成索引 (Rename & Index)

脚本生成的只是标准文件名的中间产物。为了方便 Obsidian 使用,你需要进行最后一步的人工智能优化:

  1. 确定项目标题:根据原始目录名或核心文件名,提取一个清晰的项目标题(例如 2024-01-01 会议转写 - 项目 A)。
  2. 重命名文件:使用 run_shell_command 的 mv 命令,将 obsidian_archive 中的标准文件重命名为带前缀的格式。
    • 1-原始录音汇总.md -> {标题} 1 原始录音汇总.md
    • 2-最终输出脚本汇总.md -> {标题} 2 最终输出脚本汇总.md
    • ...以此类推。
  3. 生成索引页:
    • 创建一个名为 {标题}.md 的新文件。
    • 内容应包含指向上述所有文件的 Obsidian WikiLinks ([[文件名]])。
    • 如果有关联的外部产品文档(未合并进来的),也可以在此处添加链接。

索引页内容示例:

markdown
相关文档:

[[2024-01-01 会议转写 - 项目 A 1 原始录音汇总]]

[[2024-01-01 会议转写 - 项目 A 2 最终输出脚本汇总]]

...

归档标准 (Archiving Standards)

请按照以下四个维度组织输出文件(对应 JSON 中的 4 个 task):

  1. 原始录音汇总:包含所有原始录音文本。
  2. 最终输出脚本汇总:包含所有经过校对、合并后的分段文本。顺序至关重要。
  3. 整理要求与日志汇总:
    • 工作日志 (0-工作日志.md)
    • 校对术语表 (3-校对和术语表.md)
    • 分段主题 (4-分段主题.md)
    • 所有背景要求文件 (2-要求和信息/*)
  4. 知识整理汇总:
    • 包含所有衍生生成的知识文件(如 问题和回答-xxx.md)。

注意事项

  • 路径处理:JSON 中的 path 推荐使用绝对路径,或者相对于执行 doc_merger.py 时的相对路径。
  • 容错:如果某个预期的目录不存在(例如没有“知识整理”文件),则不要在 JSON 中包含对应的 task,或者创建一个空的 task。
  • 排序:脚本不会自动排序。必须由 Agent 在生成 JSON 时完成所有文件的逻辑排序。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Long Audio To Obsidian AI skill do?

将语音转写项目输出的复杂文件结构整理合并为适合 Obsidian 归档的 Markdown 文档

Why use Long Audio To Obsidian on TypingMind?

Because you install it once and use it with any model. Long Audio To Obsidian is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Long Audio To Obsidian in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cafe3310/public-agent-skills/tree/main/skills/long-audio-to-obsidian. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Long Audio To Obsidian?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Long Audio To Obsidian?

As many as you like. As long as a model supports skills, you can use Long Audio To Obsidian with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Long Audio To Obsidian AI skill free?

Yes. It is published on GitHub by cafe3310 under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇