AGENT SKILL

vastai-core-workflow-a

Execute Vast.ai primary workflow: Core Workflow A. Use when implementing primary use case, building main features, or core integration tasks. Trigger with phrases like "vastai main workflow", "primary task with vastai".

License 许可
MIT
最近更新
2026-05-26
Stars
★ 0
Forks
0

01 前言 Front Matter

name
vastai-core-workflow-a
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
version
1.0.0
description
Execute Vast.ai primary workflow: Core Workflow A. Use when implementing primary use case, building main features, or core integration tasks. Trigger with phrases like "vastai main workflow", "primary task with vastai".
allowed-tools
Read, Write, Edit, Bash(npm:*), Grep
compatible-with
claude-code, codex, openclaw

03 SKILL.md 正文

Vast.ai Core Workflow A

Overview

Primary money-path workflow for Vast.ai. This is the most common use case. Vast.ai is a marketplace for renting GPU compute from individual hosts and data centers at prices significantly lower than hyperscaler providers. It is commonly used for training machine learning models, running large-scale inference, and rendering workloads where cost efficiency matters more than guaranteed SLA uptime.

Prerequisites

  • Completed vastai-install-auth setup
  • Understanding of Vast.ai core concepts
  • Valid API credentials configured

Instructions

Step 1: Initialize

Authenticate with the Vast.ai API and search for available instances that match your requirements. Filter by GPU model, VRAM size, geographical region, reliability score, and price per hour. Sort offers by the metric most relevant to your workload — price for budget-conscious batch jobs, reliability score for long-running training runs, or interconnect bandwidth for distributed training setups.

// Step 1 implementation

Step 2: Execute

Rent the selected instance by creating an offer via the API. Specify the Docker image containing your workload environment, the startup command, and any environment variables or volume mounts needed. Monitor the instance status until it reaches the running state, then connect via SSH or the Jupyter interface to verify the environment is configured correctly before beginning your compute job.

// Step 2 implementation

Step 3: Finalize

When your job completes, copy all output artifacts (model checkpoints, logs, result files) to persistent storage before destroying the instance. Destroying the instance promptly stops billing. Review the actual cost against your budget estimate and note any performance characteristics that should influence future instance selection.

// Step 3 implementation

Output

  • Completed Core Workflow A execution
  • GPU instance provisioned and job executed successfully
  • Output artifacts saved to persistent storage
  • Success confirmation or error details if provisioning or execution failed

Error Handling

Error Cause Solution
Error 1 Cause Solution
Error 2 Cause Solution

Examples

Complete Workflow

// Complete workflow example

Common Variations

  • Variation 1: Description
  • Variation 2: Description

Resources

Next Steps

For secondary workflow, see vastai-core-workflow-b.

04 同仓库更多 Skills

SamuelChien
SamuelChien/mega-skills-collection

zustand-store-ts

Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zustand-store-creator

Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zero-trust-config-helper

Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zapier-integration-helper

Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zai-cli

Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

yt-research

Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.

★ 0