stacks-storage

Manage file storage in Stacks with local and S3 disk adapters.

622|17|Updated Apr 26, 2022
One-click install
npx skills add https://github.com/stacksjs/stacks --skill stacks-storage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacks-storage
Source: https://github.com/stacksjs/stacks/tree/main/.claude/skills/stacks-storage
Command: npx skills add https://github.com/stacksjs/stacks --skill stacks-storage

SYSTEM DOCUMENTATION & REQUIREMENTS

Use when working with file storage in Stacks — the Storage facade (put/get/delete/copy/move/list), StorageAdapter interface, local and S3 disk configurations, file uploads (UploadedFile class), file operations (read/write/copy/move/delete/hash/glob/zip), visibility management, checksums, MIME types, temporary URLs, or filesystem configuration. Covers @stacksjs/storage and config/filesystems.ts.

Frequently Asked Questions about stacks-storage

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

FAQPage Schema
How do I configure local and S3 file storage disks in a Stacks application?

Handle file uploads in Stacks using the UploadedFile class, which integrates with the Storage facade to manage file visibility, MIME types, and checksums automatically.

Can I generate temporary URLs and manage file visibility using the Stacks Storage facade?

Generate temporary URLs and manage file visibility using the Stacks Storage facade, which provides a unified interface for read, write, copy, move, and delete operations across local and S3 adapters.

What is the best way to perform file operations like zip, glob, and hash in Stacks?

Perform file operations like zip, glob, and hash in Stacks by calling the corresponding methods on the Storage facade, leveraging underlying adapters for consistent filesystem workflows.

Does the Stacks Storage facade support switching between multiple filesystem adapters?

The Stacks Storage facade supports switching between multiple filesystem adapters by implementing a StorageAdapter interface, enabling dynamic transitions between local and S3 disk configurations.