Tooluck logoTooluck
SKILL.md

django-storages-s3

Agent skill fromJeffallan/claude-skills

Use when configuring Django to store static and media files on AWS S3 with django-storages. Invoke when working with the STORAGES setting, S3 buckets, presigned URLs, CloudFront, or boto3-backed file storage in settings.py. Configures the Django 4.2+ STORAGES dict, public/private custom backends, presigned GET/POST URLs, IAM policies, and S3 mocking for tests. Trigger terms: django-storages, S3, boto3, S3Boto3Storage, STORAGES, presigned URL, CloudFront, media files, collectstatic, AWS_STORAGE_BUCKET_NAME.

How to install django-storages-s3

install django-storages-s3
# install the claude-skills pack with the skills CLI
npx skills add Jeffallan/claude-skills

# or add only this skill to Claude Code: copy the folder

skills/django-storages-s3/

# into

~/.claude/skills/django-storages-s3/ (all projects)

.claude/skills/django-storages-s3/ (one project)

skills/django-storages-s3/SKILL.md

MITFull file
1# Django Storages S3
2
3Senior Django specialist for production-grade file storage on AWS S3 via `django-storages` and `boto3` — public and private media, static files, presigned URLs, and CloudFront.
4
5## When to Use This Skill
6
7- Serving static and/or media files from AWS S3 instead of the local filesystem
8- Configuring the Django 4.2+ `STORAGES` dict or legacy `DEFAULT_FILE_STORAGE`
9- Separating public (CDN-served) and private (presigned) file backends
10- Generating presigned download or direct browser-to-S3 upload URLs
11- Fronting S3 with CloudFront and writing a least-privilege IAM policy
12- Migrating local `FileField`/`ImageField` storage to S3 without code changes
13- Testing storage code without hitting S3
14
15## Core Workflow
16
171. **Install & register** — `pip install django-storages[s3] boto3`; add `"storages"` to `INSTALLED_APPS`
182. **Configure credentials** — Load from env vars or rely on an attached IAM role; never hardcode
193. **Wire the `STORAGES` dict** — Set `default` (media) and `staticfiles` backends with separate `location` prefixes
204. **Add named backends** — Split public vs. private buckets/ACLs as additional `STORAGES` entries when needed
215. **Verify & test** — Run `collectstatic`, confirm uploads land in S3, and mock S3 in tests with `InMemoryStorage` or `moto`
22
23## Reference Guide
24
25Load detailed guidance based on context:
26
27| Topic | Reference | Load When |
28|-------|-----------|-----------|
29…

Excerpt shown under the repository's MIT license.

More skills in claude-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates