agentleFS
MicrosoftKnown publishermicrosoft/rayfin/packages/tools/cli/assets/agent-files/skills/rayfin-storage/SKILL.md

rayfin-storage

Skill646 starsChanged 25 days agoMITView on GitHub

Use only when the user explicitly requests experimental Rayfin Storage or the project already enables it. Triggers: Rayfin Storage, @microsoft/rayfin-storage, @blob, StorageObject, StorageClient, StorageFolderClient, createStorageClient, rayfin/storage, rayfin dev storage apply, rayfin up storage apply

  • Installs packages

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 3 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not select or suggest it for a generic file-upload request unless the user explicitly names Rayfin Storage or the project already …

    line 12
  2. Very specific:

    If @microsoft/rayfin-storage is missing, install the version compatible with the project's Rayfin packages before writing Storage code.

    line 16
  3. Very specific:

    Read node_modules/@microsoft/rayfin-storage/package.json, resolve rayfinDocs.dir, and read its index.md before changing Storage …

    line 28
  4. Very specific:

    If direct file access is unavailable, use rayfin docs get --module rayfin-storage --path index.md or the equivalent Rayfin MCP get_doc call.

    line 29
  5. Very specific:

    Read node_modules/@microsoft/rayfin-core/assets/docs/permissions.md for that API.

    line 32
  6. Distinctive:

    Do not infer operation signatures, decorator options, result shapes, or error codes from this skill.

    line 33
  7. Very specific:

    Import blob, StorageObject, ContentTypes, and byte-size helpers from @microsoft/rayfin-core/experimental while Storage remains experimental.

    line 37
  8. Distinctive:

    Treat authorization policies as the security boundary.

    line 39
  9. Very specific:

    Keep an explicit @blob({ name }) value aligned with its Storage schema key.

    line 41
  10. Distinctive:

    Use the typed Storage client rather than constructing Storage HTTP or SAS requests directly.

    line 44
  11. Very specific:

    Use --force only after reviewing and accepting destructive configuration changes.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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

Rayfin Storage

Rayfin Storage is experimental. Do not select or suggest it for a generic file-upload request unless the user explicitly names Rayfin Storage or the project already enables services.storage.enabled.

Bootstrap

If @microsoft/rayfin-storage is missing, install the version compatible with the project's Rayfin packages before writing Storage code.

Enable Storage in rayfin/rayfin.yml:

services:
  storage:
    enabled: true

Version-matched documentation

Read node_modules/@microsoft/rayfin-storage/package.json, resolve rayfinDocs.dir, and read its index.md before changing Storage declarations or client code. If direct file access is unavailable, use rayfin docs get --module rayfin-storage --path index.md or the equivalent Rayfin MCP get_doc call.

Storage folders use Core's shared @role() decorator and policy DSL. Read node_modules/@microsoft/rayfin-core/assets/docs/permissions.md for that API. Do not infer operation signatures, decorator options, result shapes, or error codes from this skill.

Guardrails

  • Import blob, StorageObject, ContentTypes, and byte-size helpers from @microsoft/rayfin-core/experimental while Storage remains experimental.
  • Give every folder at least one authenticated permission decorator; configuration apply rejects folders with no rules, and anonymous Storage permissions are unsupported.
  • Treat authorization policies as the security boundary; prefixes organize paths but do not grant access.
  • Omit prefix by default. Add it only when the user explicitly requires path partitioning or the existing application design establishes one; never derive a user-ID prefix merely because authentication is available. If the requirement is unclear, keep the object at the folder root and tell the user that no prefix was added.
  • Keep an explicit @blob({ name }) value aligned with its Storage schema key.
  • Send decorated application metadata through upload({ fields }); intrinsic object fields are server-managed.
  • Access listed custom fields at the top level because the SDK flattens the service's fields envelope.
  • Use the typed Storage client rather than constructing Storage HTTP or SAS requests directly.

Commands

npm install @microsoft/rayfin-storage  # Install the SDK separately
npx rayfin dev storage apply           # Apply folder configuration locally
npx rayfin up                          # Deploy and apply enabled services
npx rayfin up storage apply            # Re-apply cloud Storage configuration only

Use --force only after reviewing and accepting destructive configuration changes.

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.