File Download

Download files from authenticated app paths, in-memory content, or external URLs.

5|Updated May 6, 2026
One-click install
npx skills add https://github.com/binary16labs/prime-silo --skill file-download-binary16labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: File Download
Source: https://github.com/binary16labs/prime-silo/tree/main/app/L0/_all/mod/_core/admin/ext/skills/file-download
Command: npx skills add https://github.com/binary16labs/prime-silo --skill file-download-binary16labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of getting users the correct file download when the content is stored inside the app, generated dynamically in memory, or hosted externally—without breaking authentication or browser security constraints.

Core Features & Use Cases

  • Authenticated downloads from app filesystem paths: Serve files from the user’s layer paths (including ~/ and explicit /L0/, /L1/, /L2/ routes) while enforcing read permissions and returning 401/403 appropriately.
  • Runtime-generated downloads (in-memory content): Create Blob-based downloads for text, CSV, JSON, and binary data like PDFs directly from generated content.
  • External URL downloads via server proxy: Fetch external files through the server proxy to avoid CORS issues, then stream the response into a browser download.

Quick Start

Use the file-download skill to let the browser download report data as a file by providing the app layer path, in-memory content, or an external URL along with the desired download filename.

Frequently Asked Questions about File Download

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I download a file from an authenticated app filesystem path?

You can download a file from an authenticated app filesystem path by using session-aware URL construction that enforces read permissions for user layer paths like `~/` and `/L0/`, returning 401/403 errors appropriately if access is denied.

What is the best way to export runtime-generated in-memory content like JSON or CSV?

The best way to export runtime-generated in-memory content like JSON or CSV is by creating Blob-based object URLs. This allows the browser to directly download dynamically generated text, CSV, JSON, and binary data like PDFs.

How do I handle CORS issues when downloading files from an external URL?

To handle CORS issues when downloading files from an external URL, you can use a server-proxied fetch to retrieve the remote resource and stream the response directly into a browser download, bypassing external access-control restrictions.

Can I export admin workflow artifacts like CSV and JSON dumps from user or group layers?

Yes, you can export admin workflow artifacts like CSV and JSON dumps from user or group layers. The skill is designed for operators to export generated reports and documents stored within these authenticated app filesystem routes.

Why does my external file download fail with browser security constraints?

Your external file download fails with browser security constraints due to CORS restrictions. The skill resolves this by fetching external files through a server proxy first, then streaming the response into a browser download.