swanlab-skill

swanlab-skill is a skill for Claude Code, Codex from Nexisato/SwanLab-MCP. It costs 113 tokens per session (2,182 once invoked), scanned C, original, MIT.

A helper for SwanLab, a platform for recording and inspecting machine-learning training experiments. It supports writing tracking code and querying experiment metrics, logs, summaries, media, and runs.

In plain words
What is it for?
Use it to add experiment tracking to Python training code, record metrics or media, list and filter runs, and analyze experiment results.
Why use it?
It keeps training results and related media available for later inspection and comparison instead of leaving them only in program output. It also provides a way to query recorded experiment data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add experiment tracking to Python training code, record metrics or media, list and filter runs, and analyze experiment results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nexisato/swanlab-mcp/swanlab-skill
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.

Any agent
npx skills add Nexisato/SwanLab-MCP --skill swanlab-skill
Clone the repo
git clone --depth 1 https://github.com/Nexisato/SwanLab-MCP

Made for: Claude Code, Codex.

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 swanlab-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/nexisato/swanlab-mcp/swanlab-skill/github.svg)](https://agentmods.dev/skills/nexisato/swanlab-mcp/swanlab-skill)
Your own site
<a href="https://agentmods.dev/skills/nexisato/swanlab-mcp/swanlab-skill"><img src="https://agentmods.dev/badge/skills/nexisato/swanlab-mcp/swanlab-skill/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 swanlab-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/nexisato/swanlab-mcp/swanlab-skill"><img src="https://agentmods.dev/badge/skills/nexisato/swanlab-mcp/swanlab-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,182 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.00113 $0.02182
Opus 5.5 $0.00045 $0.00873
Sonnet 5.5 $0.00023 $0.00436
Haiku 4.5 $0.00011 $0.00218

Measured yesterday against content hash 95c740a37410, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

swanlab-skill 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 yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/plot_metrics.py, scripts/runs_benchmark.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

After confirming the server is reachable, use `swanlab verify` to check that stored credentials are valid and have not expired. This reads the API key and host from the local `.netrc` file (created by `swanlab login`).
src/swanlab_mcp/skills/swanlab-skill/SKILL.md · 165 lines

How it starts

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

SwanLab Skill

SwanLab is an AI training experiment tracking platform. This skill covers two usage patterns:

  • Writing tracking code — use the Python SDK (swanlab.init, swanlab.log, swanlab.finish, media helpers)
  • Reading experiment data — use the swanlab api CLI to query metrics, histograms, logs, summaries, media, etc.

Reference Routing

If the user wants to... Read this reference
Write tracking code (init/log/finish/media) references/SDK_QUICKSTART.md
Query data via CLI (metrics/summary/logs/filter/etc.) references/CLI_REFERENCE.md
Understand data model / terminology / filter syntax references/SWANLAB_CONCEPTS.md
Analyze runs/projects, compare experiments, write an experiment report references/ANALYSIS_GUIDE.md
Plot metrics or compare experiments visually See Scripts below

Version note (SDK ≥ 0.9.0): use swanlab api run series to discover an experiment's metric keys. run column / run columns are deprecated since 0.9.0 and do not apply to multi-view experiments — only fall back to them when the installed SDK is < 0.9.0. See CLI_REFERENCE.md > Version Applicability.


Run Modes

swanlab.init(mode=...) controls where data goes:

Mode Local Storage Cloud Upload Use Case
online Yes (protobuf) Yes (Transport → HTTP) Normal cloud usage. Requires login.
local Yes (protobuf) No Air-gapped / no account needed.
offline Yes (protobuf) No (syncable later via swanlab sync) Save locally, upload to cloud later.
disabled No No Completely disable all logging.

Read the full file on GitHub · 165 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 165 lines · 113 tokens per session scan C 95c740a37410

Subscribe to this mod's changes

swanlab-skill is a skill published in the GitHub repository Nexisato/SwanLab-MCP (10 stars, last pushed 2d ago), licensed MIT. It adds 113 tokens to every session and 2,182 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-03.

Related

swanlab-skill compared with skills from other repositories

swanlab-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swanlab-skillNexisato/SwanLab-MCPSkill102d agoMITC113Claude Code, Codex
agent-platform-model-registrygoogle/skillsSkill26kyesterdayApache-2.0A60Claude Code, Codex
llm-evaluationsickn33/agentic-awesome-skillsSkill51ktodayMITA25Claude Code
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill26kyesterdayApache-2.0A132Claude Code, Codex
training-checkwanshuiyin/Auto-claude-code-research-in-sleepSkill20k2d agoMITA35Claude Code
tao-run-inference-serviceNVIDIA/skillsSkill4.3kyesterdayApache-2.0A92Claude Code
nemo-automodel-launcher-configNVIDIA/skillsSkill4.3kyesterdayApache-2.0A30Claude Code