[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EW7K0PYAN7E9ZF4APFR7Q8":3,"skill-same:01M7EW7K0PYAN7E9ZF4APFR7Q8":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EW7K0PYAN7E9ZF4APFR7Q8","traefik-pro",null,"Traefik guidance — dynamic routing, providers, middleware chains, Let's Encrypt, and production edge config.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-traefik-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: traefik-pro\ndescription: Traefik guidance — dynamic routing, providers, middleware chains, Let's Encrypt, and production edge config.\ncategory: development\n---\n\n## Overview\n\nTraefik is the cloud-native edge router: it discovers services automatically from providers (Docker, Kubernetes, Consul) and configures routing dynamically — no config reloads when containers come and go. Labels on containers become routers, services, and middleware. For Docker and Kubernetes environments, it's the lowest-friction way to get routing, TLS, and middleware.\n\nTraefik's model (entrypoints → routers → middleware → services) is elegant once internalized, and its dashboard makes the dynamic config visible. This skill covers the core model, provider configuration, middleware chains, automatic TLS, and production hardening.\n\n## When to use\n\n- Routing to Docker containers or Kubernetes services dynamically.\n- Getting automatic HTTPS with Let's Encrypt.\n- Adding middleware (auth, rate limiting, headers, redirects).\n- Choosing between Traefik, nginx, Caddy, or HAProxy.\n- Debugging routing (dashboard, logs, whoami).\n- Running Traefik in production (HA, dashboard security, observability).\n- Migrating from static nginx configs to dynamic routing.\n\n## Core concepts\n\n- **The routing chain.** Entrypoints (ports) → Routers (match rules: Host, PathPrefix) → Middleware (transform\u002Ffilter) → Services (load-balance to backends). Every request flows through this chain; debug by walking it.\n- **Providers.** Docker (labels), Kubernetes Ingress\u002FCRD, Consul, file, and more — Traefik watches providers and rebuilds routing dynamically. The provider is where services are discovered; labels\u002Fannotations are where routing is declared.\n- **Docker labels.** Routing declared on containers: `traefik.http.routers.api.rule=Host(\"api.example.com\")`, service ports, middleware attachments. Labels are the config — keep them organized and versioned in Compose files.\n- **Kubernetes providers.** Ingress (standard, limited) vs IngressRoute CRDs (full Traefik features: middleware, TCP, TLS options). CRDs unlock the real power; Ingress is the portable subset.\n- **Middleware.** Reusable request processors: stripPrefix, basicAuth\u002FforwardAuth, rateLimit, headers (security headers), redirect, compress, circuitBreaker, retry. Chain them on routers; define once, attach many times.\n- **TLS.** Automatic Let's Encrypt via ACME (HTTP-01 or DNS-01 challenge); `tls.certresolver` on routers; wildcard certs need DNS-01. Store certs in `acme.json` (persist it!) — losing it means reissuing under rate limits.\n- **ACME challenges.** HTTP-01 (simple, needs port 80 reachable); DNS-01 (wildcard-capable, needs DNS provider credentials); TLS-ALPN-01 (port 443). Choose per environment; staging CA for testing to avoid rate limits.\n- **Dashboard and API.** The dashboard shows live routers\u002Fservices\u002Fmiddleware — the primary debugging tool. Secure it (auth middleware, internal-only) — it exposes your routing topology.\n- **Observability.** Access logs (structured JSON), metrics (Prometheus), tracing (OpenTelemetry). Enable from the start; debugging routing without logs is guesswork.\n- **High availability.** Multiple Traefik replicas behind a load balancer; shared ACME storage for Let's Encrypt (KV store or shared file); sticky sessions only when the app requires them.\n- **TCP and UDP.** Beyond HTTP: TCP routers (databases, custom protocols) with SNI routing, UDP for DNS-like traffic. TLS passthrough for end-to-end encryption.\n- **Plugins.** Community middleware plugins (crowdsec, custom auth) via the plugin catalog — vet them like any dependency.\n- **Pilot (deprecated awareness).** Traefik Pilot\u002FHup was discontinued — don't build on it; use native metrics\u002Flogs and your own observability.\n- **Configuration split.** Static config (entrypoints, providers, ACME — startup only) vs dynamic config (routers, services, middleware — hot-reloaded). Knowing which is which explains \"why didn't my change apply.\"\n\n## Practical workflow\n\n1. **Define static config.** Entrypoints (web:80, websecure:443), providers (docker\u002Fkubernetes), ACME resolver, logging\u002Fmetrics. This changes rarely — get it right once.\n   ```yaml\n   # traefik.yml (static)\n   entryPoints: { web: { address: \":80\" }, websecure: { address: \":443\" } }\n   providers: { docker: { exposedByDefault: false } }\n   certificatesResolvers:\n     le: { acme: { email: ops@example.com, storage: \u002Facme.json,\n                   httpChallenge: { entryPoint: web } } }\n   ```\n2. **Label services.** Routers with Host rules, TLS resolver, middleware chains — declared on the container\u002Fservice:\n   ```yaml\n   labels:\n     - \"traefik.enable=true\"\n     - \"traefik.http.routers.api.rule=Host(`api.example.com`)\"\n     - \"traefik.http.routers.api.entrypoints=websecure\"\n     - \"traefik.http.routers.api.tls.certresolver=le\"\n     - \"traefik.http.routers.api.middlewares=sec-headers,api-ratelimit\"\n   ```\n3. **Build middleware chains.** Security headers, rate limits, auth, compression as named middleware; attach per router. Test each middleware in isolation before chaining.\n   ```yaml\n   # dynamic file provider: middlewares.yml\n   http:\n     middlewares:\n       sec-headers:\n         headers:\n           stsSeconds: 31536000\n           contentTypeNosniff: true\n           frameDeny: true\n       api-ratelimit:\n         rateLimit: { average: 100, burst: 50 }\n   ```\n4. **Set up ACME carefully.** `acme.json` persisted (chmod 600, backed up); staging CA first; DNS-01 for wildcards; monitor certificate expiry even with automation.\n5. **Secure the dashboard.** Basic auth or forwardAuth + IP allowlist; never expose it publicly unauthenticated.\n6. **Enable observability.** JSON access logs, Prometheus metrics, tracing; dashboards for router error rates and TLS cert expiry.\n7. **Test routing.** The `whoami` container for verifying rules; dashboard to confirm router\u002Fservice wiring; `curl -H \"Host: ...\"` for Host-rule testing.\n8. **Run HA.** Multiple replicas, shared acme.json storage, health checks; rolling updates without dropping the edge.\n\n## Common pitfalls\n\n- **`exposedByDefault` left true** — every container getting a route; set false and enable explicitly.\n- **Lost `acme.json`** — reissuing under Let's Encrypt rate limits; persist and back it up (chmod 600).\n- **Testing ACME against production** — rate-limit lockout; use the staging CA first.\n- **Static vs dynamic confusion** — changing entrypoints expecting hot-reload; static config needs restarts.\n- **Dashboard exposed** — unauthenticated topology disclosure; auth + internal-only.\n- **Missing middleware order awareness** — chain order matters (auth before rate limit, etc.); think through the sequence.\n- **No health checks on services** — traffic to dead backends; configure service health checks.\n- **HTTP-01 behind another proxy** — challenge unreachable; use DNS-01 or ensure port 80 routes correctly.\n- **Wildcard without DNS-01** — HTTP-01 can't issue wildcards; DNS challenge required.\n- **Ignoring access logs** — debugging routing blind; structured logs from day one.\n- **Sticky sessions by default** — unnecessary statefulness; only when the app truly needs it.\n- **Plugin sprawl** — unvetted community plugins; treat as dependencies with risk.\n- **Single replica as SPOF** — edge downtime on updates; run HA with shared cert storage.\n","## Overview\n\nTraefik is the cloud-native edge router: it discovers services automatically from providers (Docker, Kubernetes, Consul) and configures routing dynamically — no config reloads when containers come and go. Labels on containers become routers, services, and middleware. For Docker and Kubernetes environments, it's the lowest-friction way to get routing, TLS, and middleware.\n\nTraefik's model (entrypoints → routers → middleware → services) is elegant once internalized, and its dashboard makes the dynamic config visible. This skill covers the core model, provider configuration, middleware chains, automatic TLS, and production hardening.\n\n## When to use\n\n- Routing to Docker containers or Kubernetes services dynamically.\n- Getting automatic HTTPS with Let's Encrypt.\n- Adding middleware (auth, rate limiting, headers, redirects).\n- Choosing between Traefik, nginx, Caddy, or HAProxy.\n- Debugging routing (dashboard, logs, whoami).\n- Running Traefik in production (HA, dashboard security, observability).\n- Migrating from static nginx configs to dynamic routing.\n\n## Core concepts\n\n- **The routing chain.** Entrypoints (ports) → Routers (match rules: Host, PathPrefix) → Middleware (transform\u002Ffilter) → Services (load-balance to backends). Every request flows through this chain; debug by walking it.\n- **Providers.** Docker (labels), Kubernetes Ingress\u002FCRD, Consul, file, and more — Traefik watches providers and rebuilds routing dynamically. The provider is where services are discovered; labels\u002Fannotations are where routing is declared.\n- **Docker labels.** Routing declared on containers: `traefik.http.routers.api.rule=Host(\"api.example.com\")`, service ports, middleware attachments. Labels are the config — keep them organized and versioned in Compose files.\n- **Kubernetes providers.** Ingress (standard, limited) vs IngressRoute CRDs (full Traefik features: middleware, TCP, TLS options). CRDs unlock the real power; Ingress is the portable subset.\n- **Middleware.** Reusable request processors: stripPrefix, basicAuth\u002FforwardAuth, rateLimit, headers (security headers), redirect, compress, circuitBreaker, retry. Chain them on routers; define once, attach many times.\n- **TLS.** Automatic Let's Encrypt via ACME (HTTP-01 or DNS-01 challenge); `tls.certresolver` on routers; wildcard certs need DNS-01. Store certs in `acme.json` (persist it!) — losing it means reissuing under rate limits.\n- **ACME challenges.** HTTP-01 (simple, needs port 80 reachable); DNS-01 (wildcard-capable, needs DNS provider credentials); TLS-ALPN-01 (port 443). Choose per environment; staging CA for testing to avoid rate limits.\n- **Dashboard and API.** The dashboard shows live routers\u002Fservices\u002Fmiddleware — the primary debugging tool. Secure it (auth middleware, internal-only) — it exposes your routing topology.\n- **Observability.** Access logs (structured JSON), metrics (Prometheus), tracing (OpenTelemetry). Enable from the start; debugging routing without logs is guesswork.\n- **High availability.** Multiple Traefik replicas behind a load balancer; shared ACME storage for Let's Encrypt (KV store or shared file); sticky sessions only when the app requires them.\n- **TCP and UDP.** Beyond HTTP: TCP routers (databases, custom protocols) with SNI routing, UDP for DNS-like traffic. TLS passthrough for end-to-end encryption.\n- **Plugins.** Community middleware plugins (crowdsec, custom auth) via the plugin catalog — vet them like any dependency.\n- **Pilot (deprecated awareness).** Traefik Pilot\u002FHup was discontinued — don't build on it; use native metrics\u002Flogs and your own observability.\n- **Configuration split.** Static config (entrypoints, providers, ACME — startup only) vs dynamic config (routers, services, middleware — hot-reloaded). Knowing which is which explains \"why didn't my change apply.\"\n\n## Practical workflow\n\n1. **Define static config.** Entrypoints (web:80, websecure:443), providers (docker\u002Fkubernetes), ACME resolver, logging\u002Fmetrics. This changes rarely — get it right once.\n   ```yaml\n   # traefik.yml (static)\n   entryPoints: { web: { address: \":80\" }, websecure: { address: \":443\" } }\n   providers: { docker: { exposedByDefault: false } }\n   certificatesResolvers:\n     le: { acme: { email: ops@example.com, storage: \u002Facme.json,\n                   httpChallenge: { entryPoint: web } } }\n   ```\n2. **Label services.** Routers with Host rules, TLS resolver, middleware chains — declared on the container\u002Fservice:\n   ```yaml\n   labels:\n     - \"traefik.enable=true\"\n     - \"traefik.http.routers.api.rule=Host(`api.example.com`)\"\n     - \"traefik.http.routers.api.entrypoints=websecure\"\n     - \"traefik.http.routers.api.tls.certresolver=le\"\n     - \"traefik.http.routers.api.middlewares=sec-headers,api-ratelimit\"\n   ```\n3. **Build middleware chains.** Security headers, rate limits, auth, compression as named middleware; attach per router. Test each middleware in isolation before chaining.\n   ```yaml\n   # dynamic file provider: middlewares.yml\n   http:\n     middlewares:\n       sec-headers:\n         headers:\n           stsSeconds: 31536000\n           contentTypeNosniff: true\n           frameDeny: true\n       api-ratelimit:\n         rateLimit: { average: 100, burst: 50 }\n   ```\n4. **Set up ACME carefully.** `acme.json` persisted (chmod 600, backed up); staging CA first; DNS-01 for wildcards; monitor certificate expiry even with automation.\n5. **Secure the dashboard.** Basic auth or forwardAuth + IP allowlist; never expose it publicly unauthenticated.\n6. **Enable observability.** JSON access logs, Prometheus metrics, tracing; dashboards for router error rates and TLS cert expiry.\n7. **Test routing.** The `whoami` container for verifying rules; dashboard to confirm router\u002Fservice wiring; `curl -H \"Host: ...\"` for Host-rule testing.\n8. **Run HA.** Multiple replicas, shared acme.json storage, health checks; rolling updates without dropping the edge.\n\n## Common pitfalls\n\n- **`exposedByDefault` left true** — every container getting a route; set false and enable explicitly.\n- **Lost `acme.json`** — reissuing under Let's Encrypt rate limits; persist and back it up (chmod 600).\n- **Testing ACME against production** — rate-limit lockout; use the staging CA first.\n- **Static vs dynamic confusion** — changing entrypoints expecting hot-reload; static config needs restarts.\n- **Dashboard exposed** — unauthenticated topology disclosure; auth + internal-only.\n- **Missing middleware order awareness** — chain order matters (auth before rate limit, etc.); think through the sequence.\n- **No health checks on services** — traffic to dead backends; configure service health checks.\n- **HTTP-01 behind another proxy** — challenge unreachable; use DNS-01 or ensure port 80 routes correctly.\n- **Wildcard without DNS-01** — HTTP-01 can't issue wildcards; DNS challenge required.\n- **Ignoring access logs** — debugging routing blind; structured logs from day one.\n- **Sticky sessions by default** — unnecessary statefulness; only when the app truly needs it.\n- **Plugin sprawl** — unvetted community plugins; treat as dependencies with risk.\n- **Single replica as SPOF** — edge downtime on updates; run HA with shared cert storage.\n",{"name":5,"category":24,"description":7},"development","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-traefik-pro",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill traefik-pro",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill traefik-pro",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill traefik-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-traefik-pro\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]