freezonex/tier0-sdk/tier0-sdk-files
Claude Code and agent skill by freezonex/tier0-sdk
- community
Checking that the SKILL.md file is still in the repository.
Tier0 SDK managed file and attachment operations for TypeScript/JavaScript. Before using this Skill, first read tier0-sdk for shared SDK version, configuration, runtime, and layering rules. Use whenever a user needs an upload, attachment, avatar, import, persisted file, large-file or multipart upload, progress, resume, access URL, download, or deletion feature. Always use uploadFile as the upload entry point: the SDK automatically switches files larger than 100 MB to multipart upload, and application code must not bypass that routing. Default to @tier0/sdk/files managed S3/RustFS storage instead of local application storage, database blobs, direct object-storage clients, or app-authored multipart logic.
Install
npx vskill@latest install freezonex/tier0-sdk/tier0-sdk-filesSKILL.md
Tier0 SDK — Files
Before starting, read the root SDK Skill at [`../SKILL.md`](../SKILL.md).
Required Flow
When a user asks for an upload-and-save feature, use platform-managed object storage through @tier0/sdk/files by default. Do not persist uploaded files on the app server's local filesystem, in the repository or public/ directory, or as database blobs. Local temporary files are allowed only for short-lived processing before upload and must not become the source of truth.
- Always call
uploadFilefrom@tier0/sdk/files. Do not implement file slicing or call multipart endpoints from application code. - Persist the returned
filePathin business data; do not persist an expiring presigned URL. - Use
getFileUrlfor access/display ordownloadFilefor content/download. - Use
deleteFilewhen the managed object must be removed.
Upload Selection
| File or product requirement | Application behavior | SDK behavior | |
|---|---|---|---|
| File size ≤ 100 MB | Call uploadFile(file, options) | Use the standard upload path | |
| File size > 100 MB | Call the same uploadFile(file, options) | Automatically switch to multipart upload; this routing cannot be disabled | |
| Progress, concurrency control, or resumable upload at any size | Pass options.multipart | Use multipart upload with the requested controls |
The 100 MB threshold selects the transfer method; it is not the product's single-file limit. The backend separately enforces the current plan's file-size limit and storage quota.
Responsibility Boundary
| Component | Responsibility | |
|---|---|---|
| SDK | Select the upload method, slice files, upload parts concurrently, retry failures, collect ETags, complete or abort the upload, and expose progress/resume APIs | |
| Application | Provide file selection and UI; optionally persist multipartSession when cross-session resume is required | |
| Backend | Authorize requests, issue upload URLs, enforce file-size and storage quotas, and complete or abort multipart sessions |
Do not add AWS SDK/RustFS clients, direct bucket endpoints, permanent object-storage credentials, or application-authored multipart orchestration.
References
| Task | Read | |
|---|---|---|
| Upload and save a file | `references/upload.md` | |
| Configure multipart progress, concurrency, or resume | `references/multipart.md` | |
| Get access URL | `references/url.md` | |
| Download | `references/download.md` | |
| Delete | `references/delete.md` |
Final Checklist
- File operations use
@tier0/sdk/files. - Persistent uploads are not stored on the app server's local filesystem, in
public/, or as database blobs. - Business records store
filePath. - Presigned URLs and permanent storage credentials are not persisted.
- Application code calls
uploadFile; it does not manually split files or call multipart endpoints.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tier0-sdk/tier0-sdk-files/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/freezonex/tier0-sdk/tier0-sdk-files)