agentleFS
popup-studio-aipopup-studio-ai/bkit-claude-code/skills/bkend-storage/SKILL.md

bkend-storage

Skill605 starsChanged 3 months agoApache-2.0View on GitHub

bkend.ai file storage — upload (presigned URL), download (CDN), visibility levels, buckets. Triggers: bkend file, bkend upload, bkend download, bkend storage, bkend presigned URL

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    PUT method with file binary

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

bkend.ai Storage Guide

Upload Methods

MethodUse CaseProcess
SingleNormal filesPresigned URL -> PUT upload -> Register metadata
MultipleMultiple filesRepeat single upload
MultipartLarge filesInitialize -> Part URLs -> Complete

Presigned URL

  • Validity: 15 minutes
  • PUT method with file binary
  • Content-Type header required

File Visibility (4 levels)

LevelAccessURL Type
publicAnyoneCDN URL (no expiry)
privateOwner onlyPresigned URL (1 hour)
protectedAuthenticated usersPresigned URL (1 hour)
sharedSpecified targetsPresigned URL (1 hour)

Size Limits

CategoryMax Size
Images10 MB
Videos100 MB
Documents20 MB

Storage Categories

images, documents, media, attachments

MCP Storage Workflow

bkend MCP does NOT have dedicated storage tools. Use this workflow:

  1. Search docs: search_docs with query "file upload presigned url"
  2. Get examples: search_docs with query "file upload code examples"
  3. Generate code: AI generates REST API code for file operations

Searchable Storage Docs

Doc IDContent
7_code_examples_dataCRUD + file upload code examples

REST Storage API

MethodEndpointDescription
POST/v1/files/presigned-urlGenerate presigned URL
POST/v1/filesRegister metadata (complete upload)
GET/v1/filesFile list
GET/v1/files/:fileIdFile detail
PATCH/v1/files/:fileIdUpdate metadata
DELETE/v1/files/:fileIdDelete file
POST/v1/files/:fileId/download-urlGenerate download URL

Multipart Upload (Large Files)

MethodEndpointDescription
POST/v1/files/multipart/initInitialize multipart upload
POST/v1/files/multipart/presigned-urlGet part upload URL
POST/v1/files/multipart/completeComplete multipart upload
POST/v1/files/multipart/abortAbort multipart upload

Upload Flow (Single File)

1. POST /v1/files/presigned-url -> { url, fileId }
2. PUT {url} with file binary + Content-Type header
3. POST /v1/files with { fileId, filename, contentType, size, visibility }

Multipart Upload Flow (Large File)

1. POST /v1/files/multipart/init -> { uploadId }
2. POST /v1/files/multipart/presigned-url -> [{ partNumber, url }]
3. PUT each part URL with file chunk
4. POST /v1/files/multipart/complete -> { file }

Official Documentation (Live Reference)

For the latest storage documentation, use WebFetch:

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.