Download Attachment logo

Download Attachment

CommunityPopular
heyitsnoah
download-attachment

Download files from URLs to the Obsidian attachments folder and organize them with descriptive names. Use when the user provides URLs to download, asks to save files from the web, or wants to add web content as attachments.

Overview

Publisherheyitsnoah
Repositoryclaudesidian
Skill namedownload-attachment
Stars
2.6K
Forks
192
Bundled files
Instructions only
LicenseMIT
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the Download Attachment 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/heyitsnoah/claudesidian/tree/main/.agents/skills/download-attachment
  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/heyitsnoah/claudesidian.git /tmp/claudesidian
mkdir -p .claude/skills
cp -r /tmp/claudesidian/.agents/skills/download-attachment .claude/skills/download-attachment
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Download Attachment 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 Download Attachment 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 Download Attachment 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.

download-attachment

Download files from URLs to attachments folder and organize them with descriptive names.

Usage

/download-attachment <url1> [url2] [url3...]

Examples

/download-attachment https://example.com/document.pdf
/download-attachment https://site.com/image.png https://site.com/report.pdf

Implementation

You are tasked with downloading files from URLs and organizing them in the Obsidian vault attachments folder.

Step 1: Parse and Validate URLs

Extract the URL(s) from the user's input. Handle multiple URLs if provided.

  • Validate URL scheme: Only allow http:// or https:// URLs
  • Reject invalid URLs: file://, ftp://, or malformed URLs
  • Example validation:
bash
if [[ ! "$url" =~ ^https?:// ]]; then
  echo "Error: Only HTTP/HTTPS URLs are allowed"
  exit 1
fi

Step 2: Download Files

For each URL:

bash
# Sanitize filename to prevent path traversal
# Remove ../ and other dangerous characters
filename=$(basename "$url" | sed 's/[^a-zA-Z0-9._-]/_/g')

# Use wget or curl to download with timeout
wget --timeout=30 -O "05_Attachments/$filename" "$url"
# or
curl --max-time 30 -L "$url" -o "05_Attachments/$filename"

Step 3: Verify Downloads

Check that files were downloaded successfully:

bash
ls -la "05_Attachments/"

Step 4: Organize Files

After downloading, run the organize-attachments command to rename files with descriptive names:

For PDFs:

  • Extract text with pdftotext
  • Analyze content for meaningful title

For Images:

  • Use mcp__gemini-vision__analyze_image or mcp__gemini-vision__analyze_multiple
  • Generate descriptive filename based on content

Step 5: Move to Organized

Move renamed files to 05_Attachments/Organized/ with descriptive names

Step 6: Update Index

Add entries to 05_Attachments/00_Index.md

Step 7: Commit Changes

bash
git add -A
git commit -m "Download and organize attachments from URLs"
git push

Important Notes

  1. File Naming:

    • Initial download: Use URL filename or generate from URL
    • After analysis: Rename with descriptive title
  2. Supported Types:

    • Images: .png, .jpg, .jpeg, .gif, .webp
    • Documents: .pdf, .doc, .docx
    • Text: .txt, .md
    • Data: .csv, .xlsx
  3. Error Handling:

    • Check if URL is accessible
    • Verify file downloaded correctly
    • Handle download failures gracefully
  4. Organization:

    • Downloaded files go to 05_Attachments/
    • After renaming, move to 05_Attachments/Organized/
    • Update links across vault if needed

Workflow

  1. Download file(s) from provided URL(s)
  2. Identify file type and analyze content
  3. Generate descriptive filename
  4. Move to Organized folder
  5. Update index and references
  6. Commit and push changes

Tips

  • For multiple URLs, process them in batch for efficiency
  • Use Gemini Vision for batch image analysis (up to 3 at once)
  • Extract meaningful context from PDFs before renaming
  • Preserve original file extensions
  • Keep filenames concise but descriptive (max 60 chars)

Frequently asked questions

What does the Download Attachment AI skill do?

Download files from URLs to the Obsidian attachments folder and organize them with descriptive names. Use when the user provides URLs to download, asks to save files from the web, or wants to add web content as attachments.

Why use Download Attachment on TypingMind?

Because you install it once and use it with any model. Download Attachment 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 Download Attachment in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/heyitsnoah/claudesidian/tree/main/.agents/skills/download-attachment. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Download Attachment?

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 Download Attachment?

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

Is the Download Attachment AI skill free?

Yes. It is published on GitHub by heyitsnoah under the MIT 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 👇