When a user runs a Skill on NeoSpark, the request does not execute on their machine. It enters a hosted runtime designed to protect creator IP, keep output consistent, and route calls to the right models. This article explains what happens at each stage.

The runtime in one sentence

The Skill runtime is a secure, sandboxed environment that loads a Skill package, validates inputs, runs the workflow, calls models, verifies the output, and delivers the finished asset.

Stage 1: Receive and validate the request

The thin client sends the user’s inputs, file references, and Skill selection to NeoSpark. The API gateway checks:

  • Is the user authenticated?
  • Do they have enough credits?
  • Are they within rate limits for this Skill?

If any check fails, the request stops before the runtime starts.

Stage 2: Load the Skill package

The runtime fetches the Skill package from secure storage. The package includes:

  • SKILL.md — the workflow instructions.
  • Templates and scripts referenced by the workflow.
  • A manifest that declares inputs, outputs, and model families.

The package is loaded only inside the sandbox. It is never sent to the user.

Stage 3: Validate inputs against the schema

The manifest defines what inputs the Skill expects. The runtime validates that:

  • Required fields are present.
  • Files are the right type and size.
  • Values match expected formats.

Invalid inputs return an error before any model is called, saving credits and time.

Stage 4: Fetch secrets from the vault

If the Skill needs provider API keys, the runtime fetches them from a secret vault. Each key is injected only for the specific call that needs it. Keys are never exposed to the Skill author outside the vault or to the end user.

Stage 5: Execute the workflow in a sandbox

The runtime runs the Skill inside an isolated environment. The sandbox has no access to:

  • Other Skills.
  • Other users’ data.
  • The host file system beyond what the runtime provides.

This isolation prevents one Skill from affecting another and limits the damage from a malicious or buggy package.

Stage 6: Route model calls

A Skill may need an LLM, an image model, a video model, or all three. The model router:

  • Selects the best available model for the task.
  • Considers the user’s plan and credit balance.
  • Falls back to an equivalent model if the primary provider is slow or down.

The fallback mechanism is automatic. The user does not need to know which provider handled the call.

Stage 7: Post-process and verify

After the model returns output, the runtime:

  • Runs quality checks defined in the Skill.
  • Applies safety filters.
  • Adds watermarking or attribution if configured.
  • Converts the output to the requested format.

If verification fails, the runtime can retry or return a clear error.

Stage 8: Store and deliver the asset

Finished assets are written to an asset store and served through a CDN. The user receives a signed, time-limited URL. The client never sees intermediate prompts, model logs, or tool outputs.

Why this matters for creators

The runtime is what makes Skill hosting possible. Because the package stays on the server, creators can:

  • Keep their SKILL.md and templates private.
  • Avoid sharing API keys with users.
  • Guarantee consistent output across devices.
  • Earn from every run without building their own billing system.

Bottom line

The NeoSpark Skill runtime turns a folder of instructions into a reliable, metered service. It handles validation, security, model routing, and delivery so creators can focus on what the Skill does, not how it runs.

Want to see the security layer in detail? Read how NeoSpark protects creator Skills.