Skip to content

feat(den): store skill files once and allow binary files up to 30 MiB - #7604

Merged
reachjalil merged 1 commit into
devfrom
feat/skill-files-stored-once
Nov 20, 2026
Merged

reachjalil merged 1 commit into
devfrom
feat/skill-files-stored-once

Conversation

@reachjalil

Copy link
Copy Markdown
Member

What is this about?

Cloud skills can now carry any kind of file (images, fonts, office templates, scripts) up to 30 MiB per skill, the same size Anthropic's Agent Skills allow, so teams can bring their skills over intact.

What problem does it solve?

A skill could only hold text, at most 8 MiB, because every file lived inside one encrypted payload column. Every skill listing also loaded and hashed every file, so raising the limit would have slowed everyone's skill sync.

What was the situation before?

Before After
File types Text only Any
Per skill / per file 8 MiB / 1 MiB 30 MiB / 10 MiB
Where contents live Inside each version Stored once per organization
What a listing loads Every file File list only

How is this implemented?

  • ee/packages/den-db: new skill_file_blob table (migration 0206) holding contents encrypted at rest, keyed by organization and sha256.
  • ee/apps/den-api/src/skill-file-blobs.ts: writes one file per statement before the version's transaction (PlanetScale query and transaction limits), and reads one file at a time, checked against its digest.
  • Versions list { path, sha256, size }. Versions that kept text inline still read, and move to storage on their next save.
  • create_skill/update_skill take text or base64. get_skill describes binary files and shows small images; their skill:// resource returns the bytes. Configuration exports carry contents. Organization deletion removes the files.

What else changed?

  • The agent MCP endpoint accepts requests up to 48 MiB, enough for a full skill in base64.

Release note

Cloud skills can now include images, fonts, templates and other files, up to 30 MB per skill.

Evidence

No E2E. ee/apps/den-api/test/api/skill-files.api.test.ts: before, a skill held at most 8 MiB of text. After, a 30 MiB skill with a binary file saves, reads back byte for byte, stores each file once, and older inline files still read.

… per skill

A skill version kept every supporting file's text inside its encrypted
payload column. That capped a skill at about 12.5 MB, allowed text only,
and made every skill listing load and hash every listed skill's files.

- New skill_file_blob table: each file's contents, encrypted at rest,
  stored once per organization by sha256. A version lists its files as
  { path, sha256, size }, so listings never load contents and a version
  that keeps a file reuses its row.
- Contents are written one file per statement before the version's
  transaction, to stay within PlanetScale's query and transaction limits.
- Files can be any type: create_skill and update_skill take text or
  base64. Limits are 10 MiB per file and 30 MiB per skill, matching
  Anthropic's Agent Skills.
- get_skill describes binary files (and shows small images); their
  skill:// resource returns the bytes.
- Versions that kept text inline still read, and move to storage on the
  next save. Config exports carry contents so they import anywhere.
- Organization deletion removes the stored files.

Signed-off-by: Jalil <reachjalil@gmail.com>
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated
openwork-app Skipped Skipped Nov 20, 2026 2:09am UTC
openwork-den Skipped Skipped Nov 20, 2026 2:09am UTC
openwork-landing Skipped Skipped v0 Nov 20, 2026 2:09am UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – openwork-landing November 20, 2026 02:09 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-app November 20, 2026 02:09 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-den November 20, 2026 02:09 Inactive
@reachjalil
reachjalil merged commit 9a0e5a2 into dev Nov 20, 2026
21 checks passed

This branch was previously deployed

3 inactive deployments
Preview – openwork-den — 032fa759 Deployed Nov 20, 2026 by vercel[bot]
Preview – openwork-landing — 032fa759 Deployed Nov 20, 2026 by vercel[bot]
Preview – openwork-app — 032fa759 Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant