Guides secure file upload handling: magic-byte verification, size caps, UUID-based storage names, storage outside web root, forced download headers, and tenant isolation. Use when building upload endpoints or avatar/document features.
An upload endpoint hands an attacker a way to place chosen bytes on your infrastructure, and every naive handler treats those bytes too generously: it trusts the declared type, writes under the declared name, and stores the file where the web server will happily execute it. Safe uploads verify what the bytes actually are, cap what they can consume, and store them where nothing runs.
filetype, or Apache
Tika, then check that type against an allowlist of formats you actually
support.client_max_body_size 10m in nginx) and enforce a matching one in the
app so a streamed upload cannot fill the disk. Reject over-limit with 413
instead of buffering to find out.../../etc/passwd or a null byte never reaches
a filesystem path.noexec and serve
downloads through a handler, not a static path.Content-Type from your verified type, add
Content-Disposition: attachment, and set
X-Content-Type-Options: nosniff so an HTML or SVG payload renders as a
download rather than executing in the victim's session..jpg get rejected at the
magic-byte check rather than stored?This is about accepting and storing bytes safely, not scanning them for malware, which needs a dedicated engine like ClamAV and a quarantine flow. Image resizing and document parsing pull in libraries with their own vulnerabilities: run those in a sandbox and keep them patched. Defer the authorization model for who may upload to the app's broader access control.
What SKILL.md sets; muted values are Claude Code's defaults
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job