home / skills / jeremylongshore / claude-code-plugins-plus-skills / vastai-core-workflow-b

This skill helps you execute Vast.ai secondary workflow B, delivering API results and confirmations to complete core tasks efficiently.

npx playbooks add skill jeremylongshore/claude-code-plugins-plus-skills --skill vastai-core-workflow-b

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
1.5 KB
---
name: vastai-core-workflow-b
description: |
  Execute Vast.ai secondary workflow: Core Workflow B.
  Use when implementing secondary use case,
  or complementing primary workflow.
  Trigger with phrases like "vastai secondary workflow",
  "secondary task with vastai".
allowed-tools: Read, Write, Edit, Bash(npm:*), Grep
version: 1.0.0
license: MIT
author: Jeremy Longshore <[email protected]>
---

# Vast.ai Core Workflow B

## Overview
Secondary workflow for Vast.ai. Complements the primary workflow.

## Prerequisites
- Completed `vastai-install-auth` setup
- Familiarity with `vastai-core-workflow-a`
- Valid API credentials configured

## Instructions

### Step 1: Setup
```typescript
// Step 1 implementation
```

### Step 2: Process
```typescript
// Step 2 implementation
```

### Step 3: Complete
```typescript
// Step 3 implementation
```

## Output
- Completed Core Workflow B execution
- Results from Vast.ai API
- Success confirmation or error details

## Error Handling
| Aspect | Workflow A | Workflow B |
|--------|------------|------------|
| Use Case | Primary | Secondary |
| Complexity | Medium | Lower |
| Performance | Standard | Optimized |

## Examples

### Complete Workflow
```typescript
// Complete workflow example
```

### Error Recovery
```typescript
// Error handling code
```

## Resources
- [Vast.ai Documentation](https://docs.vastai.com)
- [Vast.ai API Reference](https://docs.vastai.com/api)

## Next Steps
For common errors, see `vastai-common-errors`.

Overview

This skill executes Vast.ai secondary workflow: Core Workflow B. It complements the primary workflow by handling secondary use cases and optimized execution paths. Use it to run follow-up tasks after initial provisioning or to implement lower-complexity, high-performance job flows.

How this skill works

The workflow checks that Vast.ai credentials and the initial setup (vastai-install-auth) are present, then runs a three-step sequence: setup, process, and complete. It calls the Vast.ai API to perform the requested secondary operations, collects results, and returns a success confirmation or structured error details. Built-in checks and error classification help route recoveries or retries when needed.

When to use it

  • After completing the primary Vast.ai workflow to run complementary tasks
  • When implementing secondary job flows with lower complexity and higher optimization
  • To automate follow-up provisioning, monitoring, or teardown steps
  • When you need a lightweight, predictable path for repeatable operations
  • During CI/CD pipelines that separate primary provisioning from secondary work

Best practices

  • Ensure vastai-install-auth and valid API credentials are configured before running
  • Familiarize yourself with Core Workflow A to understand dependencies and handoffs
  • Use idempotent operations where possible to simplify retries and error recovery
  • Log API responses and structured errors to speed debugging and observability
  • Validate output payloads before triggering downstream processes

Example use cases

  • Trigger a secondary compute task on Vast.ai after the initial VM cluster is provisioned
  • Run a fast, optimized processing step that complements a longer primary training job
  • Execute automated teardown and resource cleanup after test runs
  • Collect and normalize API results from secondary tasks for reporting
  • Implement a lightweight monitoring or snapshot routine following deployment

FAQ

Do I need to run the primary workflow first?

Yes. Core Workflow B expects the primary setup (Core Workflow A and vastai-install-auth) to be complete so dependencies and credentials are available.

What happens on API errors?

The skill returns structured error details and a suggested recovery path; use logged responses to implement retries or fallback handlers.