mrdulasolutions/box/box-companion

Claude Code and agent skill by mrdulasolutions/box

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate a paired companion markdown file for a binary in Box. The companion describes what the file is - summary, key facts, classification, related memories - pinned to a specific version via SHA256 hash. This is the no-chunking, no-embedding alternative to RAG. Use when the user uploads a binary and asks to remember what it is, describe a file, make a companion, or review a PDF/CAD/Office document.

Install

npx vskill@latest install mrdulasolutions/box/box-companion

SKILL.md

/box-companion

If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.

Produce a markdown companion that describes a binary in Box. The binary stays whole — never chunked, never embedded. The companion is what agents read when they need to know what's in the file.

Usage

/box-companion <file-id-or-path> [--team=<team>] [--tags=<a,b,c>] [--force] [--check]

Examples:

  • /box-companion 2241144661879 — companion by Box file ID
  • /box-companion files/contract.pdf — companion by path
  • /box-companion 2241144661879 --check — is the existing companion still current?

What to do

  1. Resolve the file. Given file ID or path, fetch its Box metadata: filename, size, sha1, mime type, parent folder ID.
  2. Check for existing companion. Look up by_companion_for[<file_id>] in the relevant _index.json. If exists and current SHA matches the binary's, the companion is still valid — surface its content unless --force. If SHA differs, it's stale and needs regeneration.
  3. Compute SHA256. Stream-hash the binary. For very large files (>100 MB) where streaming isn't available, fall back to Box's SHA1 with hash_algo: sha1 in frontmatter.
  4. Review the file — two paths depending on tier and settings:

Path A — Box AI Extract Structured (preferred when available). If tier is Business+, _box-memory.json.settings.ai_extract_enabled is true, AND the file type is AI-supported (PDF, TIFF, PNG, JPEG, DOCX, XLSX, PPTX, TXT, MD): invoke box-ai-extract <file_id> --template=boxMemory. This runs OCR + schema-driven extraction in Box's cloud and returns structured fields with source-text citations. Use the result to populate companion frontmatter (title, tags, summary, key facts) plus a per-field references block. Mark the companion with extracted_via: box-ai-extract-structured and extracted_at: <ISO> for auditability.

Path B — local agent inspection (fallback or when AI is off). If Box AI isn't available, or the file type isn't AI-supported (CAD: DWG, DXF, RVT; audio; video; encrypted), or --no-ai was passed:

  • PDF/DOCX/XLSX → fetch text representation via Box MCP, agent reads
  • CAD / unsupported binary → describe by filename + size; be explicit about what you couldn't parse
  • Code/markdown → fetch raw content
  • Images → preview / multimodal description if available
  1. Generate IDs. Companion ID = ULID prefixed mem_. Slug from filename.
  2. Build frontmatter. Include kind: companion, companion_for: { file_id, filename, sha256, hash_algo, size_bytes, mime_type, reviewed_at, reviewed_by }. If Path A was used, include extracted_via: box-ai-extract-structured and extracted_at: <ISO>. If superseding a stale companion, set supersedes: [old-id].
  3. Compose body. Sections: "What's in this file" (use Path A's summary if available, else honest agent summary), "Key facts" (bulleted; populated from Path A extracted fields when available), "Structure" (page count / sheets / layers if relevant), "Classification / handling notes", "Related" (wikilinks), "Hash chain" (with current sha256), "Sources" (Path A's per-field references — gives the user a citation back into the binary), "What the agent did NOT verify" (be honest about gaps even when AI extracted — note anything that wasn't returned with high confidence).
  4. Upload companion. Sibling layout: <original-filename>.md next to binary. Folder layout: in companions/ (or teams/<team>/companions/).
  5. (Business+) Apply metadata template with kind: companion, companion_for_file_id = binary's file ID, sha256 = stored hash. Enables reverse-lookup queries.
  6. Update folder's `_index.json`. Entry with companion_for = binary's file ID, sha256 = stored hash. Update by_companion_for map.
  7. Report. Companion file ID, hash, first ~500 chars of body, and any stale-companion supersession.

Be honest about what you couldn't read

A small honest companion ("this is a 50 MB CAD file; I cannot extract layer info from this format") beats a fabricated one. Always include a "What the agent did NOT verify" checklist.

Errors to surface clearly

  • File not found → check ID or path.
  • No read access → Box ACLs deny; check folder permissions.
  • Preview unavailable for file type → generate sparse companion noting the gap.

Deep reference

For full companion frontmatter spec, hash-anchoring rationale, sibling vs folder layout tradeoffs, RAG-vs-companion design discussion, and file-type-specific review strategies:

  • Detailed procedure: https://github.com/mrdulasolutions/BOX/blob/main/references/skills/box-companion-detail.md
  • Schema (companion frontmatter): https://github.com/mrdulasolutions/BOX/blob/main/references/schema.md
  • Architecture (why companions not RAG): https://github.com/mrdulasolutions/BOX/blob/main/references/architecture.md

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mrdulasolutions/box/box-companion/badge)](https://verified-skill.com/skills/mrdulasolutions/box/box-companion)

Something wrong with this skill or its page? Tell us.