recipe-folder-size-and-counts SKILL.md skillA
recipe-folder-size-and-counts from files-com/files-cli is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add files-com/files-cli/recipe-folder-size-and-counts@git:20260930.4eb6b13Pins git:20260930.4eb6b13 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- files-com/files-cli
- Path
skills/recipes/recipe-folder-size-and-counts/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260930.4eb6b13, committed Sep 30, 2026
- First version recorded
- Jun 16, 2026
- Size
- 5,327 bytes
- Repository stars
- 46
- License
- MIT
Determine storage usage and file/folder counts on Files.com from the data the agent can actually read back, without recursively walking the tree; use this when the user asks "how big is this folder", "how much storage are we using", or "how many files do we have". The agent-readable source is `usage-snapshots` / `usage-daily-snapshots` (size and file count per top-level folder) and `site/usage` (site totals). Note the important limits: usage data only breaks down by top-level folder, and the…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# recipe-folder-size-and-counts
Files.com computes storage usage and file counts on a recurring schedule. **Read that precomputed data — do not recursively walk a folder tree to add up sizes or count files.** A manual walk is slow, burns API rate limit, and still will not match the platform's own accounting. The catch is that not every size figure is readable back through the API; this recipe is about getting an answer the agent can actually *see*.
## When to use this skill
- "How much storage is this folder / our site using?"
- "How many files do we have?" / "How many files are under this top-level folder?"
- A previous attempt tried to `list` folders recursively to sum sizes — stop and use the data below.
## What the agent can read directly
`usage-snapshots` and `usage-daily-snapshots` are plain `list` reads — the results come straight back, no email, no polling.
files-cli usage-snapshots list --format=json
Each snapshot includes:
- `current_storage`, `high_water_storage`, `root_storage` — site-wide storage in GB (`high_water_storage` is what billing uses).
…Read the whole file at its exact version.
How to install
mdr add files-com/files-cli/recipe-folder-size-and-counts@sha256:3877649c4da466a0The line at the top of this page pins the label git:20260930.4eb6b13, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_xvpazmzztgw6woay)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Jun 16, 2026 and Sep 30, 2026, about one every 105 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260930.4eb6b13 latest | 2026-09-30 | 4eb6b13 | 5,327 B | A | view · diff |
| git:20260616.cf838de | 2026-06-16 | cf838de | 5,140 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5327 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
files-com/files-cli · 46 stars · license MIT · pushed 2026-11-06 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_xvpazmzztgw6woay GET https://markdownregistry.com/api/v1/resolve?ref=files-com/files-cli/recipe-folder-size-and-counts GET https://markdownregistry.com/api/v1/blob/3877649c4da466a0e8a101782d46692a74f6bf2db571c78a02f59cc7e54694ea
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.