Skip to content
Delegating to CDN Agent logo

Delegating to CDN Agent

Recognize Fastly CDN queries and delegate to specialized sub-agent to avoid context pollution

SKILL.md

Full skill instructions

Delegating to CDN Agent

Core Principle

Never handle Fastly CDN operations directly. Always delegate to a specialized sub-agent to keep your context clean and costs low.

Recognition Patterns

Delegate when user says:

  • "query fastly for..."
  • "list fastly services"
  • "show cdn configuration"
  • "purge cache"
  • "describe fastly service"
  • "list backends"
  • "show VCL"
  • "clear cdn cache"
  • Any mention of: fastly, cdn, cache, vcl, backends, purge, origin servers, varnish

ExampleJobInc-Specific Triggers

Also delegate when user mentions these ExampleJobInc domains:

  • "pi.examplejobinc-cdn.com"
  • "images.examplejobinc.com"
  • "hls.examplejobinc.com"
  • "assets.examplejobinc.com"
  • "embed.examplejobinc.com"
  • "crushinator" (image processing backend)

How to Delegate

Use the Task tool with a specialized prompt:

Task(
  subagent_type: "general-purpose",
  description: "Query Fastly CDN",
  prompt: "<full agent instructions from AGENT-INSTRUCTIONS.md>"
)

Agent Prompt Template

When delegating, include:

  1. The complete agent instructions (see AGENT-INSTRUCTIONS.md)
  2. The user's specific request
  3. Clear output format requirements

Example:

You are a Fastly CDN specialist. Your job is to query Fastly using shell wrappers and return clean results.

<AGENT INSTRUCTIONS HERE>

USER REQUEST: List all Fastly services

Return a clean summary with:
- Service names
- Service IDs
- Service types
- Last updated dates

After Agent Returns

  1. Present results cleanly to user
  2. Offer follow-up if relevant (e.g., "Would you like to see backends for pi.examplejobinc-cdn.com?")
  3. Don't expose mechanics (API calls, tokens, CLI commands) to user

Benefits

  • ✅ Main context stays clean
  • ✅ Cheaper queries (sub-agent uses less expensive model)
  • ✅ Specialized knowledge isolated
  • ✅ Scalable pattern for other CDN operations

Example Flow

User: "list fastly services"

Main Assistant: [Recognizes Fastly query]
              → Invokes Task tool with agent instructions
              → Agent runs cdn-services wrapper
              → Agent returns formatted results

Main Assistant: "Found 8 Fastly services:

                1. pi.examplejobinc-cdn.com - Image processing CDN
                2. images.examplejobinc.com - Static images
                3. hls.examplejobinc.com - Video streaming
                ...

                Would you like details on any of these?"

Common Query Types

Service Management:

  • "list fastly services"
  • "describe pi.examplejobinc-cdn.com service"
  • "show cdn configuration"

Backend Investigation:

  • "list backends for pi.examplejobinc-cdn.com"
  • "show origin servers"
  • "describe crushinator backend"

VCL Configuration:

  • "list VCL configurations"
  • "show VCL content for version 42"
  • "view custom VCL"

Cache Management:

  • "purge all cache for pi.examplejobinc-cdn.com"
  • "clear cdn cache"
  • "invalidate surrogate key image-cache"
  • "purge specific URL"

Red Flags

DON'T:

  • ❌ Try to run fastly-* scripts yourself
  • ❌ Attempt Fastly API calls directly
  • ❌ Load detailed Fastly CLI knowledge
  • ❌ Handle authentication directly
  • ❌ Parse complex CDN configurations

DO:

  • ✅ Immediately delegate on Fastly keywords
  • ✅ Trust the sub-agent's results
  • ✅ Present clean summaries to user
  • ✅ Suggest relevant follow-up queries
  • ✅ Warn about cache purge impact

Cache Purge Safety

When user requests cache purging:

  1. Always delegate to sub-agent (never do yourself)
  2. Confirm service before agent purges
  3. Warn about impact of full cache purges
  4. Prefer specific purges (URL/​key) over --all

The sub-agent handles this, but you should reinforce warnings in your response.

ExampleJobInc Infrastructure Context

ExampleJobInc uses Fastly for:

  • Image CDN (pi.examplejobinc-cdn.com) - Crushinator-powered image processing
  • Video CDN (hls.examplejobinc.com) - HLS streaming
  • Static assets (images.examplejobinc.com, assets.examplejobinc.com)
  • Website CDN (www.examplejobinc.com)

When user mentions investigating these systems, delegate to Fastly agent.

Version History

  • 1.0.0 (2025-10-15): Initial delegation skill created to reduce context pollution

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View