Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

nocobase-file-manager

БесплатноБез исполняемых скриптовНе проверен

NocoBase 2 only; never use in a NocoBase 3 project. Manage NocoBase file storage engines, file collections, their business relations, and file records through…

nocobaseот nocobase★ 54 звезды на GitHub

Об этом скилле

Goal

Configure and use NocoBase file storage safely from the user's point of view: choose a storage engine, create or update it, model first-class file collections, relate business records to those files, and verify storage and file lifecycle behavior through supported nb api commands.

Scope

  • Inspect, create, update, verify, and safely delete local, s3, ali-oss, tx-cos, and optional s3-compatible (S3 Pro) storage records.
  • Explain NocoBase URL, original URL, public access, signed URL, upload rules, renaming, default storage, and physical-file retention.
  • Inspect, create, and verify a template: "file" collection and ordinary relation fields that point to it.
  • Inspect, create metadata for, update, list, and safely delete records in file collections.
  • Use nb api resource for ordinary resource CRUD and the high-level data-modeling commands for file collections and relations.
  • Read the live file-manager Swagger before relying on optional or version-specific actions.

Non-Goals

  • Do not create new fields with the deprecated attachment interface or model new business data against the shared attachments collection.
  • Do not handle generic collection/relation modeling whose primary intent is unrelated to file storage.
  • Do not delete file collections or relation fields; use the data-modeling workflow after their dependencies and migration impact are explicitly scoped.
  • Do not migrate physical objects between storage backends, rewrite historical object keys, or mutate the database directly.
  • Do not configure an object-storage provider's bucket, IAM policy, DNS, CDN, or CORS outside NocoBase.
  • Do not invent a binary-upload nb api resource flag; generic resource create accepts JSON records, not local file bytes.
  • Do not use curl or direct HTTP while an applicable nb api command exists.
  • Do not expose, echo, or persist plaintext access keys in command arguments, logs, generated files, or final output.

Input Contract

Input Required Default Validation Clarification Question
action yes inspect one of inspect/create/update/verify/finalize/delete and valid for the selected target "Which file-manager action should I perform?"
target mutation: yes infer for unambiguous inspect/verify only one of storage/file-collection/relation/file-record "Which storage, file collection, relation, or file record should I manage?"
env no current CLI environment configured, reachable, and authenticated "Which NocoBase CLI environment should I target?"
identifier single-target inspect/update/verify/delete: yes none exact storage ID/name, collection name plus field name, or file-record primary key; optional for list inspection "What is the exact target identifier?"
storageType storage create: yes none one of local/s3/ali-oss/tx-cos/s3-compatible; type must be registered "Which storage engine type should be configured?"
storageValues storage create/update: yes none engine-specific fields; secrets must use {{env.VARIABLE_NAME}} placeholders "Which non-secret settings and environment-variable placeholders should be used?"
relationSpec relation create: yes none source business collection, target file collection, field names, and one of m2o/o2m/m2m from real ownership/reuse needs "Which business collection owns or reuses which file collection?"
fileMetadata file-record finalize: yes none authoritative metadata from a verified external/direct upload; never a local-file path presented as an upload "What authoritative metadata did the completed external upload return?"
confirmation high-risk mutation: yes none fresh confirmation after exact target and impact are shown "Confirm this exact destructive or access-changing operation?"

Rules:

  • Valid action-target combinations are:
    • storage: inspect/create/update/verify/delete;
    • file-collection: inspect/create/verify;
    • relation: inspect/create/verify;
    • file-record: inspect/finalize/update/verify/delete.
  • Reject any other combination instead of reinterpreting it as a nearby operation.
  • If a required input or capability is missing, stop mutation and ask for it.
  • If the user says "you decide", inspect only; do not create storage, change access, alter defaults, create relations, or delete records.
  • Resolve identifiers from live list/get results. Never guess storage IDs, collection names, field names, or record IDs.
  • Never translate a request for files into interface: "attachment". Create a file collection first, then create an ordinary relation to it.
  • Treat nb api resource create --resource <fileCollection> as metadata finalization only when the object already exists in storage; it is not a binary upload.

Mandatory Clarification Gate

  • Max clarification rounds: 2.
  • Max questions per round: 3.
  • Before any mutation, confirm environment, exact target
Полный SKILL.md на GitHub

Установить nocobase-file-manager в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(nb:*)
Read
Grep

Вложенные файлы

agents/openai.yamlreferences/command-map.mdreferences/file-modeling.mdreferences/operations-and-safety.mdreferences/storage-engines.md

FAQ

Что делает скилл nocobase-file-manager?

NocoBase 2 only; never use in a NocoBase 3 project. Manage NocoBase file storage engines, file collections, their business relations, and file records through nb CLI. Use when the primary task concerns NocoBase file storage configuration, file-model setup, access or retention behavior, or storage/file-record lifecycle.

Как установить скилл nocobase-file-manager?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nocobase-file-manager запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nocobase-file-manager с