workspace-digest

A workspace file scanner that creates a short inventory of files saved in the assistant’s shared workspace. It reports notable files, file sizes, and the total amount of data.

In plain words
What is it for?
Use it to get a file digest, count and size summary, or inventory of a selected workspace folder before opening specific files.
Why use it?
It answers what is stored in the workspace without requiring you to inspect folders one by one. You can also limit the scan to a subdirectory.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cloudflare/agents/workspace-digest
Any agent
npx skills add cloudflare/agents --skill workspace-digest
Clone the repo
git clone --depth 1 https://github.com/cloudflare/agents

Made for: Claude Code, Codex.

Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 242 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00040 $0.00242
Opus 5 $0.00020 $0.00121
Sonnet 5 $0.00008 $0.00048
Haiku 4.5 $0.00004 $0.00024

Measured 3d ago against content hash cabb88258971, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

workspace-digest scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/digest.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/assistant/agents/assistant/agents/my-assistant/skills/workspace-digest/SKILL.md · 27 lines

What it actually says

Workspace Digest

Produce a concise inventory of the files saved in this assistant's shared workspace (the same workspace every chat under this user shares).

Process

  1. Run scripts/digest.ts to scan the workspace and build a file inventory. Pass { "dir": "/some/path" } to scope the scan to a subdirectory.
  2. Summarize the result for the user: how many files, the notable ones, and the total size.
  3. Offer to open or read any specific file the user is interested in.

The TypeScript script is function-style (export default run(input, ctx)). It reads the workspace through ctx.workspace (read-only) and a formatting hint bundled alongside the skill via ctx.files.

Output format

Keep the digest short - a markdown list of files with sizes, plus a one-line summary. Only print the full listing if the user asks for it.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 27 lines · 40 tokens per session scan A cabb88258971

Subscribe to this mod's changes

workspace-digest is a skill published in the GitHub repository cloudflare/agents (5,503 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 242 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

one

Use the One CLI (one) to interact with 3rd-party platforms — Gmail, Slack, Stripe, Notion, etc. through their APIs. One handles auth, request building, and execution. TRIGGER when: Interact with ANY 3rd-party platform or external service (e.g., "send an email", "create a Shopify order", "find a HubSpot contact", "post…

withoneai/cli · 239 tokens

agent-self-scheduling

Schedule AI agent runs with cron, loops, or external clocks while avoiding unsafe tight autonomous timers.

sickn33/agentic-awesome-skills · 24 tokens

crewai-multi-agent

Multi-agent orchestration framework for autonomous AI collaboration. Use when building teams of specialized agents working together on complex tasks, when you need role-based agent collaboration with memory, or for production workflows requiring sequential/hierarchical execution. Built without LangChain dependencies…

davila7/claude-code-templates · 61 tokens

computer-use

Read and drive native desktop applications through the accessibility layer — list on-screen apps, snapshot one window as a numbered element tree, then click / type / set a value / scroll / drag / run a named action, by element index or by screen coordinates. Use for work in a desktop app rather than a web page. Full…

kirodotdev/KiroCrew · 105 tokens

mochi-slack

Slack awareness — unread mentions, channel digests, topic radar, thread summaries. Load when user asks about Slack.

kirodotdev/KiroCrew · 28 tokens

meetings

Context for working with the Meetings app's data — where a meeting's notes, diagram, transcript-derived tasks, and calendar cache live, what the lifecycle states mean, and how the app's agents are driven. Load when the user asks about a meeting's notes or action items, or when writing/reading files under the meetings…

kirodotdev/KiroCrew · 72 tokens