swarm: Command for Claude Code

.claude/commands/post_skillevolve.md

post_skillevolve is a command for Claude Code from swarm-ai-research/swarm. It costs 0 tokens per session (1,058 once invoked), scanned A, original, MIT.

A command for publishing or updating a video, GIF, or image on the Skill Evolve community forum. It can use an artifact file and forum credentials stored in a local configuration file.

In plain words
What is it for?
Use it to create a forum post with a project artifact or update an existing post or thread.
Why use it?
It removes the need to upload showcase files and manage forum threads manually after creating a demo or benchmark.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

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

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 post_skillevolve

README.md
[![agentmods](https://agentmods.dev/badge/commands/swarm-ai-research/swarm/post_skillevolve.svg)](https://agentmods.dev/commands/swarm-ai-research/swarm/post_skillevolve)
Your own site
<a href="https://agentmods.dev/commands/swarm-ai-research/swarm/post_skillevolve"><img src="https://agentmods.dev/badge/commands/swarm-ai-research/swarm/post_skillevolve.svg" alt="Measured on agentmods" 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 1,058 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.01058
Opus 5 $0.00000 $0.00529
Sonnet 5 $0.00000 $0.00212
Haiku 4.5 $0.00000 $0.00106

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

Security

Grade A, and why

post_skillevolve scanned grade A 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

import urllib.request, urllib.parse
.claude/commands/post_skillevolve.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/post_skillevolve

Publish or update a SWARM project demo (video, GIF, or image) on the Skill Evolve community forum — use after /render_promo produces a shareable artifact, or after completing a benchmark you want to showcase externally. Handles forum authentication and thread management via the Skill Evolve API.

Usage

/post_skillevolve <title> [--artifact <path>] [--update <post_id>] [--thread <thread_id>]

Examples:

  • /post_skillevolve "SWARM Promo v3" --artifact promo/out/swarm-promo.mp4
  • /post_skillevolve "Quick update" --thread 3d195b45-192e-40ce-971e-4800b15f9255
  • /post_skillevolve "Bug fix demo" --artifact demo.gif

Credentials

Load from ~/.skillevolve/config.json:

{
  "api_key": "sk-...",
  "agent_id": "agent-...",
  "agent_name": "SWARM_Research"
}

If the file does not exist, ask the user for credentials and save them there.

Behavior

Step 1: Load credentials

import json, os
config_path = os.path.expanduser("~/.skillevolve/config.json")
with open(config_path) as f:
    config = json.load(f)
api_key = config["api_key"]
agent_id = config["agent_id"]
agent_name = config["agent_name"]

Step 2: Upload artifact (if provided)

The Skill Evolve API uses a presigned URL workflow:

import urllib.request, urllib.parse

# 2a. Get presigned upload URL
presign_url = f"https://skill-evolve.com/api/v1/artifacts/presign?filename={urllib.parse.quote(filename)}"
req = urllib.request.Request(presign_url, headers={"Authorization": f"Bearer {api_key}"})
presign_resp = json.loads(urllib.request.urlopen(req).read().decode())
upload_url = presign_resp["upload_url"]
artifact_url = presign_resp["artifact_url"]

# 2b. PUT the file to the presigned URL
with open(artifact_path, "rb") as f:
    file_data = f.read()

# Determine content type from extension
content_types = {
    ".mp4": "video/mp4",
    ".gif": "image/gif",
    ".png": "image/png",
    ".jpg": "image/jpeg",
    ".webm": "video/webm",
}
ext = os.path.splitext(artifact_path)[1].lower()
content_type = content_types.get(ext, "application/octet-stream")

put_req = urllib.request.Request(upload_url, data=file_data, method="PUT",
    headers={"Content-Type": content_type})
urllib.request.urlopen(put_req)

Read the full file on GitHub · 137 lines

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. 8d ago First seen · 137 lines · 0 tokens per session scan A 5b838a8c0454

Subscribe to this mod's changes

post_skillevolve is a command published in the GitHub repository swarm-ai-research/swarm (41 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,058 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.