box-automation – skill Agent & Tự động hóa cho agent AI
Tự động hóa các thao tác trên Box gồm tải tệp lên/xuống, tìm kiếm nội dung, quản lý thư mục, cộng tác, truy vấn metadata và yêu cầu ký thông qua bộ công cụ Box của Composio.
Cài skill box-automation bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/box-automation-443f5.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /box-automation – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/box-automation-443f5.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $box-automation – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/box-automation-443f5.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /box-automation – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/box-automation-443f5.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /box-automation – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Box Automation via Rube MCP
Automate Box operations including file upload/download, content search, folder management, collaboration, metadata queries, and sign requests through Composio's Box toolkit.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Box connection via
RUBE_MANAGE_CONNECTIONSwith toolkitbox - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas
Setup
Use an existing approved Rube connection. Endpoint setup alone does not authenticate Box; use the supported host authentication flow within requested scope.
1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
2. Call RUBE_MANAGE_CONNECTIONS with toolkit box
3. If connection is not ACTIVE, follow the returned auth link to complete Box OAuth
4. Confirm connection status shows ACTIVE before running any workflows
Treat these slugs/defaults as historical examples; discovered schemas govern operations. Verify exact enterprise/account, file/folder/version, destination and sharing visibility before requested writes. Collaboration changes and sign requests can notify others or change obligations; require that action scope. Avoid public links by default, protect download URLs, and reconcile uncertain mutations before retrying.
Core Workflows
1. Upload and Download Files
When to use: User wants to upload files to Box or download files from it
Tool sequence:
1. BOX_SEARCH_FOR_CONTENT - Find the target folder if path is unknown [Prerequisite]
2. BOX_GET_FOLDER_INFORMATION - Verify folder exists and get folder_id [Prerequisite]
3. BOX_LIST_ITEMS_IN_FOLDER - Browse folder contents and discover file IDs [Optional]
4. BOX_UPLOAD_FILE - Upload a file to a specific folder [Required for upload]
5. BOX_DOWNLOAD_FILE - Download a file by file_id [Required for download]
6. BOX_CREATE_ZIP_DOWNLOAD - Bundle multiple files/folders into a zip [Optional]
Key parameters:
parent_id: Folder ID for upload destination (use"0"for root folder)file: FileUploadable object withs3key,mimetype, andnamefor uploadsfile_id: Unique file identifier for downloadsversion: Optional file version ID for downloading specific versionsfields: Comma-separated list of attributes to return
Pitfalls:
- Uploading to a folder with existing filenames can trigger conflict behavior; decide overwrite vs rename semantics
- Files over 50MB should use chunk upload APIs (not available via standard tools)
- The
attributespart of upload must come before thefilepart or you get HTTP 400 withmetadata_after_file_contents - File IDs and folder IDs are numeric strings extractable from Box web app URLs (e.g.,
https://*.app.box.com/files/123gives file_id"123")
2. Search and Browse Content
When to use: User wants to find files, folders, or web links by name, content, or metadata
Tool sequence:
1. BOX_SEARCH_FOR_CONTENT - Full-text search across files, folders, and web links [Required]
2. BOX_LIST_ITEMS_IN_FOLDER - Browse contents of a specific folder [Optional]
3. BOX_GET_FILE_INFORMATION - Get detailed metadata for a specific file [Optional]
4. BOX_GET_FOLDER_INFORMATION - Get detailed metadata for a specific folder [Optional]
5. BOX_QUERY_FILES_FOLDERS_BY_METADATA - Search by metadata template values [Optional]
6. BOX_LIST_RECENTLY_ACCESSED_ITEMS - List recently accessed items [Optional]
Key parameters:
query: Search string supporting operators (""exact match,AND,OR,NOT- uppercase only)type: Filter by"file","folder", or"web_link"ancestor_folder_ids: Limit search to specific folders (comma-separated IDs)file_extensions: Filter by file type (comma-separated, no dots)content_types: Search in"name","description","file_content","comments","tags"created_at_range/updated_at_range: Date filters as comma-separated RFC3339 timestampslimit: Results per page (default 30)offset: Pagination offset (max 10000)folder_id: ForLIST_ITEMS_IN_FOLDER(use"0"for root)
Pitfalls:
- Queries with offset > 10000 are rejected with HTTP 400
BOX_SEARCH_FOR_CONTENTrequires eitherqueryormdfiltersparameter- Misconfigured filters can silently omit expected items; validate with small test queries first
- Boolean operators (
AND,OR,NOT) must be uppercase BOX_LIST_ITEMS_IN_FOLDERrequires pagination viamarkeroroffset/usemarker; partial listings are common- Standard folders sort items by type first (folders before files before web links)
3. Manage Folders
When to use: User wants to create, update, move, copy, or delete folders
Tool sequence:
1. BOX_GET_FOLDER_INFORMATION - Verify folder exists and check permissions [Prerequisite]
2. BOX_CREATE_FOLDER - Create a new folder [Required for create]
3. BOX_UPDATE_FOLDER - Rename, move, or update folder settings [Required for update]
4. BOX_COPY_FOLDER - Copy a folder to a new location [Optional]
5. BOX_DELETE_FOLDER - Move folder to trash [Required for delete]
6. BOX_PERMANENTLY_REMOVE_FOLDER - Permanently delete a trashed folder [Optional]
Key parameters:
name: Folder name (no/,\, trailing spaces, or./..)parent__id: Parent folder ID (use"0"for root)folder_id: Target folder ID for operationsparent.id: Destination folder ID for moves viaBOX_UPDATE_FOLDERrecursive: Settrueto delete non-empty foldersshared_link: Object withaccess,password,permissionsfor creating shared links on foldersdescription,tags: Optional metadata fields
Pitfalls:
BOX_DELETE_FOLDERmoves to trash by default; useBOX_PERMANENTLY_REMOVE_FOLDERfor permanent deletion- Non-empty folders require
recursive: truefor deletion - Root folder (ID
"0") cannot be copied or deleted - Folder names cannot contain
/,\, non-printable ASCII, or trailing spaces - Moving folders requires setting
parent.idviaBOX_UPDATE_FOLDER
4. Share Files and Manage Collaborations
When to use: User wants to share files, manage access, or handle collaborations
Tool sequence:
1. BOX_GET_FILE_INFORMATION - Get file details and current sharing status [Prerequisite]
2. BOX_LIST_FILE_COLLABORATIONS - List who has access to a file [Required]
3. BOX_UPDATE_COLLABORATION - Change access level or accept/reject invitations [Required]
4. BOX_GET_COLLABORATION - Get details of a specific collaboration [Optional]
5. BOX_UPDATE_FILE - Create shared links, lock files, or update permissions [Optional]
6. BOX_UPDATE_FOLDER - Create shared links on folders [Optional]
Key parameters:
collaboration_id: Unique collaboration identifierrole: Access level ("editor","viewer","co-owner","owner","previewer","uploader","viewer uploader","previewer uploader")status:"accepted","pending", or"rejected"for collaboration invitesfile_id: File to share or managelock__access: Set to"lock"to lock a file- Inspect the current schema for download permissions; access levels such as
"company"/"open"are not interchangeable with a boolean can_download permission
Pitfalls:
- Only certain roles can invite collaborators; insufficient permissions cause authorization errors
can_view_pathincreases load time for the invitee's "All Files" page; limit to 1000 per user- Collaboration expiration requires enterprise admin settings to be enabled
- Nested parameter names use double underscores (e.g.,
lock__access,parent__id)
5. Box Sign Requests
When to use: User wants to manage document signature requests
Tool sequence:
1. BOX_LIST_BOX_SIGN_REQUESTS - List all signature requests [Required]
2. BOX_GET_BOX_SIGN_REQUEST_BY_ID - Get details of a specific sign request [Optional]
3. BOX_CANCEL_BOX_SIGN_REQUEST - Cancel a pending sign request [Optional]
Key parameters:
sign_request_id: UUID of the sign requestshared_requests: Settrueto include requests where user is a collaborator (not owner)senders: Filter by sender emails (requiresshared_requests: true)limit/marker: Pagination parameters
Pitfalls:
- Requires Box Sign to be enabled for the enterprise account
- Deleted sign files or parent folders cause requests to not appear in listings
- Only the creator can cancel a sign request
- Sign request statuses include:
converting,created,sent,viewed,signed,declined,cancelled,expired,error_converting,error_sending
Common Patterns
ID Resolution
Box file/folder IDs are numeric strings; other entities, including Sign requests, may use UUIDs. Preserve each returned identifier:
- Root folder: Always ID
"0" - File ID from URL:
https://*.app.box.com/files/123gives file_id"123" - Folder ID from URL:
https://*.app.box.com/folder/123gives folder_id"123" - Search to ID:
… (nội dung đầy đủ có trong gói tải về)
Skill liên quan
- mpp-agent – Thanh toán các API HTTP 402 qua Machine Payments Protocol (MPP).
- brave-man – Thực hiện phỏng vấn làm rõ có cấu trúc cho các yêu cầu dự án mới trước khi xây dựng…
- prompt-engineering-patterns – Dùng skill này khi người dùng yêu cầu "optimize a prompt", "improve prompt performance"…
- founder-mode – /c-level-agents:founder-mode [câu hỏi] — Tự động định tuyến mọi câu hỏi của nhà sáng lập…
- brevo-automation – Tự động hóa vận hành email marketing Brevo (trước đây là Sendinblue) qua bộ công cụ…
- brooks-harness – Bộ điều phối bảo trì cho chính plugin brooks-lint.
- protect-mcp-setup – Cấu hình thực thi chính sách Cedar và biên nhận có chữ ký Ed25519 cho các lệnh gọi công…
- freeze – /c-level-agents:freeze [quyết định] [số ngày] — Khóa một quyết định chiến lược trong…