vastai-host-mcp: Skill for Claude Code

.github/skills/robust-commands/SKILL.md

robust-commands is a skill for Claude Code, Codex from Cogni-AI-OU/vastai-host-mcp. It costs 17 tokens per session (2,817 once invoked), scanned B, original, MIT.

A set of methods for running commands with fallback options and recovering from errors. It checks whether tools and prerequisites are available before continuing.

In plain words
What is it for?
It helps run commands locally, in containers, and in continuous-integration systems, including checking dependencies and trying alternative tools.
Why use it?
It reduces interruptions caused by missing commands, different environments, permission issues, or failed setup steps.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

This is Cogni-AI-OU/vastai-host-mcp's own configuration. It tells Claude Code and Codex how to work on vastai-host-mcp 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 vastai-host-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Cogni-AI-OU/vastai-host-mcp. 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/Cogni-AI-OU/vastai-host-mcp/main/.github/skills/robust-commands/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Cogni-AI-OU/vastai-host-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 robust-commands

README.md
[![agentmods](https://agentmods.dev/badge/skills/cogni-ai-ou/vastai-host-mcp/robust-commands/github.svg)](https://agentmods.dev/skills/cogni-ai-ou/vastai-host-mcp/robust-commands)
Your own site
<a href="https://agentmods.dev/skills/cogni-ai-ou/vastai-host-mcp/robust-commands"><img src="https://agentmods.dev/badge/skills/cogni-ai-ou/vastai-host-mcp/robust-commands/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 robust-commands

Your own site · 80×15
<a href="https://agentmods.dev/skills/cogni-ai-ou/vastai-host-mcp/robust-commands"><img src="https://agentmods.dev/badge/skills/cogni-ai-ou/vastai-host-mcp/robust-commands.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,817 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00017 $0.02817
Opus 5 $0.00009 $0.01409
Sonnet 5 $0.00003 $0.00563
Haiku 4.5 $0.00002 $0.00282

Measured 11d ago against content hash 35793517d3c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

robust-commands scanned grade B with 2 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 11d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

# Try normal command, fall back to sudo if needed

Makes network callslowCapability

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

apt-get install -y curl wget
.github/skills/robust-commands/SKILL.md · 518 lines

How it starts

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

Robust Command Execution Skill

This skill provides patterns for executing commands with automatic error recovery, fallback mechanisms, and installation of missing dependencies. Never give up when a command fails - try alternatives!

When to Use This Skill

  • When a command might not be installed
  • When working in different environments (containers, CI, local)
  • When tool availability is uncertain
  • When debugging command failures
  • When you need to ensure commands succeed

Core Principle

If a command doesn't work, don't just report failure - fix it!

Process for handling command failures:

  1. Check if the command exists
  2. Try to install if missing
  3. Try alternative commands
  4. Verify prerequisites (permissions, paths)
  5. Only report as blocked if all options exhausted

Command Existence Checking

Check if Command Exists

# Method 1: which
which command_name

# Method 2: command -v (POSIX-compliant, more reliable)
command -v command_name

# Method 3: type
type command_name

# Best practice - silent check
if command -v jq &> /dev/null; then
  echo "jq is available"
else
  echo "jq is not installed"
fi

Check Multiple Alternative Commands

# Find first available command from list
for cmd in jq python3 python; do
  if command -v "$cmd" &> /dev/null; then
    echo "Using $cmd"
    break
  fi
done

Installing Missing Commands

Debian/Ubuntu Systems

# Update package lists first
apt-get update

# Install single package
apt-get install -y package-name

# Search for package
apt-cache search keyword

# Install with error handling
if ! command -v jq &> /dev/null; then
  echo "Installing jq..."
  apt-get update && apt-get install -y jq
fi

Common Package Names

# JSON processing
apt-get install -y jq

# YAML processing
apt-get install -y yq

# HTTP requests
apt-get install -y curl wget

# Text processing
apt-get install -y sed gawk grep

# Build tools
apt-get install -y build-essential

# Python tools
apt-get install -y python3 python3-pip

# Node.js tools
apt-get install -y nodejs npm

Read the full file on GitHub · 518 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. 11d ago First seen · 518 lines · 17 tokens per session scan B 35793517d3c6

Subscribe to this mod's changes

robust-commands is a skill published in the GitHub repository Cogni-AI-OU/vastai-host-mcp (0 stars, last pushed 5mo ago), licensed MIT. It adds 17 tokens to every session and 2,817 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

diagnose

Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.

emdash-cms/emdash · 43 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

byted-util-volcengine-detect-retry

An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.

bytedance/agentkit-samples · 101 tokens