Box

From fanfan-de/anybox · View interactive version

Box is an AI agent skill from the GitHub repository fanfan-de/anybox. Build and troubleshoot Box integrations for uploads, folders, folder listings, downloads and previews, shared links, collaborations, search, metadata, event-driven automations, and Box AI retrieval flows. Use when Codex needs to add Box APIs or SDKs to an app, wire Box-backed document workflows, org

How to use this skill

Skill file

Box Content API

Overview

Implement Box content workflows in application code. Reuse the repository's existing auth and HTTP or SDK stack whenever possible, identify the acting Box identity before coding, and make the smallest end-to-end path work before layering on sharing, metadata, webhooks, or AI.

Route The Request

| If the user needs... | Primary object | Read first | Pair with | Minimal verification |

| --- | --- | --- | --- | --- |

| Local verification, manual smoke tests, or quick inspection from Codex without app code changes | Current CLI environment | references/box-cli.md | references/auth-and-setup.md | scripts/box_cli_smoke.py check-auth then a read command |

| Uploads, folders, listings, downloads, shared links, collaborations, or metadata | File or folder | references/content-workflows.md | references/auth-and-setup.md | Read-after-write call using the same actor |

| Organizing, reorganizing, or batch-moving files across folders; bulk metadata tagging; migrating folder structures | File set or folder tree | references/bulk-operations.md | references/auth-and-setup.md, references/content-workflows.md, references/ai-and-retrieval.md | Inventory source, verify move count matches plan |

| Event-driven ingestion, new-file triggers, or webhook debugging | Webhook or events feed | references/webhooks-and-events.md | references/auth-and-setup.md, references/troubleshooting.md | Signature check plus duplicate-delivery test |

| Search, document retrieval, summarization, extraction, or Box AI | Search result set or file content | references/ai-and-retrieval.md | references/auth-and-setup.md | Retrieval-quality check before answer formatting |

| 401, 403, 404, 409, 429, missing content, or wrong-actor bugs | Existing request path | references/troubleshooting.md | references/auth-and-setup.md | Reproduce with the exact actor, object ID, and endpoint |

| Unsure which workflow applies | Unknown | references/workflows.md | references/auth-and-setup.md | Choose the smallest Box object/action pair first |

Workflow

Follow these steps in order when coding against Box.

  1. Inspect the repository for existing Box auth, SDK or HTTP client, env vars, webhook handlers, Box ID persistence, and tests.
  2. Determine the acting identity before choosing endpoints: connected user, enterprise service account, app user, or platform-provided token.
  3. Identify the primary Box object and choose the matching reference from the routing table above.
  4. Confirm whether the task changes access or data exposure. Shared links, collaborations, auth changes, large-scale downloads, and broad AI retrieval all need explicit user confirmation before widening access or scope.
  5. Read only the matching reference files:
  1. Implement the smallest end-to-end flow that proves the integration works.
  2. Add a runnable verification step. Prefer the repository's tests first; otherwise use scripts/box_cli_smoke.py when Box CLI is available and authenticated, and scripts/box_rest.py as a fallback.
  3. Summarize the deliverable with auth context, Box IDs, env vars or config, and the exact verification command or test.

Guardrails

Verification

Example smoke checks:

python3 scripts/box_cli_smoke.py check-auth
python3 scripts/box_cli_smoke.py get-folder 0 --fields id name item_collection
python3 scripts/box_cli_smoke.py list-folder-items 0 --max-items 20
python3 scripts/box_cli_smoke.py search "invoice" --limit 10
python3 scripts/box_rest.py get-item --item-type folder --item-id 0 --fields id name item_collection

Deliverable

The final answer should include:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.