agentleFS
FrankLord27FrankLord27/ai-lordkit/skills/minio-docs/SKILL.md

minio-docs

Skill2 starsChanged 17 days agoMITView on GitHub

Referencia completa de MinIO para almacenamiento de objetos (imágenes, documentos, facturas PDF, backups) en el stack fullstack como alternativa self-hosted a S3. Úsala cuando trabajes con: buckets, upload de archivos desde NestJS, presigned URLs para acceso temporal, políticas de acceso, integración con el SDK de AWS (compatible con MinIO), generación de thumbnails, o almacenamiento de archivos adjuntos en tickets de soporte o comprobantes de un POS.

  • Reads credentials

The file

Files
SKILL.md

MinIO — Referencia Completa

Documentación oficial (Context7)

Para la doc oficial y actualizada de MinIO, consulta el MCP Context7 (resolve-library-id → query-docs) antes de generar código con APIs que no domines al 100%. Si contradice esta skill en una regla del estándar, gana la skill; si es un detalle de API, gana Context7.

Integración NestJS + MinIO (SDK AWS S3)

import {
  S3Client,
  PutObjectCommand,
  GetObjectCommand,
} from "@aws-sdk/client-s3";
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";

// Configuración (compatible con MinIO)
const s3 = new S3Client({
  endpoint: process.env.MINIO_ENDPOINT, // http://localhost:9000
  region: "us-east-1", // cualquier valor
  credentials: {
    accessKeyId: process.env.MINIO_ACCESS_KEY,
    secretAccessKey: process.env.MINIO_SECRET_KEY,
  },
  forcePathStyle: true, // OBLIGATORIO para MinIO
});

// Upload
await s3.send(
  new PutObjectCommand({
    Bucket: "facturas",
    Key: `${tenantId}/${invoiceId}.pdf`,
    Body: buffer,
    ContentType: "application/pdf",
  }),
);

// Presigned URL (acceso temporal 1 hora)
const url = await getSignedUrl(
  s3,
  new GetObjectCommand({
    Bucket: "facturas",
    Key: `${tenantId}/${invoiceId}.pdf`,
  }),
  { expiresIn: 3600 },
);

Reglas no negociables

  • forcePathStyle: true siempre en la config del cliente — sin esto MinIO falla
  • Organizar por tenant: prefijo {tenantId}/ en todos los keys — multi-tenancy a nivel de objeto
  • Presigned URLs para acceso del cliente — nunca exponer credenciales al frontend
  • Buckets separados por dominio: facturas, avatars, adjuntos, backups
  • Lifecycle policies para auto-eliminar archivos temporales (ej: presigned uploads sin confirmar)

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.