huawei-cloud-cloudrobo-train-metrics

huawei-cloud-cloudrobo-train-metrics is a skill for Claude Code, Codex from huaweicloud/huaweicloud-skills. It costs 149 tokens per session (2,731 once invoked), scanned A, original, MIT.

An integration guide for recording PyTorch training measurements with the ocms library and sending them to Huawei Octopus. Training measurements can include values such as loss, learning rate, timing, evaluation scores, and gradient size.

In plain words
What is it for?
Use it to add metric reporting to custom PyTorch loops or supported training frameworks such as Transformers Trainer, Lightning, Accelerate, or MMEngine.
Why use it?
Training scripts often record metrics differently, making them difficult to view consistently. This adds a common recorder and can continue running without the optional ocms package outside the Octopus platform.

Skill for Claude CodeCodex

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

Good fit Use it to add metric reporting to custom PyTorch loops or supported training frameworks such as Transformers Trainer, Lightning, Accelerate, or MMEngine.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huaweicloud/huaweicloud-skills/huawei-cloud-cloudrobo-train-metrics
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 huaweicloud/huaweicloud-skills --skill huawei-cloud-cloudrobo-train-metrics
Clone the repo
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills

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 huawei-cloud-cloudrobo-train-metrics

README.md
[![agentmods](https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-cloudrobo-train-metrics/github.svg)](https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-cloudrobo-train-metrics)
Your own site
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-cloudrobo-train-metrics"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-cloudrobo-train-metrics/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 huawei-cloud-cloudrobo-train-metrics

Your own site · 80×15
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-cloudrobo-train-metrics"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-cloudrobo-train-metrics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 149 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,731 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.00149 $0.02731
Opus 5.5 $0.00060 $0.01092
Sonnet 5.5 $0.00030 $0.00546
Haiku 4.5 $0.00015 $0.00273

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

Security

Grade A, and why

huawei-cloud-cloudrobo-train-metrics 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 26d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/ocms_recorder.py, scripts/verify_ocms.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.

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.

skills/ai/cloudrobo/huawei-cloud-cloudrobo-train-metrics/SKILL.md · 273 lines

How it starts

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

ocms Training Metric Integration

Overview

This skill integrates the ocms library into PyTorch training scripts so training metrics can be reported to the Huawei Octopus platform. It provides a framework-agnostic recorder module plus integration patterns for common training frameworks.

Workflow at a glance:

  1. Check whether the ocms package is available (optional install, see "Step 0" — the integration works without it)
  2. Discover where the training script logs metrics
  3. Copy scripts/ocms_recorder.py into the project
  4. Integrate per the training framework (see below)
  5. Verify with python3 scripts/verify_ocms.py

Prerequisites

  1. A PyTorch training script to integrate with (custom loop, HF Trainer, Lightning, Accelerate, MMEngine, or a shared base class).
  2. Python 3.8+: run all commands with the training environment activated (e.g. conda activate <env>), so python3 is that environment's interpreter. The ocms package is optional: when it is missing, OcmsRecorder degrades gracefully without affecting training.
  3. Training output directory: metrics fall back to <output_dir>/ocms_metrics outside the Octopus platform (on the platform, the METRICS env var is preferred).

All commands below run from this skill's directory. Project-specific paths are passed through shell variables that the agent sets from the user's answers (see "Parameter Confirmation"); no command contains a placeholder that must be edited by hand.

Workflow

Step 0: Check ocms (install only where available)

python3 scripts/verify_ocms.py

The script reports whether ocms is installed and runs a self-test of the recorder in a temporary directory. Both outcomes are valid:

Result Meaning Next step
ocms: installed + OK: metrics.json and ... chart CSVs produced metric reporting is enabled continue with Step 1
ocms: not installed + OK: graceful degradation verified the recorder disables itself; training is unaffected continue with Step 1; install ocms only where it is available

Read the full file on GitHub · 273 lines

Files

What ships with it

5 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. 26d ago First seen · 273 lines · 149 tokens per session scan A d1d9cdcbdd20

Subscribe to this mod's changes

huawei-cloud-cloudrobo-train-metrics is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (59 stars, last pushed 4d ago), licensed MIT. It adds 149 tokens to every session and 2,731 once invoked, about $0.0006 per session on Opus 5.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-11-04.

Related

huawei-cloud-cloudrobo-train-metrics compared with skills from other repositories

huawei-cloud-cloudrobo-train-metrics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
huawei-cloud-cloudrobo-train-metricshuaweicloud/huaweicloud-skillsSkill594d agoMITA149Claude Code, Codex
agent-platform-model-registrygoogle/skillsSkill25ktodayApache-2.0A60Claude Code, Codex
llm-evaluationsickn33/agentic-awesome-skillsSkill51kyesterdayMITA25Claude Code
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill25ktodayApache-2.0A132Claude Code, Codex
training-checkwanshuiyin/Auto-claude-code-research-in-sleepSkill20kyesterdayMITA35Claude Code
foundry-config-setupmicrosoft/agent-frameworkSkill15k13d agoMITA65Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.2k2d agoApache-2.0A92Claude Code