From fastly-agent-toolkit
Runs Fastly Compute WASM apps locally with Viceroy for Rust and Component Model projects. Use for dev servers, fastly.toml backend/store config, cargo-nextest tests, local debugging, module adaptation, and testing issues.
How this skill is triggered — by the user, by Claude, or both
Slash command
/fastly-agent-toolkit:viceroyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Viceroy is Fastly's official local testing environment for Compute applications. It emulates the Fastly Compute platform, allowing you to develop and test WASM services locally.
Viceroy is Fastly's official local testing environment for Compute applications. It emulates the Fastly Compute platform, allowing you to develop and test WASM services locally.
Viceroy documentation: https://github.com/fastly/Viceroy
fastly.toml. Dictionaries go under [local_server.dictionaries] as inline key-value maps or JSON files. ConfigStores go under [local_server.config_stores].fastly.toml must have a [local_server] section. Without it, Viceroy won't know about your backends, stores, or other local overrides. Every backend your app calls must be listed under [local_server.backends].http://127.0.0.1:7676.# Install Viceroy
cargo install --locked viceroy
# Build your Compute app
fastly compute build
# Start local server (default: 127.0.0.1:7676)
viceroy -C fastly.toml bin/main.wasm
# Or use the Fastly CLI wrapper
fastly compute serve
| Topic | File | Use when... |
|---|---|---|
| Serve | fastly-compute-serve.md | Starting local dev server, profiling, advanced server options |
| Config | fastly-compute-config.md | Configuring fastly.toml backends, stores, geolocation, device detection, ACLs |
| Test | fastly-compute-test.md | Running Rust unit tests with cargo-nextest, writing tests for Compute services |
| Adapt | fastly-compute-adapt.md | Converting core WASM modules to Component Model, custom build pipelines |
npx claudepluginhub fastly/fastly-agent-toolkit --plugin fastly-agent-toolkitRuns Fastly Compute WASM binaries locally and serves as the authoritative reference for Compute platform internals, including host ABI, caching, KV stores, rate limiting, ACLs, and request lifecycle.
Sets up Vercel local dev server with vercel dev, pulls env vars, enables hot reload, and tests serverless functions/APIs. For fast local iteration on Vercel projects.
Guides Vitest testing for Cloudflare Workers with @cloudflare/vitest-pool-workers and Miniflare. Covers setup, binding mocks (D1/KV/R2/DO/Queues/AI), integration tests, failures, mock errors, and coverage.