Index of every page on this site: llms.txt
All skills
box avatar

/box-integration-best-practices

@83c405c official
by boxbox/skills9 stars
9
Run it yourself

Build, debug, or review repeatable Box API integrations and agent workflows for efficient calls, bulk work, and 429 handling.

Use this Skill: https://skilld.dev/gh/box/skills/box-integration-best-practices

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈39 tokens for metadata: the name and description. ≈692 when used: this file.

Description uses 2.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈158 characters, or 2.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Box integration best practices

Preserve result coverage and permissions when reducing calls. For bulk work or 429 errors, estimate calls per completed item and peak request rate by Box actor and endpoint. Budget uploads and search against their separate limits. Check the current rate limits; user, endpoint, enterprise, and temporary quality-of-service limits may apply.

Reduce calls

For reviews, trace Box requests through loops and retry paths before changing concurrency or seeking more capacity.

  • Reuse cached access tokens. Request fields needed for a decision in the list response when supported, and reuse returned data instead of fetching each item again. fields reduces call count only when it replaces a follow-up read.
  • Use the largest useful supported page size. For large or changing collections, use marker pagination where supported; follow next_marker to completion and do not treat a marker as a durable checkpoint.
  • Use webhooks or events with a catch-up path instead of repeated full scans. Deduplicate deliveries; checkpoint event stream positions after successful processing. Query supported enterprise metadata templates instead of fetching metadata for every file.
  • When content stays in Box, prefer Box-side copy, move, or update operations over download and re-upload.

Control bulk work and retries

  • Bound concurrency across workers sharing a Box actor, accounting for endpoint and enterprise limits. On 429, honor Retry-After across affected workers. Current official SDKs retry 429s; check the installed version before adding another retry layer. For direct HTTP, use bounded backoff with jitter.
  • For long-running jobs, persist per-item outcomes so work can resume. Reconcile uncertain writes before retrying them.
  • Refresh expired tokens on 401; pause if failures persist. For 403, record item-specific denials and pause when failures indicate actor or app access is wrong.
  • If necessary traffic still exceeds available capacity after removing avoidable calls, surface the capacity need. Do not rotate identities to evade limits.

Check the result

Record Box calls and 429s by actor, endpoint, and status; compare calls per completed item and completed-job throughput on a representative workload. Use the Platform Activity report for historical per-app totals. If a token reaches a browser or other client-side component, downscope it.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill provides best practices and documentation for Box API integrations. It contains only instructional text and no executable code or risky patterns.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 83c405c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated last month

README badge

README badge for box/skills/box-integration-best-practices