Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

folder-management文件夹管理

Agent Skill

folder-management 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

297

周安装

12

GitHub Stars

1

下载量

93
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

folder-management 用于处理 GitHub 仓库、Issue 和 Pull Request 信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕代码变更进行协作整理。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装方式:github,通过 npx skills add 命令添加。
  • 注意:需确认权限范围和维护状态,避免触发不必要的联网或文件操作。

SKILL.md

Folder Management

Overview

Spuree is an agent-friendly cloud storage. Projects contain folders (nestable) and files at any level. This skill manages folders — they can be nested to any depth within a project.

Use this skill when an agent needs to:

  • Create, rename, move, or delete folders in a project
  • Browse a folder's contents (sub-folders, entities, files)
  • List assets or files within a folder
  • Get download URLs for files in bulk
API terminology: In the API, folders are called sessions (sessionType: "session"). All API fields use sessionId, parentSessionId, etc. This document uses folder for clarity.

Authentication

Authorization: Bearer $SPUREE_ACCESS_TOKEN

Or use an API key:

X-API-Key: $SPUREE_API_KEY

See the authentication skill for obtaining tokens and managing API keys.

Base URL

https://data.spuree.com/api/v1/sessions

Data Model

Folder Hierarchy

Project (creative_project)          ← see project-management skill
├── Folder (session)
│   ├── Sub-folder (session)
│   │   └── ...
│   ├── Entity (asset)              character, motion, prop, environment, visdev, pose
│   │   └── Files
│   └── Files
├── Entity (asset)
│   └── Files
└── Files

Session Types

sessionTypeThis document calls itDescription
creative_projectProjectTop-level container (managed via project-management skill)
sessionFolderOrganizes content hierarchically
entityEntity / AssetAsset container (character, motion, prop, etc.)
animationAnimationAnimation session

Entity Types

Entities represent assets and have one of these types:

character, motion, prop, environment, visdev, pose

Endpoints

POST /v1/sessions

Create a new folder.

Description: Creates a folder under a parent (project, folder, animation, or entity). The name must be compatible with Windows file system naming rules.

Request Body:

FieldTypeRequiredDescription
namestringYesFolder name (Windows filesystem-compatible)
parentSessionIdstringYesParent ObjectId (project, folder, animation, or entity)
descriptionstringNoFolder description
tagsstring[]NoTags for the folder

Response:

{
  "messageCode": "success",
  "sessionId": "64a7b8c9d1e2f3a4b5c6d7e8"
}

Status Codes:

CodeDescription
200Folder created
400Invalid name, invalid parent ID, parent type not allowed, or entity nesting limit exceeded
401Invalid or expired token
403Not authorized to create in this parent
404Parent not found or deleted
409Folder name already exists in the parent
500Internal server error

Nesting rules:

  • Allowed parents: creative_project, session, animation, entity
  • Entity sessions allow only 1 level of sub-folders. Creating a folder under a folder that is already inside an entity is rejected.

Example:

curl -X POST "https://data.spuree.com/api/v1/sessions" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Characters",
    "parentSessionId": "64a7b8c9d1e2f3a4b5c6d7e8",
    "description": "All character assets",
    "tags": ["characters"]
  }'

PATCH /v1/sessions/{sessionId}

Update a folder (rename, move, or edit tags).

Description: Updates folder metadata. Supports renaming, moving to a different parent, and updating description/tags. Only folders (sessionType: "session") can be updated via this endpoint.

Path Parameters:

ParameterTypeDescription
sessionIdstringFolder ObjectId

Request Body (all fields optional, at least one required):

FieldTypeDescription
namestringNew folder name
descriptionstringNew description
tagsstring[]New tags
parentSessionIdstringMove to a new parent (project, folder, animation, or entity)

Response:

{
  "messageCode": "success",
  "sessionId": "64a7b8c9d1e2f3a4b5c6d7e8"
}

Status Codes:

CodeDescription
200Folder updated
400No fields provided, circular reference, or nesting limit exceeded
401Invalid or expired token
403Not authorized, or session is not a folder
404Folder not found, or target parent not found
409Name conflict in target parent
500Internal server error

Move notes:

  • Moving a folder automatically inherits workspace and project IDs from the new parent.
  • Circular references are detected and rejected (cannot move a folder into its own descendant).

Examples:

# Rename a folder
curl -X PATCH "https://data.spuree.com/api/v1/sessions/64a7b8c9d1e2f3a4b5c6d7e8" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Renamed Folder"}'

# Move a folder to a different parent
curl -X PATCH "https://data.spuree.com/api/v1/sessions/64a7b8c9d1e2f3a4b5c6d7e8" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"parentSessionId": "64a7b8c9d1e2f3a4b5c6d7f0"}'

DELETE /v1/sessions/{sessionId}

Delete a folder (soft delete).

Description: Soft-deletes a folder by setting its status to "deleted". Only folders (sessionType: "session") can be deleted via this endpoint.

Path Parameters:

ParameterTypeDescription
sessionIdstringFolder ObjectId

Response:

{
  "messageCode": "success",
  "sessionId": "64a7b8c9d1e2f3a4b5c6d7e8"
}

Status Codes:

CodeDescription
200Folder soft-deleted
400Invalid folder ID format
401Invalid or expired token
403Not authorized, or session is not a folder
404Folder not found or already deleted
500Internal server error

Example:

curl -X DELETE "https://data.spuree.com/api/v1/sessions/64a7b8c9d1e2f3a4b5c6d7e8" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN"

GET /v1/sessions/{sessionId}/children

Browse a folder's immediate contents.

Description: Returns the direct children of a folder: sub-folders, entities (assets), and files. Same response format as GET /v1/projects/{projectId}/children.

Path Parameters:

ParameterTypeDescription
sessionIdstringFolder ObjectId

Query Parameters:

ParameterTypeDefaultDescription
limitinteger100Results per page (max: 500)
offsetinteger0Number of items to skip

Response:

{
  "sessions": [
    {
      "id": "64a7b8c9d1e2f3a4b5c6d7e8",
      "name": "Sub-folder",
      "sessionType": "session",
      "status": "active",
      "createdAt": "2024-01-15T10:00:00Z",
      "updatedAt": "2024-01-15T10:00:00Z"
    }
  ],
  "entities": [
    {
      "id": "64a7b8c9d1e2f3a4b5c6d7e9",
      "name": "Hero Character",
      "entityType": "character",
      "description": "Main character",
      "entityPreview": {
        "presignedUrl": "https://s3.amazonaws.com/...",
        "key": "previews/hero_low.jpg",
        "fileFormat": "jpg"
      },
      "highResEntityPreview": {
        "presignedUrl": "https://s3.amazonaws.com/...",
        "key": "previews/hero_high.jpg",
        "fileFormat": "jpg"
      }
    }
  ],
  "files": [
    {
      "id": "64a7b8c9d1e2f3a4b5c6d7ea",
      "fileName": "reference_sheet",
      "fileFormat": "png",
      "key": "works_abc/sess_def/file_ghi",
      "sourceCharacter": null,
      "presignedUrl": "https://s3.amazonaws.com/...",
      "annotationMetaData": {}
    }
  ]
}

Children Types:

ArrayContainsDescription
sessionsFoldersSub-folders — navigate deeper with this same endpoint
entitiesAssetsEntity sessions with preview images
filesFilesFiles with presigned download URLs

Entity Fields:

FieldTypeDescription
idstringEntity ObjectId
namestringEntity name
entityTypestringcharacter, motion, prop, environment, visdev, pose
descriptionstring?Entity description
entityPreviewobject?Low-res preview (presignedUrl, key, fileFormat)
highResEntityPreviewobject?High-res preview

File Fields:

FieldTypeDescription
idstringFile ObjectId
fileNamestringFile name (without extension)
fileFormatstringFile extension (lowercase)
keystringS3 object key
sourceCharacterstring?Associated character name
presignedUrlstringS3 presigned download URL
annotationMetaDataobjectMetadata (fps, frameCount, durationSeconds, ueAssetType, etc.)

Status Codes:

CodeDescription
200Children returned
400Invalid folder ID format
401Invalid or expired token
403Not authorized to access this folder
404Folder not found or deleted
500Internal server error

Example:

curl "https://data.spuree.com/api/v1/sessions/64a7b8c9d1e2f3a4b5c6d7e8/children?limit=50" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN"

GET /v1/sessions/{sessionId}/assets

Get assets (entities) in a folder.

Description: Returns entity sessions and their associated files for a given folder.

Path Parameters:

ParameterTypeDescription
sessionIdstringFolder ObjectId

Query Parameters:

ParameterTypeDefaultDescription
includestringfilesComma-separated: files
limitinteger100Results per page (max: 500)
offsetinteger0Number of items to skip

Response:

{
  "assets": [
    {
      "id": "64a7b8c9d1e2f3a4b5c6d7e9",
      "name": "Hero Character",
      "entityType": "character",
      "description": "Main character",
      "entityPreview": { "presignedUrl": "...", "key": "...", "fileFormat": "jpg" },
      "highResEntityPreview": { "presignedUrl": "...", "key": "...", "fileFormat": "jpg" }
    }
  ],
  "files": [
    {
      "id": "64a7b8c9d1e2f3a4b5c6d7ea",
      "fileName": "hero_model",
      "fileFormat": "fbx",
      "key": "works_abc/sess_def/file_ghi",
      "sourceCharacter": "Hero",
      "presignedUrl": "https://s3.amazonaws.com/...",
      "annotationMetaData": { "fileSize": "1048576" }
    }
  ]
}

Status Codes:

CodeDescription
200Assets and files returned
400Invalid folder ID format
401Invalid or expired token
403Not authorized
404Folder not found
500Internal server error

Example:

curl "https://data.spuree.com/api/v1/sessions/64a7b8c9d1e2f3a4b5c6d7e8/assets" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN"

GET /v1/sessions/{sessionId}/files

Get files in a folder.

Description: Returns files associated with a folder. By default, flattens results to include files from sub-folders via entity session linkage.

Path Parameters:

ParameterTypeDescription
sessionIdstringFolder ObjectId

Query Parameters:

ParameterTypeDefaultDescription
flattenbooleantruetrue: files by entitySessionId (includes sub-folders). false: files by direct sessionId only
limitinteger100Results per page (max: 500)
offsetinteger0Number of items to skip

Response:

{
  "files": [
    {
      "id": "64a7b8c9d1e2f3a4b5c6d7ea",
      "fileName": "hero_walk",
      "fileFormat": "fbx",
      "key": "works_abc/sess_def/file_ghi",
      "sourceCharacter": "Hero",
      "presignedUrl": "https://s3.amazonaws.com/...",
      "annotationMetaData": {
        "fps": 30,
        "frameCount": 300,
        "durationSeconds": 10.0,
        "fileSize": "1048576"
      }
    }
  ]
}

Status Codes:

CodeDescription
200Files returned
400Invalid folder ID format
401Invalid or expired token
403Not authorized
404Folder not found
500Internal server error

Example:

# Get all files (flattened, including sub-folders)
curl "https://data.spuree.com/api/v1/sessions/64a7b8c9d1e2f3a4b5c6d7e8/files" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN"

# Get only direct files in this folder
curl "https://data.spuree.com/api/v1/sessions/64a7b8c9d1e2f3a4b5c6d7e8/files?flatten=false" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN"

POST /v1/sessions/files/download/urls

Get download URLs for multiple files in bulk.

Description: Generates presigned S3 download URLs for a batch of files. Validates access permissions for each file.

Request Body:

FieldTypeRequiredDescription
fileIdsstring[]YesFile ObjectIds to download
expiresInintegerNoURL expiry in seconds (60–86400, default: 3600)
includeMetadatabooleanNoInclude file metadata (default: false)

Response:

{
  "downloads": [
    {
      "fileId": "64a7b8c9d1e2f3a4b5c6d7ea",
      "fileName": "hero_walk.fbx",
      "fileSize": 1048576,
      "format": "fbx",
      "downloadUrl": "https://s3.amazonaws.com/...",
      "expiresAt": "2024-01-15T11:00:00Z",
      "sessionId": "64a7b8c9d1e2f3a4b5c6d7e8",
      "entitySessionId": "64a7b8c9d1e2f3a4b5c6d7e9",
      "metadata": {
        "createdAt": "2024-01-15T10:00:00Z",
        "updatedAt": "2024-01-15T10:00:00Z"
      }
    }
  ],
  "totalFiles": 1,
  "totalSize": 1048576,
  "unauthorizedFiles": [],
  "notFoundFiles": []
}

Status Codes:

CodeDescription
200Download URLs generated
400Invalid input
401Invalid or expired token
403Not authorized for some files (listed in unauthorizedFiles)
503AWS credentials error
500Internal server error

Example:

curl -X POST "https://data.spuree.com/api/v1/sessions/files/download/urls" \
  -H "Authorization: Bearer $SPUREE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "fileIds": ["64a7b8c9d1e2f3a4b5c6d7ea", "64a7b8c9d1e2f3a4b5c6d7eb"],
    "expiresIn": 7200,
    "includeMetadata": true
  }'

Common Patterns

Navigate a Project's Folder Structure

  1. Get project children (via project-management skill): GET /v1/projects/{projectId}/children → {sessions, entities, files}
  2. Navigate into a folder: GET /v1/sessions/{folderId}/children → {sessions, entities, files}
  3. Repeat to go deeper into sub-folders.

Create a Folder Structure

# Create a top-level folder in a project
POST /v1/sessions { name: "Characters", parentSessionId: "{projectId}" }
→ { sessionId: "folder1" }

# Create a sub-folder
POST /v1/sessions { name: "Heroes", parentSessionId: "folder1" }
→ { sessionId: "folder2" }

Download All Files in a Folder

  1. List files in the folder: GET /v1/sessions/{folderId}/files?flatten=true → {files: [...]}
  2. Get download URLs in bulk: POST /v1/sessions/files/download/urls {fileIds: [...]} → {downloads: [{downloadUrl,...}]}
  3. Download each file using its downloadUrl.

Agent Workflow: Asset Discovery

  1. Browse project → find the folder containing assets
  2. Get assetsGET /v1/sessions/{folderId}/assets
  3. Get files → for each asset, list its files
  4. Download → batch download with POST /v1/sessions/files/download/urls

Studio URLs

After creating or finding resources, you can give the user a clickable link to view them in the browser:

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

Folders support up to 5 levels of nesting. Each level appends another ID segment: .../folders/{level1}/{level2}/{level3}/...

Error Handling

ErrorCauseResolution
400 (invalid name)Name contains invalid filesystem charactersUse Windows-compatible names
400 (nesting limit)Trying to nest more than 1 level under an entityRestructure: entities allow only 1 sub-folder level
400 (circular ref)Moving a folder into its own descendantChoose a different target parent
401 (unauthorized)Expired or invalid JWTRefresh token via authentication skill
403 (not a folder)Trying to update/delete a non-folder sessionOnly sessionType: "session" can be modified here
404 (not found)Folder doesn't exist or was deletedVerify the folder ID
409 (name conflict)Folder name already exists in the parentUse a different name

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.22%
按下载量换算32

Claude

30.77%
按下载量换算29

Cursor

19.13%
按下载量换算18

Gemini CLI

9.22%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills