AgentSkillsCN

fetch-public-notes

从notes.dsebastien.net公共笔记网站提取内容。在从Obsidian Publish站点获取MoC、笔记或其他内容时使用。

SKILL.md
--- frontmatter
name: fetch-public-notes
description: Extract content from the public notes website at notes.dsebastien.net. Use when fetching MoCs, notes, or any content from the Obsidian Publish site.
allowed-tools: WebFetch, Bash, Read, Grep, Glob

Fetching Content from Public Notes

Site: https://notes.dsebastien.net/ (Obsidian Publish)

Important: Dynamic Loading

Direct WebFetch on page URLs returns only HTML boilerplate. Must use Obsidian Publish API.

API URL Format

code
https://publish-01.obsidian.md/access/91ab140857992a6480c9352ca75acb70/[URL-encoded-path].md

URL encoding: spaces→%20, (%28, )%29

Common Note Locations

FolderPath
Literature notes30 Areas/32 Literature notes/32.02 Content/
Expressions30 Areas/32 Literature notes/32.04 Expressions/
Quotes30 Areas/32 Literature notes/32.05 Quotes/
Permanent notes30 Areas/33 Permanent notes/33.02 Content/
MoCs30 Areas/34 Maps/34.01 MoCs/

Fetching via API

code
WebFetch:
  url: https://publish-01.obsidian.md/access/91ab140857992a6480c9352ca75acb70/30%20Areas/34%20Maps/34.01%20MoCs/Positivity%20(MoC).md
  prompt: List all the note links/concepts mentioned.

Local Repository (Faster)

Location: $OBSIDIAN_VAULT_LOCATION

bash
# Find note by name
find "$OBSIDIAN_VAULT_LOCATION/30 Areas" -type f -name "*Note Name*" 2>/dev/null | grep -v ".smart-env"

# Read directly
Read: $OBSIDIAN_VAULT_LOCATION/30 Areas/33 Permanent notes/33.02 Content/Note Name.md

URL Construction for relatedNotes

For concept cards, convert file path to public URL:

code
File: $OBSIDIAN_VAULT_LOCATION/30 Areas/33 Permanent notes/33.02 Content/Note Name.md
URL:  https://notes.dsebastien.net/30+Areas/33+Permanent+notes/33.02+Content/Note+Name

Rules: spaces→+, remove .md, path starts 30+Areas/...

Quick Reference

TaskMethod
Fetch onlineWebFetch + publish-01.obsidian.md API
Read localRead tool + /home/dsebastien/notesSeb/
Find notefind command in local repo
Public URLSpaces→+, remove .md

Site ID (fixed): 91ab140857992a6480c9352ca75acb70