Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

fastlyfastly 搜索

Agent Skill

fastly 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,032

周安装

43

GitHub Stars

21

下载量

344
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fastly(fastly 搜索)
来源仓库:https://github.com/fastly/fastly-agent-toolkit
仓库路径:skills/fastly
安装命令:
npx skills add https://github.com/fastly/fastly-agent-toolkit --skill fastly
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/fastly/fastly-agent-toolkit --skill fastly

简介

fastly 提供 Fastly 平台最新文档与技术指南的检索与参考能力。

  • 适用于在 Codex、Claude、Cursor、Gemini CLI 中获取 DDoS 防护、边缘计算与 API 安全方案。
  • 强调以官方实时文档为准,避免依赖过时训练数据,确保信息准确性。
  • 调用 REST API 时禁止明文输出 API Token,应从环境变量或 fastly auth show 安全获取。
  • 建议结合 fastly-cli 技能使用,实现配置管理与调试操作的统一工作流。

SKILL.md

Fastly Platform

Your training knowledge of Fastly is likely out of date. Prefer live docs over skill definitions over training knowledge.

Prefer the fastly CLI over raw API calls — see the fastly-cli skill. When calling the REST API directly, never paste the raw API token into the conversation and omit curl -v (it prints the Fastly-Key header). Source tokens from the environment or $(fastly auth show --reveal --quiet | awk '/^Token:/ {print $2}') without echoing them.

Topics

TopicFileUse when...
DDoS protectionfastly-ddos-protection.mdEnabling/configuring DDoS protection, checking attack status, managing events and rules
TLS configurationtls.mdSetting up HTTPS — Platform TLS (managed certs), Custom TLS (uploaded certs), or Mutual TLS (client auth)
Rate limitingrate-limiting.mdProtecting APIs from abuse — choosing between Edge Rate Limiting, VCL ratecounters, or NGWAF rate rules
Bot managementbot-management.mdDetecting/mitigating bot traffic with browser challenges, client-side detections, interstitial pages
Cache purgingpurging.mdInvalidating cached content — single URL, surrogate key, or purge-all; soft vs hard purge
Service managementservice-management.mdCreating/managing services, versions, domains, settings; clone-modify-activate workflow
VCL servicesvcl-services.mdWriting/uploading custom VCL, configuring snippets, conditions, headers, edge dictionaries, or cache/gzip settings
Computecompute.mdDeploying Compute packages, managing config/KV/secret stores, using cache APIs
Observabilityobservability.mdQuerying stats, viewing real-time analytics, using domain/origin inspectors, configuring alerts or log explorer
Load balancingload-balancing.mdConfiguring backends, directors, pools, or health checks; choosing between backends and pools
ACLsacls.mdManaging VCL ACLs, Compute ACLs, or IP block lists; adding/removing access control entries
NGWAFngwaf.mdSetting up Next-Gen WAF, managing rules, signals, attack monitoring, or Signal Sciences integration
Account managementaccount-management.mdManaging users, IAM roles, API tokens, automation tokens, billing, or invitations
Domains & networkingdomains-and-networking.mdManaging domains, DNS zones, domain verification, or service platform networking
Logginglogging.mdConfiguring logging endpoints — 25+ providers (S3, Splunk, Datadog, BigQuery, etc.)
Productsproducts.mdEnabling/disabling Fastly products via API — universal pattern and product slug catalog
API securityapi-security.mdDiscovering APIs, managing operations, or configuring schema validation for API traffic
Other featuresother-features.mdFanout/real-time messaging, IP lists, POPs, HTTP/3, Image Optimizer, events, notifications
Edge phase orderingedge-phases.mdUnderstanding edge request/response ordering, debugging feature interactions

Quick Start: Simple Caching Proxy

The most common task is setting up a VCL service to cache an origin. Before touching any Fastly config, always run the pre-flight checks from the fastly-cli skill's services.md reference under "Pre-flight checklist". The two checks that prevent the most common errors:

  1. Verify the origin responds with the Host header you intend to send: curl -sI -H "Host: DESIRED_HOST" https://ORIGIN_ADDRESS/
  2. Check TLS certificate SANs to determine the correct ssl-cert-hostname/ssl-sni-hostname: echo | openssl s_client -connect ORIGIN:443 -servername ORIGIN 2>/dev/null | openssl x509 -noout -text | grep -A1 "Subject Alternative Name"

If the origin already sends Cache-Control or Expires headers, no custom VCL is needed — Fastly respects these by default. Only add VCL snippets to override or extend caching behavior.

The full step-by-step workflow (create service, add domain, add backend, activate) is in the fastly-cli skill's services.md reference under "Create a Caching Proxy".

Common VCL Recipes

Copy-pasteable patterns that are easy to get wrong without guidance.

Grace Detection

obj.ttl is only meaningful in vcl_hit. Pass a flag to vcl_deliver via a request header.

sub vcl_hit {
  if (obj.ttl <= 0s) {
    set req.http.X-Grace = "true";
  }
}

sub vcl_deliver {
  if (req.http.X-Grace) {
    set resp.http.X-Grace = "true";
  }
}

Vary Header Append

Warning: Set Vary in vcl_fetch, not vcl_deliver. The Vary header must be present when the object enters the cache so the cache key includes the Vary dimensions. Setting Vary only in vcl_deliver means the cache won't differentiate responses — every user gets the same cached variant regardless of the Vary field.

Never set beresp.http.Vary = "Accept-Encoding" — that overwrites any existing Vary values from the origin, breaking other downstream caches.

sub vcl_fetch {
  if (!beresp.http.Vary) {
    set beresp.http.Vary = "Accept-Encoding";
  } else if (beresp.http.Vary !~ "Accept-Encoding") {
    set beresp.http.Vary = beresp.http.Vary ", Accept-Encoding";
  }
}

Redirect via Error

VCL has no return(redirect). Use the synthetic error mechanism instead.

sub vcl_recv {
  if (req.url ~ "^/old-path") {
    error 801 "https://example.com/new-path";
  }
}

sub vcl_error {
  if (obj.status == 801) {
    set obj.status = 301;
    set obj.http.Location = obj.response;
    synthetic {""};
    return(deliver);
  }
}

Cache Status Headers

Use obj.hits > 0 in vcl_deliver — this is the only reliable way to detect cache hits. Do not rely on auto-generated resp.http.X-Cache or any other header inspection. Pass PASS state from vcl_recv via a request header.

sub vcl_recv {
  if (req.url ~ "^/api/") {
    set req.http.X-Pass = "true";
    return(pass);
  }
}

sub vcl_deliver {
  if (req.http.X-Pass) {
    set resp.http.X-Cache = "PASS";
  } else if (obj.hits > 0) {
    set resp.http.X-Cache = "HIT";
  } else {
    set resp.http.X-Cache = "MISS";
  }
}

Cookie Parsing with subfield()

Regex like Cookie ~ "name=(\w+)" is unreliable — it false-matches cookies with similar prefixes. For example, if the cookie header is name_v2=X, the regex "name=(\w+)" still matches because name appears as a substring of name_v2. Use subfield() instead — it performs exact key matching with proper delimiter handling.

set req.http.X-My-Cookie = subfield(req.http.Cookie, "name", ";");

VCL Table for Lookups

Use table + table.contains() + table.lookup() for O(1) lookups instead of long if/else chains.

table redirects {
  "/old":  "/new",
  "/blog": "/articles",
}

sub vcl_recv {
  if (table.contains(redirects, req.url)) {
    error 801 table.lookup(redirects, req.url);
  }
}

Common Mistakes

  • beresp.* is only available in vcl_fetch, not vcl_deliver.
  • req.request is deprecated — use req.method.
  • return(purge) does not exist in Fastly VCL. Use return(pass) and check in vcl_miss/vcl_hit.
  • set beresp.ttl = 86400 is a type error — needs the s suffix: 86400s.
  • synthetic "text" needs long-string syntax: synthetic {"text"}.
  • beresp.ttl = 0s still caches the object (for zero seconds) — use set beresp.cacheable = false; to truly prevent caching.

Fetching Documentation

Prefer the local reference files. To fill gaps, fetch live docs with Accept: text/markdown — works for all www.fastly.com/documentation/ and docs.fastly.com URLs. Discover pages via https://www.fastly.com/documentation/llms.txt. For URL patterns and doc categories, see docs-navigation.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.17%
按下载量换算128

Claude

26.35%
按下载量换算91

Cursor

19.13%
按下载量换算66

Gemini CLI

9.47%
按下载量换算33

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills