Token导航 LogoToken导航

Agent Skill · 研究检索

file-management(文件管理)

file-management 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

file-management 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 64,068。

总安装 306周安装 13GitHub Stars 1下载 107核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:file-management(文件管理)
来源仓库:https://github.com/cheehoolabs/spureeskills
仓库路径:skills/file-management
安装命令:
npx skills add https://github.com/cheehoolabs/spureeskills --skill file-management
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/cheehoolabs/spureeskills --skill file-management

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

File Management 管理云端存储中的文件与文件夹结构,支持全文检索与元数据更新。提供上传下载、重命名移动及冲突检测等功能,适配项目级协作需求。采用统一接口同时处理“项目”与“文件夹”两种实体类型。批量操作前务必校验用户权限范围,防止越权访问或数据泄露风险。

file-management 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/file-management

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/cheehoolabs/spureeskills --skill file-manageme…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

file-management 怎么安装?

在终端执行 npx skills add https://github.com/cheehoolabs/spureeskills --skill file-management。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

file-management 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

file-management 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

file-management 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

file-management 用的人多吗?

公开数据是累计安装 306 次,近一周安装 13 次,下载 107 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

file-management 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
file-management

文件管理 · 本页

3061需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

File Management

Overview

Spuree is an agent-friendly cloud storage. Projects contain folders (nestable) and files at any level. This skill manages files — they can live directly under a project or inside any folder. In the API, projects and folders are both called sessions (sessionType: creative_project = project, session = folder).

Use this skill when an agent needs to:

  • Search for files and folders by name across all projects
  • Get a file by ID with download URL
  • Upload new files to a project or folder
  • Update file metadata (rename, move) or content (with conflict detection)
  • Delete files (soft delete)

Authentication

Authorization: Bearer $SPUREE_ACCESS_TOKEN

Or: X-API-Key: $SPUREE_API_KEY. See the authentication skill.

Base URLs

Base URLEndpoints
https://data.spuree.com/api/v1/filesFile CRUD
https://data.spuree.com/api/v1/searchCross-project search

Endpoints

GET /v1/search

Search files and folders by name (case-insensitive substring match). Returns sessions first, then files.

Query Parameters:

ParameterTypeDefaultDescription
qstring—Search query (1–255 chars)
typestring—Filter: "file" or "session". Omit for both.
workspaceIdstring—Restrict results to a specific workspace
limitinteger100Max results (1–100)

Response: {"data": [...], "count": N}

Each result has type ("file" or "session") plus type-specific fields:

  • session: id, name, sessionType, workspaceId, createdAt, updatedAt
  • file: id, fileName, fileFormat, mimeType, size, workspaceId, sessionId, entitySessionId, createdAt, updatedAt
curl "https://data.spuree.com/api/v1/search?q=hero" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN"

GET /v1/files/{fileId}

Get file metadata and presigned download URL.

Response: {"data": {id, fileName, fileFormat, mimeType, size, workspaceId, sessionId, entitySessionId, downloadUrl, createdAt, updatedAt}}

curl "https://data.spuree.com/api/v1/files/{fileId}" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN"

POST /v1/files

Create a file record and get presigned upload URL(s). Automatically selects upload mode based on file size:

  • < 100 MB → single presigned PUT URL (mode: "single")
  • ≥ 100 MB → multipart upload with per-part presigned URLs (mode: "multipart")

The caller must then upload to S3 and call POST /v1/files/{fileId}/upload/complete. Without the complete call, the file remains pending and unusable.

Request Body:

FieldTypeRequiredDescription
fileNamestringYesFile name without extension
fileFormatstringYesExtension in lowercase (e.g., fbx, png)
fileSizeintegerYesFile size in bytes (accepts string for backward compat)
sessionIdstringYesTarget project or folder ObjectId
checksumstringNoCRC32 base64 (8 chars) for end-to-end verification. When provided, the presigned URL is signed with the checksum and S3 verifies the upload matches.

Response (single mode): {messageCode, fileId, mode: "single", uploadUrl, checksumBase64, contentType}

Response (multipart mode): {messageCode, fileId, mode: "multipart", parts: [{partNumber, startByte, endByte, url},...], totalParts, expiresAt}

CodeDescription
200Record created, presigned URL(s) returned
404Session not found
409File already exists
curl -X POST "https://data.spuree.com/api/v1/files" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"fileName":"hero_walk","fileFormat":"fbx","fileSize":5242880,"sessionId":"...","checksum":"AAAAAA=="}'

POST /v1/files/{fileId}/upload/complete

Mark a file upload as completed. Works for both single and multipart uploads — the server auto-detects by checking whether the file has an active multipart uploadId. For multipart, the server calls S3 ListParts to collect ETags and then CompleteMultipartUpload.

Request Body:

FieldTypeRequiredDescription
fileIdstringYesMust match path parameter
clientChecksumCRC32stringNoClient-computed CRC32 for end-to-end verification

Response: {messageCode, fileId, checksum, checksumCRC32}

  • checksum: S3-verified CRC32 (base64) for both single and multipart uploads
  • checksumCRC32: S3 FULL_OBJECT CRC32 (multipart only)
curl -X POST "https://data.spuree.com/api/v1/files/{fileId}/upload/complete" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"fileId": "..."}'

PATCH /v1/files/{fileId}

Update file metadata. At least one field required.

FieldTypeDescription
fileNamestringNew name (without extension)
fileFormatstringNew extension (lowercase)
checksumstringCRC32 base64 (write-once backfill, no edit permission needed)
sessionIdstringMove to target project or folder

Move: Only creative_project (project) and session (folder) targets supported.

Response: {messageCode, fileId}

CodeDescription
200Updated
409Filename conflict in target
curl -X PATCH "https://data.spuree.com/api/v1/files/{fileId}" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"fileName": "hero_run_cycle"}'

PUT /v1/files/{fileId}

Prepare a content update with optimistic concurrency. Acquires an upload lock. Like POST /v1/files, automatically selects single or multipart mode based on fileSize.

Request Body:

FieldTypeRequiredDescription
expectedChecksumstringYesCRC32 base64 of current content (for conflict detection)
newChecksumstringYesCRC32 base64 of new content to upload
fileSizeintegerNoSize in bytes. If ≥ 100 MB, returns multipart mode.

Response (single): {messageCode, fileId, mode: "single", uploadUrl, checksumBase64, contentType}

Response (multipart): {messageCode, fileId, mode: "multipart", parts: [{partNumber, startByte, endByte, url},...], totalParts, expiresAt}

After receiving the response, upload to S3 then call POST /v1/files/{fileId}/upload/complete.

Upload lock: Single uploads lock for 1 hour. Multipart uploads lock for 6 hours. Same user can re-acquire. Expired locks auto-release.

CodeDescription
200Lock acquired, presigned URL(s) returned
409Checksum mismatch or locked by another user
curl -X PUT "https://data.spuree.com/api/v1/files/{fileId}" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"expectedChecksum": "a1b2...","newChecksum": "f6e5..."}'

GET /v1/files/{fileId}/upload

Resume a multipart upload. Returns which parts are already in S3 and fresh presigned URLs for remaining parts.

Query Parameters:

ParameterTypeRequiredDescription
uploadIdstringNoClient's expected uploadId for mismatch detection
checksumstringNoClient's expected pendingChecksum for conflict detection

Response: {messageCode, fileId, completedParts: [{partNumber, etag, size},...], remainingParts: [{partNumber, startByte, endByte, url},...], totalParts}

CodeDescription
200Success
400No active multipart upload
409Not in pending status or locked by another user
curl "https://data.spuree.com/api/v1/files/{fileId}/upload" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN"

POST /v1/files/{fileId}/upload/urls

Refresh presigned URLs for specific parts of a multipart upload. Use when URLs have expired before upload completes.

Request Body: {"partNumbers": [1, 3, 5]} (1-indexed, min 1 part)

Response: {messageCode, urls: [{partNumber, startByte, endByte, url},...]}

CodeDescription
200Success
400No active multipart upload or invalid part numbers
curl -X POST "https://data.spuree.com/api/v1/files/{fileId}/upload/urls" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"partNumbers": [1, 3, 5]}'

DELETE /v1/files/{fileId}/upload

Abort a multipart upload. Cleans up S3 parts and marks the file as failed. Idempotent — safe to call on already-aborted uploads.

Response: {messageCode, fileId, message}

CodeDescription
200Aborted
400No active multipart upload
curl -X DELETE "https://data.spuree.com/api/v1/files/{fileId}/upload" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN"

DELETE /v1/files/{fileId}

Soft-delete a file.

Response: {messageCode, fileId}

curl -X DELETE "https://data.spuree.com/api/v1/files/{fileId}" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN"

Common Patterns

Single Upload Flow (< 100 MB)

  1. Compute CRC32 checksum (base64): CHECKSUM=$(python3 -c "import base64, zlib, sys; print(base64.b64encode(zlib.crc32(open('$FILE_PATH','rb').read()).to_bytes(4,'big')).decode())")
  2. Create file record — sessionId is the target project or folder: POST /v1/files {fileName, fileFormat, fileSize, sessionId, checksum} → {fileId, mode: "single", uploadUrl, checksumBase64, contentType}
  3. Upload binary to S3: PUT {uploadUrl} Content-Type: {contentType} x-amz-checksum-crc32: {checksumBase64} Body: <file binary>
  4. Complete the upload — REQUIRED (file is not visible until this is called): POST /v1/files/{fileId}/upload/complete
Important: All three steps (create → S3 upload → complete) must be performed. Skipping complete leaves the file in a pending state.

Multipart Upload Flow (≥ 100 MB)

  1. Create file record with fileSize ≥ 100 MB: POST /v1/files {fileName, fileFormat, fileSize, sessionId, checksum} → {fileId, mode: "multipart", parts: [{partNumber, startByte, endByte, url},...], totalParts, expiresAt}
  2. Upload each part to its presigned URL: PUT {part.url} Content-Length: {part.endByte - part.startByte + 1} Body: <file slice from startByte to endByte>
  3. If interrupted, resume with GET /v1/files/{fileId}/upload to get completed parts and fresh URLs for remaining parts.
  4. If URLs expire, refresh with POST /v1/files/{fileId}/upload/urls for specific parts.
  5. Complete — server auto-detects multipart and calls S3 CompleteMultipartUpload: POST /v1/files/{fileId}/upload/complete
  6. To abort, call DELETE /v1/files/{fileId}/upload to clean up S3 parts.

Content Update Flow

  1. PUT /v1/files/{fileId} with checksums (and fileSize for multipart) → get upload URL(s)
  2. Upload new content to S3 (single or multipart, same as above)
  3. POST /v1/files/{fileId}/upload/complete — REQUIRED

Viewing / Previewing a File

When a user wants to view, preview, or see a file:

  1. If the agent has browser tools (e.g., Chrome DevTools MCP), open the Studio preview URL directly: navigate_page → https://studio.spuree.com/file/{fileId}
  2. Otherwise, return the Studio preview URL for the user to click: https://studio.spuree.com/file/{fileId}

Do not download the file or attempt to open it locally. The Studio URL is permanent, permission-aware, and renders images, video, 3D, and other supported formats inline in the browser.

Use caseURLProperties
Share with user / previewhttps://studio.spuree.com/file/{fileId}Permanent, permission-aware, renders preview UI
Programmatic downloaddownloadUrl from GET /v1/files/{fileId}Short-lived presigned S3 URL — do not share, bypasses permissions and expires

Rule of thumb: after POST /v1/files (upload) or GET /v1/search, build the Studio URL from the returned fileId and return that to the user. Only fetch downloadUrl when the agent itself needs the bytes.

Search Then Download

  1. GET /v1/search?q=hero_walk → find file ID
  2. GET /v1/files/{fileId} → get downloadUrl
  3. Download from the presigned URL

File Organization

Projects and folders are both sessions. sessionId always refers to a session. Session types: creative_project (project), session (folder). Folders nest inside projects or other folders.

S3 key: works_{workspaceId}/sess_{sessionId}/file_{fileId}

Studio URLs

ResourceURL Pattern
Projecthttps://studio.spuree.com/projects/{projectId}
Folder (top-level)https://studio.spuree.com/projects/{projectId}/folders/{folderId}
Folder (nested).../folders/{parentId}/{childId} (up to 5 levels)
Filehttps://studio.spuree.com/file/{fileId}

Error Handling

CodeCauseResolution
400Invalid checksum format, missing fields, bad IDFix input format
403No workspace access or edit permissionCheck permissions
404File or session not foundVerify IDs
409 (checksum mismatch)File modified by another userRe-fetch checksum, retry
409 (upload lock)Another user is uploadingWait (lock expires in 1 hour for single, 6 hours for multipart)
409 (filename conflict)Same name exists in targetUse different name or target
401Invalid or expired tokenRefresh via authentication skill

平台分布

Codex

34.44%
按下载量换算37

Claude

29.07%
按下载量换算31

Cursor

19%
按下载量换算20

Gemini CLI

8.78%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills