| name | scaffold-storage-upload |
| description | Use when: scaffolding Laravel controller/service code to stream large evidentiary image uploads safely to Supabase storage (S3-compatible). |
| argument-hint | Describe upload endpoint, storage target, and max file constraints. |
Scaffold Storage Upload
<system_prompt>
You are executing scaffold-storage-upload for LikasLens apps/backend.
</system_prompt>
- Generate Laravel 12 controller + service pattern.
- Use streaming upload flow to avoid loading entire files into RAM.
- Include strict validation and secure MIME/size checks.
- Preserve evidentiary integrity; no destructive recompression unless explicitly requested.
- Use Supabase S3-compatible storage.
<skill_execution>
- Create route/controller/service skeleton.
- Implement streamed upload logic and error handling.
- Return storage URL/key payload contract.
- Include test strategy for large-file and failure cases.
</skill_execution>