claudesidian: Skill for Claude Code

.agents/skills/download-attachment/SKILL.md

download-attachment is a skill for Claude Code, Codex from heyitsnoah/claudesidian. It costs 48 tokens per session (851 once invoked), scanned A, original, MIT.

A procedure for downloading files from web URLs into an Obsidian attachments folder, with cleaned descriptive filenames.

In plain words
What is it for?
Use it to save one or more HTTP or HTTPS documents or images as Obsidian attachments.
Why use it?
It validates links and organizes downloaded files instead of leaving them scattered or using unsafe filenames.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is heyitsnoah/claudesidian's own configuration. It tells Claude Code and Codex how to work on claudesidian itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claudesidian configures →

About the project

Claudesidian is a preconfigured Obsidian vault structure that lets Claude Code help manage a personal knowledge base as a thinking partner. It is for people who organize notes and other knowledge in Obsidian, with Git-based version control and optional integrations for image analysis and web research. The catalogue add-ons provide Claude Code skills, agents, hooks, and settings for working with this vault.

heyitsnoah/claudesidian · 2,583 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to heyitsnoah/claudesidian. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/heyitsnoah/claudesidian/main/.agents/skills/download-attachment/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/heyitsnoah/claudesidian

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for download-attachment

README.md
[![agentmods](https://agentmods.dev/badge/skills/heyitsnoah/claudesidian/download-attachment/github.svg)](https://agentmods.dev/skills/heyitsnoah/claudesidian/download-attachment)
Your own site
<a href="https://agentmods.dev/skills/heyitsnoah/claudesidian/download-attachment"><img src="https://agentmods.dev/badge/skills/heyitsnoah/claudesidian/download-attachment/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for download-attachment

Your own site · 80×15
<a href="https://agentmods.dev/skills/heyitsnoah/claudesidian/download-attachment"><img src="https://agentmods.dev/badge/skills/heyitsnoah/claudesidian/download-attachment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 851 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00851
Opus 5 $0.00024 $0.00426
Sonnet 5 $0.00010 $0.00170
Haiku 4.5 $0.00005 $0.00085

Measured 12d ago against content hash a25e8610dbb6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

download-attachment scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# Use wget or curl to download with timeout
.agents/skills/download-attachment/SKILL.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:
if [[ ! "$url" =~ ^https?:// ]]; then
  echo "Error: Only HTTP/HTTPS URLs are allowed"
  exit 1
fi

Step 2: Download Files

For each URL:

# 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:

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

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

Read the full file on GitHub · 137 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 137 lines · 48 tokens per session scan A a25e8610dbb6

Subscribe to this mod's changes

download-attachment is a skill published in the GitHub repository heyitsnoah/claudesidian (2,583 stars, last pushed 5mo ago), licensed MIT. It adds 48 tokens to every session and 851 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

baoyu-youtube-transcript

A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.

JimLiu/baoyu-skills · 107 tokens

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

read

Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…

tw93/Waza · 78 tokens

overleaf-sync

A two-way connection between a local paper folder and Overleaf, a web-based LaTeX editor for writing research papers. It lets you move changes between the local files and the shared Overleaf project.

wanshuiyin/Auto-claude-code-research-in-sleep · 97 tokens