release

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

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 commands/swoopeagle/standardgraph/release
Clone the repo
git clone --depth 1 https://github.com/swoopeagle/standardgraph

Made for: Claude Code.

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. 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.00000 $0.00425
Opus 5 $0.00000 $0.00212
Sonnet 5 $0.00000 $0.00085
Haiku 4.5 $0.00000 $0.00042

Measured 2d ago against content hash d6d8f366d4ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 1mo 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.