Obsidian-Export-Skill.md

作者 DGApex已验证

Obsidian Export turns your local Obsidian vault into a self-contained, interactive HTML knowledge map — driven by an AI agent that understands your intent, selects the right notes, and runs the export for you.

2
Stars
0
Forks
Python
语言
2026/8/24
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/DGApex/Obsidian-Export-Skill.md

快速入门

使用 Obsidian-Export-Skill.md 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Obsidian Export 🚀

Tell your AI agent which notes to export. It handles the rest.

License: MIT Python: 3.8+ Obsidian: Compatible

Obsidian Export turns your local Obsidian vault into a self-contained, interactive HTML knowledge map — driven by an AI agent that understands your intent, selects the right notes, and runs the export for you.

You don't touch the command line. You just say what you want.

Obsidian Export Demo


🤖 How It Works

This repo is built around two components:

ComponentRole
SKILL.mdTells the AI agent what this tool does, how to use it, and what questions to ask
src/obsidian_to_html.pyDeterministic Python script that does the actual export

The AI is the interface. You describe what you want in natural language — a project, a topic, a set of notes — and the agent:

  1. Reads SKILL.md to understand the tool
  2. Asks you the right clarifying questions (scope, depth, exclusions)
  3. Constructs and runs the export command
  4. Reports back with the result: how many notes, how many connections, where the file is

The script is the engine. The agent is the driver.


🌟 Why This Approach?

Obsidian vaults are personal and messy. No two are structured the same way. A static CLI tool would require you to know the exact path, the right depth, which files to exclude — every time.

An AI agent handles that translation layer:

  • "Export everything about the GUS project" → agent finds Projects/GUS/, sets --isolate, runs it
  • "Share my research on AI frameworks" → agent locates the right folder, adjusts depth, excludes index notes
  • "Make a portable version of these notes for a client" → agent adds --offline, sets a clean title

✨ Output Features

The generated HTML is self-contained and needs no server or hosting:

  • 🕸️ D3.js Force Graph — interactive physics-based visualization of note connections
  • 🌓 Obsidian Dark Aesthetic — polished UI matching the Obsidian dark theme
  • 🔍 Global Search — find notes and highlight matches across the graph and reader panel
  • 🔗 Wikilink Navigation[[wikilinks]] are clickable and navigate within the file
  • 🎨 Folder Color-Coding — nodes colored automatically by top-level folder
  • 📦 Fully Offline — with --offline, no external dependencies at render time

🚀 Quick Start

1. Install the script dependencies

pip install -r requirements.txt

Both libraries (mistune, PyYAML) are optional — the script falls back to standard Python libraries if they're not available. Installing them gives better Markdown rendering.

2. Load the skill into your AI agent

Copy SKILL.md into your agent's context, or reference it directly if your agent supports file reading.

3. Ask for an export

"Export everything related to my X project."
"Share my Research/AI folder as a portable HTML."
"Generate a knowledge map of my Proyects/App notes, depth 3."

The agent will ask any clarifying questions it needs, then run the export and tell you where the file is.


🧪 Running Tests

pip install -r requirements-dev.txt
pytest tests/ -v

🛡️ Safety

[!CAUTION] This tool is read-only — it never modifies your .md files. Even so, always keep a backup of your vault before running external scripts.


🔧 CLI Reference

For debugging or direct use without an agent:

python src/obsidian_to_html.py \
  --root "/path/to/vault/ProjectA" \
  --vault "/path/to/vault" \
  --title "Project A" \
  --offline
ArgumentDescriptionDefault
--rootStarting note or folder(Required)
--vaultRoot of your vault to resolve linksParent of --root
--depthTraversal depth (0=unlimited)2
--outputDestination HTML fileobsidian_export.html
--titleCustom title shown in the HTML headerFilename/folder name
--excludeComma-separated substrings to skip (e.g. Index,Home)""
--offlineEmbed D3.js for full offline supportFalse
--isolateOnly export notes within the root pathFalse

Tip: Use --isolate when exporting a single project to prevent shared notes from pulling in unrelated content. Use --exclude to drop index or hub notes that would otherwise dominate the graph.


🎨 Customization

Node colors are assigned by the top-level folder of each note relative to the vault root. Edit FOLDER_COLORS in src/obsidian_to_html.py to match your structure:

FOLDER_COLORS = {
    'work':      '#4f8ef7',
    'knowledge': '#34d399',
    'research':  '#fb923c',
    # Add your own top-level folder names here (lowercase)
}

A note at Research/AI/note.md gets the color for 'research'. Notes in unmapped folders fall back to the default purple (#a78bfa). Subfolders do not affect the color.


🌐 Community & Support

Share your exported graphs:


📄 License

Distributed under the MIT License. See LICENSE for more information.

常见问题

What is Obsidian-Export-Skill.md?

Obsidian-Export-Skill.md is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by DGApex. Obsidian Export turns your local Obsidian vault into a self-contained, interactive HTML knowledge map — driven by an AI agent that understands your intent, selects the right notes, and runs the export for you. It has 2 GitHub stars.

Is Obsidian-Export-Skill.md safe to use?

Yes. Obsidian-Export-Skill.md passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install Obsidian-Export-Skill.md?

Clone the repository with "git clone https://github.com/DGApex/Obsidian-Export-Skill.md" and add it to your Claude Code skills directory (see the Installation section above). Obsidian-Export-Skill.md ships a SKILL.md manifest, so compatible agents can discover and load it automatically.

What programming language is Obsidian-Export-Skill.md written in?

Obsidian-Export-Skill.md is primarily written in Python. It is open-source under DGApex on GitHub, so you can review or fork the full source.

Are there alternatives to Obsidian-Export-Skill.md?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh Obsidian-Export-Skill.md against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情