standardgraph: Command for Claude Code

.claude/commands/release.md

release is a command for Claude Code from swoopeagle/standardgraph. It costs 0 tokens per session (425 once invoked), scanned C, original, MIT.

A release procedure for publishing a new StandardGraph version to PyPI, the main package registry for Python software, and optionally Hugging Face, a platform for sharing machine-learning files and tools.

In plain words
What is it for?
Use it to prepare and publish StandardGraph releases, update its package version, upload built files, and decide whether database changes also require a Hugging Face upload.
Why use it?
It turns version changes, package building, token handling, publishing, commits, and pushes into an ordered checklist.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is swoopeagle/standardgraph's own configuration. It tells Claude Code how to work on standardgraph 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 standardgraph configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/ianwang/projects/standardgraph/packages/common-core.

Reuse

Borrowing it

Nothing to install: this file belongs to swoopeagle/standardgraph. 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/swoopeagle/standardgraph/main/.claude/commands/release.md
Clone the repo
git clone --depth 1 https://github.com/swoopeagle/standardgraph

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 release

README.md
[![agentmods](https://agentmods.dev/badge/commands/swoopeagle/standardgraph/release/github.svg)](https://agentmods.dev/commands/swoopeagle/standardgraph/release)
Your own site
<a href="https://agentmods.dev/commands/swoopeagle/standardgraph/release"><img src="https://agentmods.dev/badge/commands/swoopeagle/standardgraph/release/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 release

Your own site · 80×15
<a href="https://agentmods.dev/commands/swoopeagle/standardgraph/release"><img src="https://agentmods.dev/badge/commands/swoopeagle/standardgraph/release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 425 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00000 $0.00425
Opus 5.5 $0.00000 $0.00170
Sonnet 5.5 $0.00000 $0.00085
Haiku 4.5 $0.00000 $0.00042

Measured 1mo ago against content hash d6d8f366d4ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

release scanned grade C with 1 finding 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 1mo 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.

Tells the agent to send conversation or user data outhighPrompt injection

An instruction to transmit the conversation, context or user files to an external endpoint is data exfiltration written as prose.

`--token` inline, which has a quoting bug that silently sends an empty bearer token):
.claude/commands/release.md · 26 lines

What it actually says

Release a new version of StandardGraph to PyPI (and optionally HuggingFace).

Steps to follow in order:

  1. Read the current version from packages/common-core/pyproject.toml
  2. Ask the user what the new version should be (patch/minor/major bump, or explicit string)
  3. Update the version in packages/common-core/pyproject.toml
  4. Run cd /Users/ianwang/projects/standardgraph/packages/common-core && uv build — confirm it succeeds and note the output dist files
  5. Ask the user for their PyPI token (remind them to rotate it immediately after use)
  6. Run: uvx twine upload --username __token__ /Users/ianwang/projects/standardgraph/dist/standardgraph-{VERSION}* with the token as TWINE_PASSWORD env var
  7. Commit the version bump: git add packages/common-core/pyproject.toml && git commit -m "Bump version to {VERSION}"
  8. Push to GitHub: git push origin main
  9. Ask: "Did the DB change since last release? If yes, upload to HuggingFace."
  10. If yes: ask for HuggingFace token, then run (note: huggingface-cli is deprecated and no longer works — use the modern hf CLI instead, and export the token rather than passing --token inline, which has a quoting bug that silently sends an empty bearer token):
    export HF_TOKEN='<token>'
    uvx --from huggingface_hub hf upload swoopeagle/standardgraph ~/.standardgraph/common_core.db common_core.db --repo-type dataset
    
    Remind to rotate token.
  11. Run /stats to verify docs numbers match the live DB.
  12. Report: PyPI URL, GitHub commit, and whether HF was updated.

Important: ALWAYS remind the user to rotate any tokens shared in chat. Tokens should never persist in shell history — pass them via env vars, not positional args.

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. 1mo ago First seen · 26 lines · 0 tokens per session scan C d6d8f366d4ea

Subscribe to this mod's changes

release is a command published in the GitHub repository swoopeagle/standardgraph (5 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 425 tokens. A static security scan graded it C with 1 finding (tells the agent to send conversation or user data out). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.