spice-edit: Command for Claude Code

.claude/commands/summary-of-downloads.md

summary-of-downloads is a command for Claude Code from cloudmanic/spice-edit. It costs 19 tokens per session (450 once invoked), scanned A, original, MIT.

A command recipe for summarising GitHub release download counts for SpiceEdit. It reports totals overall, by operating system and processor type, and for the ten most-downloaded versions.

In plain words
What is it for?
Use it to fetch release data with the GitHub command-line tool and produce a three-part summary of SpiceEdit downloads.
Why use it?
It avoids manually collecting download counts from every release and excludes checksum files from the totals. The result is clearly treated as an upper bound because downloads can include automated systems, mirrors, and package installs.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is cloudmanic/spice-edit's own configuration. It tells Claude Code how to work on spice-edit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything spice-edit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cloudmanic/spice-edit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cloudmanic/spice-edit/main/.claude/commands/summary-of-downloads.md
Clone the repo
git clone --depth 1 https://github.com/cloudmanic/spice-edit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for summary-of-downloads

README.md
[![agentmods](https://agentmods.dev/badge/commands/cloudmanic/spice-edit/summary-of-downloads/github.svg)](https://agentmods.dev/commands/cloudmanic/spice-edit/summary-of-downloads)
Your own site
<a href="https://agentmods.dev/commands/cloudmanic/spice-edit/summary-of-downloads"><img src="https://agentmods.dev/badge/commands/cloudmanic/spice-edit/summary-of-downloads/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for summary-of-downloads

Your own site · 80×15
<a href="https://agentmods.dev/commands/cloudmanic/spice-edit/summary-of-downloads"><img src="https://agentmods.dev/badge/commands/cloudmanic/spice-edit/summary-of-downloads.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 450 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00019 $0.00450
Opus 5 $0.00010 $0.00225
Sonnet 5 $0.00004 $0.00090
Haiku 4.5 $0.00002 $0.00045

Measured 11d ago against content hash ed42fbd3018f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

summary-of-downloads 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 11d ago.

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.

.claude/commands/summary-of-downloads.md · 24 lines

What it actually says

Run the following and present the results as a clean summary with three sections (Grand total, By platform, Top 10 versions). Note in the output that the count includes Homebrew installs, CI, mirrors, and scrapers — it's an upper bound, not unique humans. Exclude checksums.txt from totals.

gh api repos/cloudmanic/spice-edit/releases --paginate > /tmp/spiceedit_releases.json

echo "=== GRAND TOTAL ==="
jq '[.[] | (.assets // [])[] | select(.name != "checksums.txt") | .download_count] | add' /tmp/spiceedit_releases.json

echo ""
echo "=== BY PLATFORM ==="
jq -r '[.[] | (.assets // [])[] | select(.name != "checksums.txt")] | group_by(.name | capture("_(?<p>(darwin|linux|windows)_(amd64|arm64))") | .p) | map({platform: (.[0].name | capture("_(?<p>(darwin|linux|windows)_(amd64|arm64))") | .p), total: (map(.download_count) | add)}) | sort_by(-.total) | .[] | "\(.total)\t\(.platform)"' /tmp/spiceedit_releases.json

echo ""
echo "=== BY VERSION (top 10) ==="
jq -r '[.[] | {tag: .tag_name, published: .published_at, total: ((.assets // []) | map(select(.name != "checksums.txt") | .download_count) | add // 0)}] | sort_by(-.total) | .[0:10] | .[] | "\(.total)\t\(.tag)\t\(.published)"' /tmp/spiceedit_releases.json

After presenting the summary, briefly call out anything notable (e.g. a release that's an obvious outlier, dominant platform, recent vs. older traction).

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. 11d ago First seen · 24 lines · 19 tokens per session scan A ed42fbd3018f

Subscribe to this mod's changes

summary-of-downloads is a command published in the GitHub repository cloudmanic/spice-edit (82 stars, last pushed 5d ago), licensed MIT. It adds 19 tokens to every session and 450 once invoked, about $0.0001 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.