/fastly-agent-toolkit:fastlikefrom fastly-agent-toolkit
Runs 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.
Ships in fastly-agent-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Trigger on: Fastly Compute, Compute@Edge, WASM on Fastly, fastlike, XQD ABI, Compute request lifecycle, 508 loop detection, backend subrequests, body streaming, profiling a local Compute app, embedding a Fastly Compute runtime in Go code, or any question about how Compute platform primitives work internally (caching, KV stores, edge rate limiting, ACLs, geolocation, secret stores, config stores, dictionaries, logging, dynamic backends, request collapsing, async I/O).
Do NOT use for: Fastly VCL (use falco), Fastly CLI/API (use fastly-cli or fastly), Viceroy, CDN comparison, WAF, Terraform, cache purging via API, or Fastly logging/stats configuration.
Fastlike is a Go implementation of the Fastly Compute ABI. It runs compiled WebAssembly programs locally, implementing the same 249+ host functions that Fastly's production Compute platform provides: backends, dictionaries, KV stores, caching, geolocation, rate limiting, ACLs, secret stores, and more.
Equally important, the fastlike source code is the most complete programmatic specification of how Fastly Compute works — its ABI implementations document every platform primitive, request lifecycle detail, and data structure as executable code.
Fastlike documentation: https://github.com/avidal/fastlike
When you have access to the fastlike source code locally (default: ~/src/fastlike), use these paths to answer specific Compute questions:
| Question | Read This File | Why |
|---|---|---|
| "How does the request lifecycle work?" | instance.go, xqd_http_downstream.go | Per-request setup, execution, downstream handling |
| "What ABI functions exist for X?" | xqd_*.go files | Each file implements a group of related ABI functions |
| "How do backend subrequests work?" | xqd_backend.go, backend.go | Request sending, dynamic backends, timeouts |
| "How does caching work?" | xqd_cache.go, xqd_http_cache.go, cache.go | Cache operations, Vary, surrogate keys, request collapsing |
| "How does KV store work?" | xqd_kv_store.go, kv_store.go | CRUD operations, pagination, generation-based concurrency |
| "How does rate limiting work?" | xqd_erl.go, erl.go | Rate counters, penalty boxes, threshold checks |
| "How do ACLs work?" | xqd_acl.go, acl.go | CIDR-based IP filtering, most-specific match |
| "What configuration options exist?" | options.go | Every With* functional option for the runtime |
| "What error codes can operations return?" | constants.go | All XQD status codes and error types |
| "How does the profiler work / what does a trace look like?" | profile.go, profile_json.go, docs/profiling.md | Trace data model, JSON wire format, deep-mode metrics, encoders |
For a comprehensive guide, see understanding-compute-from-source.md.
Requires Go 1.24+.
# Clone and build
git clone https://github.com/avidal/fastlike.git ~/src/fastlike
cd ~/src/fastlike
make build # Creates bin/fastlike
# Or install to GOPATH/bin
make install
# Or install directly
go install fastlike.dev/cmd/fastlike@latest
The bin/fastlike examples use a source build.
Use its absolute path from your project directory, or fastlike for an installed binary.
# Minimal: WASM + single backend. The wasm path is positional.
bin/fastlike -backend localhost:8000 app.wasm
Flags can appear on either side of the wasm path.
On macOS, avoid binding to port 5000 — the AirTunes/AirPlay Receiver listens there by default and will steal the connection. Pick another port (e.g. -bind localhost:8000) or disable the AirPlay Receiver in System Settings.
| Feature | Fastlike | Viceroy |
|---|---|---|
| Language | Go | Rust |
| Geolocation | Custom JSON file (-geo) | Built-in defaults |
| Hot reload | SIGHUP (-reload) | fastly compute serve --watch rebuilds and restarts |
| Install | go install or make build | cargo install or fastly compute serve |
| Local backends | -backend name=host:port | [local_server.backends] in fastly.toml |
When to use Fastlike: Non-Rust Compute apps, want custom geo data, need hot reload, debugging.
When to use Viceroy: Rust Compute apps with cargo-nextest, Component Model projects, using fastly compute serve.
With named backends:
bin/fastlike \
-backend api=api.example.com:8080 \
-backend cache=redis:6379 \
-backend localhost:8000 \
app.wasm
Development mode with hot-reload:
bin/fastlike -backend localhost:8000 -reload -v 2 app.wasm
Send SIGHUP to reload the WASM without restarting.
With the built-in profiler:
bin/fastlike -backend localhost:8000 -profile-ui localhost:6060 app.wasm
Open http://localhost:6060/ for the trace index. Each request lands as /r/{id} (HTML) or /r/{id}.json (canonical native JSON; also .chrome.json, .firefox.json, .pprof). Add -profile deep for body byte / cache outcome / header / wasm heap metrics. Non-loopback -profile-ui requires -profile-auth TOKEN (or explicit -profile-insecure-ui). See profiling.md.
Full configuration:
bin/fastlike \
-bind 0.0.0.0:5000 \
-backend localhost:8000 \
-dictionary config=./config.json \
-kv store=./data.json \
-config-store settings=./settings.json \
-secret-store secrets=./secrets.json \
-acl blocklist=./acl.json \
-logger output=./logs.txt \
-geo ./geodata.json \
-compliance-region us-eu \
-v 2 \
-reload \
app.wasm
| Argument | Description |
|---|---|
<wasm-file> | Positional path to the WebAssembly program (required) |
-backend VALUE or -b VALUE | Backend server (required, repeatable) |
| Flag | Default | Description |
|---|---|---|
-bind ADDR | localhost:8000 | Server bind address |
-reload | false | Enable SIGHUP hot-reload |
-v INT | 0 | Verbosity (0-2) |
-dictionary NAME=FILE or -d | - | Load dictionary from JSON |
-kv NAME[=FILE] | - | KV store (empty or from JSON) |
-config-store NAME=FILE | - | Config store from JSON |
-secret-store NAME=FILE | - | Secret store from JSON |
-acl NAME=FILE | - | ACL from JSON |
-logger NAME[=FILE] | - | Log endpoint (file or stdout) |
-geo FILE | - | Geolocation JSON file |
-compliance-region REGION | - | Compliance region (none, us-eu, us) |
-profile MODE | trace | off, trace, native, combined, deep. See profiling.md. |
-profile-ui ADDR | - | Bind the profile UI listener on ADDR (separate socket from -bind). |
-profile-auth TOKEN | - | Bearer token required on UI requests. Mandatory for non-loopback -profile-ui unless -profile-insecure-ui is set. |
-profile-insecure-ui | false | Permit a non-loopback -profile-ui without -profile-auth (use only behind external auth). |
-profile-retain N | 256 | LRU size for completed traces. |
-profile-backend-cap N | 512 | Per-request cap on recorded backend calls. |
-profile-async-grace DUR | 100ms | How long finalize waits for in-flight async backends. Pass 0 to disable. |
-profile-dir PATH | cwd | Directory for wasm-symbols-{pid}.json and per-process profile artifacts. |
| Topic | File | Use when... |
|---|---|---|
| Compute from Source | understanding-compute-from-source.md | Understanding Compute internals by reading fastlike's implementation |
| Profiling | profiling.md | Per-request hostcall + backend traces, deep metrics, native JSON schema, pprof export |
| Backends | backends.md | Setting up named backends, catch-all backends, microservices routing |
| Config | config.md | Creating JSON config files for dictionaries, KV stores, secrets, ACLs, geolocation |
| Build | build.md | Building Fastlike from source, running linters, make targets |
| Test | test.md | Running Go tests, Fastly Compute ABI spec tests |
| ABI | abi.md | Fastly Compute ABI internals, implementing new ABI functions, handle system |
references/abi.md (opens in a new tab)references/backends.md (opens in a new tab)references/build.md (opens in a new tab)references/config.md (opens in a new tab)references/profiling.md (opens in a new tab)references/test.md (opens in a new tab)references/understanding-compute-from-source.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
fastly-compute, wasm, edge-computing, local-development, profiling
10 skills in this plugin
/falcoLints, tests, simulates, and formats Fastly VCL code using the falco tool. Also serves as the authoritative VCL reference via the falco Go source, which implements Fastly's full VCL dialect. Use when validating VCL syntax, running VCL linting, testing VCL locally, simulating VCL request handling, formatting VCL files, writing VCL unit tests with assertions, debugging VCL logic errors, looking up VCL function signatures or variable scopes, understanding VCL subroutine behavior, or running `falco lint`/`falco simulate`/`falco test`/`falco fmt`. Also applies when working with VCL syntax errors, type mismatches in VCL, choosing which VCL subroutine to use, or setting up a local VCL development and testing environment./fastlyConfigures, manages, and debugs the Fastly CDN platform — covering service and backend setup, caching and VCL, security features like DDoS/WAF/NGWAF/rate limiting/bot management, TLS certificates and cache purging, the Compute platform, and the REST API. Use when working with Fastly services or domains, setting up edge caching or origin shielding, configuring security features, making Fastly API calls, enabling products, or looking up Fastly documentation. Also applies when troubleshooting 503 errors or SSL/TLS certificate mismatches on Fastly, and for configuring logging endpoints, load balancing, ACLs, or edge dictionaries. Read the relevant reference file before writing any Fastly API call or curl command — request field names (e.g. the backend fields override_host, ssl_cert_hostname, ssl_sni_hostname, use_ssl) are easy to misremember, and a wrong name causes a silent 503 instead of an error, so do not rely on training-knowledge field names./fastly-cliExecutes Fastly CLI commands for managing CDN services, Compute deploys, and edge infrastructure. Use when running `fastly` CLI commands, creating or managing Fastly services from the terminal, deploying Fastly Compute applications, managing backends/domains/VCL snippets via command line, purging cache, configuring log streaming, setting up TLS certificates, managing KV/config/secret stores, checking service stats, authenticating with Fastly SSO, or working with fastly.toml. Also applies when working with Fastly service IDs in CLI context, or with `fastly service`, `fastly compute`, `fastly auth`, or any Fastly CLI subcommand. Covers service CRUD, version management, autocloning, and troubleshooting common CLI errors./fastly-fiddleUse when testing VCL against real Fastly edge infrastructure, writing assertion-based Fiddle tests, producing shareable fiddle URLs for bug reproductions, running VCL integration tests in CI, linting VCL remotely via the Fiddle API, or working with clientFetch/events/originFetches test expressions./fastly-ngwafPerforms an internal audit of Fastly Next-Gen WAF (NGWAF) workspaces to audit that critical templated protection rules are configured and enabled. Use when auditing NGWAF workspace security posture, checking for missing or disabled login protection rules (LOGINDISCOVERY, LOGINATTEMPT, LOGINSUCCESS, LOGINFAILURE), auditing credit card validation rules (CC-VAL-ATTEMPT, CC-VAL-FAILURE, CC-VAL-SUCCESS), auditing gift card protection rules (GC-VAL-ATTEMPT, GC-VAL-FAILURE, GC-VAL-SUCCESS), identifying potential login endpoints not covered by NGWAF rules, or comparing attack traffic against blocked traffic to confirm enabled rules are actually blocking./fastly-reference-architecturesCurated GitHub repositories demonstrating working reference architectures on the Fastly platform, from single Compute applications to systems combining multiple Fastly products. Use when designing a new solution on Fastly and a worked example of the target pattern would help, or when implementing and a concrete assembled reference would clarify the shape of the code. Not for documentation of how a specific Fastly tool or API works on its own — see the tool-specific skills for that.Other plugins' skills for the same job
npx claudepluginhub fastly/fastly-agent-toolkit --plugin fastly-agent-toolkit