agentleFS
fpindejfpindej/netrock/.claude/skills/manage-file-storage/SKILL.md

manage-file-storage

Skill234 starsChanged 3 months agoMITView on GitHub

Swap or remove the file storage provider (S3/MinIO)

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

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

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

    No code changes needed - S3FileStorageService uses the standard S3 API.

    line 11
  2. Very specific:

    Infrastructure: Remove the MinIO resource from MyProject.AppHost/Program.cs

    line 37
  3. Very specific:

    Backend: Remove Application/Features/FileStorage/, Application/Features/Avatar/, Infrastructure/Features/FileStorage/, …

    line 38
  4. Very specific:

    Entity: Remove HasAvatar from ApplicationUser

    line 39
  5. Very specific:

    Endpoints: Remove avatar endpoints from UsersController, UploadAvatar/ DTOs

    line 40
  6. Very specific:

    DTOs: Remove HasAvatar from UserOutput, AdminUserOutput, UserResponse, AdminUserResponse, mappers

    line 41
  7. Very specific:

    DI:: Remove AddFileStorageServices() and AddAvatarServices() from Program.cs

    line 42
  8. Very specific:

    NuGet: Remove AWSSDK.S3, SkiaSharp, SkiaSharp.NativeAssets.Linux.NoDependencies from Directory.Packages.props

    line 43
  9. Very specific:

    Frontend: Remove AvatarDialog.svelte, update ProfileHeader.svelte and UserNav.svelte to remove avatar image

    line 44
  10. Very specific:

    Config: Remove FileStorage section from all appsettings*.json

    line 45
  11. Very specific:

    Health check: Remove S3 health check from HealthCheckExtensions.cs

    line 46

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

Swaps S3 provider or removes file storage entirely.

Swap S3 Provider (Cloudflare R2, DigitalOcean Spaces, etc.)

No code changes needed - S3FileStorageService uses the standard S3 API. Only configuration:

Set the FileStorage__* environment variables on your API container:

# Cloudflare R2
FileStorage__Endpoint=https://<account-id>.r2.cloudflarestorage.com
FileStorage__AccessKey=<R2-access-key>
FileStorage__SecretKey=<R2-secret-key>
FileStorage__BucketName=my-bucket
FileStorage__UseSSL=true
FileStorage__Region=auto

# DigitalOcean Spaces
FileStorage__Endpoint=https://<region>.digitaloceanspaces.com
FileStorage__AccessKey=<spaces-key>
FileStorage__SecretKey=<spaces-secret>
FileStorage__BucketName=my-space
FileStorage__UseSSL=true
FileStorage__Region=<region>

Pre-create the bucket in your provider's console. Restart - no rebuild needed.

Remove File Storage Entirely

  1. Infrastructure: Remove the MinIO resource from MyProject.AppHost/Program.cs
  2. Backend: Remove Application/Features/FileStorage/, Application/Features/Avatar/, Infrastructure/Features/FileStorage/, Infrastructure/Features/Avatar/
  3. Entity: Remove HasAvatar from ApplicationUser
  4. Endpoints: Remove avatar endpoints from UsersController, UploadAvatar/ DTOs
  5. DTOs: Remove HasAvatar from UserOutput, AdminUserOutput, UserResponse, AdminUserResponse, mappers
  6. DI: Remove AddFileStorageServices() and AddAvatarServices() from Program.cs
  7. NuGet: Remove AWSSDK.S3, SkiaSharp, SkiaSharp.NativeAssets.Linux.NoDependencies from Directory.Packages.props
  8. Frontend: Remove AvatarDialog.svelte, update ProfileHeader.svelte and UserNav.svelte to remove avatar image
  9. Config: Remove FileStorage section from all appsettings*.json
  10. Health check: Remove S3 health check from HealthCheckExtensions.cs

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.