pratos/clanker-setup/obsidian-link-archiver
Claude Code and agent skill by pratos/clanker-setup
- community
Checking that the SKILL.md file is still in the repository.
Archives all external links from an Obsidian markdown file by fetching their content and saving locally as markdown. Use when you need to save linked content for offline access or backup.
Install
npx vskill@latest install pratos/clanker-setup/obsidian-link-archiverSKILL.md
The same SKILL.md was published earlier as pratos/clanker-setup/obsidian-link-archiver.
Obsidian Link Archiver
Activation
When this skill is triggered, ALWAYS display this banner first:
When to Use
- "archive all links in this note"
- "save linked content locally"
- "download all URLs from this markdown file"
- "backup external links in my obsidian note"
- "fetch and save all links from [file.md]"
Process
Step 1: Extract Links from Markdown File
Read the specified markdown file and extract all external links:
Link types to extract:
- Markdown links:
[Link Text](https://example.com) - Bare URLs:
https://example.com - Reference links:
[text][ref]with[ref]: https://...
Skip these:
- Internal Obsidian links:
[[Note Name]] - Anchor links:
#section - Local file links:
file://... - Image links (optional, based on user preference)
Step 2: Fetch Content via markdown.new
For each URL, fetch content as clean markdown:
Benefits of markdown.new:
- Converts HTML to clean markdown
- Strips ads, navigation, boilerplate
- Preserves content structure (headers, lists, code blocks)
- 80% fewer tokens than raw HTML
Step 3: Save Locally
Save each fetched page in the same directory as the source file:
Filename format:
- Use page title from content (first
# headingor<title>) - Sanitize: remove special chars, limit length
- Add
.mdextension - Handle duplicates:
title.md,title-2.md, etc.
Step 4: Update Source File (Optional)
Optionally update the original file to reference local copies:
Example Workflow
Given a file notes/research.md:
Run the archiver:
Result:
Complete Script
Parameters
| Parameter | Description | Default | |
|---|---|---|---|
| Source file | Path to the Obsidian markdown file | Required | |
| Output directory | Where to save archived content | ./archived-links/ | |
| Include images | Also download linked images | false | |
| Update source | Update original file with local links | false | |
| Max depth | Recursive link following depth | 1 (no recursion) |
Error Handling
- Timeout: Skip URLs that take >30s to fetch
- Failed fetch: Log warning, continue with next URL
- Duplicate title: Append number suffix (
-2,-3, etc.) - Invalid URL: Skip non-http(s) URLs
- Empty content: Skip and log warning
Limitations
- Only fetches first level of links (no recursion)
- Some sites may block
markdown.new- falls back to direct curl - Very large pages truncated to 100KB
- Rate limited to ~2 requests/second to be respectful
Integration with Obsidian
The archived files include YAML frontmatter compatible with Obsidian:
This allows you to:
- Track where content came from
- Know when it was archived
- Use Obsidian's backlinks to find references
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/obsidian-link-archiver/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pratos/clanker-setup/obsidian-link-archiver)