[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EMF0ZPVBJ07P24GGB3TDHE":3,"skill-same:01M7EMF0ZPVBJ07P24GGB3TDHE":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},"01M7EMF0ZPVBJ07P24GGB3TDHE","caddy-pro",null,"Caddy guidance — automatic HTTPS, Caddyfile patterns, reverse proxying, and simple production deployments.","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-caddy-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: caddy-pro\ndescription: Caddy guidance — automatic HTTPS, Caddyfile patterns, reverse proxying, and simple production deployments.\ncategory: development\n---\n\n## Overview\n\nCaddy is the web server with automatic HTTPS: point it at a domain and it obtains, installs, and renews TLS certificates on its own. Its Caddyfile format is the most readable in the category, and its defaults are secure. For single servers, small clusters, and teams tired of certificate management, Caddy removes an entire category of operational work.\n\nSimplicity is the feature — Caddy won't replace nginx's module ecosystem or Traefik's dynamic discovery for complex setups, but for \"serve this app over HTTPS correctly,\" it's unmatched. This skill covers Caddyfile patterns, reverse proxying, TLS behavior, and production deployment.\n\n## When to use\n\n- Serving a site or API over HTTPS with zero certificate hassle.\n- Reverse-proxying to app servers simply and correctly.\n- Choosing between Caddy, nginx, and Traefik.\n- Writing Caddyfiles (matchers, handlers, snippets).\n- Running Caddy in production (systemd, Docker, clustering).\n- Using Caddy as a static file server.\n- Extending Caddy with plugins (crowdsec, custom modules).\n\n## Core concepts\n\n- **Automatic HTTPS.** Caddy obtains certs via ACME (Let's Encrypt\u002FZeroSSL) on first request, renews automatically, and redirects HTTP→HTTPS by default. The criteria: a public DNS name Caddy can serve challenges for. This eliminates the most common TLS operational work.\n- **The Caddyfile.** Site blocks with directives — declarative, minimal, readable. `reverse_proxy`, `file_server`, `php_fastcgi`, `respond` cover most needs. Snippets (`(name) { }` + `import`) DRY up repeated config.\n- **Matchers.** Named matchers (`@api { path \u002Fapi\u002F* }`) select requests for handlers; `handle` blocks route exclusively (first match wins), `route` blocks run in order. Understanding `handle` vs `route` prevents routing surprises.\n- **Reverse proxy.** `reverse_proxy localhost:3000` with automatic header passing (X-Forwarded-For\u002FProto set correctly), health checks (active\u002Fpassive), and load balancing across upstreams. The defaults are right for most apps.\n- **TLS details.** `tls` directive for DNS challenge (wildcards), custom certs, or internal CA; on-demand TLS for many dynamic domains (with rate-limit care); storage of certs (persist `\u002Fdata`!).\n- **ACME challenges.** HTTP\u002FTLS-ALPN automatic; DNS challenge via provider plugins for wildcards or firewalled servers. Staging CA for testing; watch rate limits with many domains.\n- **Static files.** `file_server` with `root`, `try_files` for SPAs, `encode gzip zstd` for compression, `header` for cache control. Precompressed file serving included.\n- **Logging.** Structured JSON logs by default; `log` directive per site; tune for your log pipeline. Access logs with latency fields make performance debugging easy.\n- **Security headers.** `header` directive for HSTS\u002FCSP\u002FX-Frame-Options — set deliberately; Caddy's defaults are safe but headers are your app's policy.\n- **Plugins (xcaddy).** DNS providers, crowdsec, layer4, and more via custom builds. Plugins are compiled in — plan the build; don't hand-roll crypto-adjacent plugins.\n- **API and config.** Caddy's admin API allows dynamic config changes (JSON); the Caddyfile adapts to JSON. Useful for automation; secure the admin endpoint (it's localhost-only by default).\n- **Clustering.** Multiple Caddy instances sharing cert storage (via storage plugins: Redis, S3, Consul) for HA — certs issued once, shared everywhere.\n- **Systemd\u002FDocker.** Official systemd unit and Docker image; run as non-root where possible; persist `\u002Fdata` (certs) and `\u002Fconfig`.\n\n## Practical workflow\n\n1. **Write the Caddyfile.** Site blocks per domain; reverse_proxy to apps; file_server for statics. Start minimal — Caddy's defaults handle TLS, HTTP→HTTPS, and headers.\n   ```\n   api.example.com {\n     reverse_proxy 127.0.0.1:3000 127.0.0.1:3001 {\n       lb_policy least_conn\n       health_uri \u002Fhealth\n     }\n   }\n   static.example.com {\n     root * \u002Fsrv\u002Fwww\n     file_server\n     encode gzip zstd\n     header Cache-Control \"public, max-age=31536000, immutable\"\n   }\n   ```\n2. **Use snippets for shared config.** Security headers, logging, and common proxy settings defined once:\n   ```\n   (secure) {\n     header {\n       Strict-Transport-Security \"max-age=31536000; includeSubDomains\"\n       X-Content-Type-Options \"nosniff\"\n       X-Frame-Options \"DENY\"\n     }\n   }\n   api.example.com {\n     import secure\n     reverse_proxy 127.0.0.1:3000\n   }\n   ```\n3. **Validate and format.** `caddy fmt --overwrite` for canonical formatting; `caddy validate` before reloads; `caddy reload` for zero-downtime changes.\n4. **Handle TLS edge cases.** DNS challenge for wildcards (`tls { dns cloudflare ... }` with plugin build); on-demand TLS with an `ask` endpoint for SaaS-style dynamic domains; persist `\u002Fdata` always.\n5. **Add matchers and routing.** `@api path \u002Fapi\u002F*` + `handle @api` blocks for path-based routing; `handle_path` stripping prefixes; test routing with curl before declaring victory.\n6. **Configure logging.** JSON access logs with relevant fields; per-site logs; ship to your log pipeline; watch for upstream error patterns.\n7. **Run in production.** Systemd unit (or Docker) with restart policies; non-root user; `\u002Fdata` and `\u002Fconfig` persisted and backed up; admin API bound to localhost.\n8. **Scale if needed.** Single Caddy handles surprising traffic; for HA, cluster with shared cert storage; monitor cert expiry and upstream health.\n\n## Common pitfalls\n\n- **Not persisting `\u002Fdata`** — certificates reissued on every restart, hitting rate limits; persist and back up.\n- **Testing ACME on production** — rate-limit lockout; use staging CA during setup.\n- **On-demand TLS without `ask`** — anyone triggering cert issuance for arbitrary domains; gate with an ask endpoint.\n- **`handle` vs `route` confusion** — routing behaving unexpectedly; `handle` is mutually exclusive, `route` is ordered.\n- **HTTP challenge blocked** — firewall\u002Fproxy preventing port 80; use DNS challenge instead.\n- **Forgetting `encode`** — uncompressed responses; enable gzip\u002Fzstd for text assets.\n- **Plugin builds unmanaged** — hand-built binaries drifting; version and automate xcaddy builds.\n- **Admin API exposed** — config API reachable remotely; keep it localhost-bound.\n- **No health checks** — traffic to dead upstreams; configure active\u002Fpassive checks.\n- **Overriding defaults badly** — disabling automatic HTTPS or HTTP→HTTPS redirect without reason; the defaults are secure.\n- **Single instance as SPOF** — no HA plan; cluster with shared storage when uptime demands it.\n- **Ignoring logs** — structured logs available but unshipped; wire into your pipeline from day one.\n- **Wildcard without DNS plugin** — HTTP challenge can't do wildcards; build with the DNS provider plugin.\n","## Overview\n\nCaddy is the web server with automatic HTTPS: point it at a domain and it obtains, installs, and renews TLS certificates on its own. Its Caddyfile format is the most readable in the category, and its defaults are secure. For single servers, small clusters, and teams tired of certificate management, Caddy removes an entire category of operational work.\n\nSimplicity is the feature — Caddy won't replace nginx's module ecosystem or Traefik's dynamic discovery for complex setups, but for \"serve this app over HTTPS correctly,\" it's unmatched. This skill covers Caddyfile patterns, reverse proxying, TLS behavior, and production deployment.\n\n## When to use\n\n- Serving a site or API over HTTPS with zero certificate hassle.\n- Reverse-proxying to app servers simply and correctly.\n- Choosing between Caddy, nginx, and Traefik.\n- Writing Caddyfiles (matchers, handlers, snippets).\n- Running Caddy in production (systemd, Docker, clustering).\n- Using Caddy as a static file server.\n- Extending Caddy with plugins (crowdsec, custom modules).\n\n## Core concepts\n\n- **Automatic HTTPS.** Caddy obtains certs via ACME (Let's Encrypt\u002FZeroSSL) on first request, renews automatically, and redirects HTTP→HTTPS by default. The criteria: a public DNS name Caddy can serve challenges for. This eliminates the most common TLS operational work.\n- **The Caddyfile.** Site blocks with directives — declarative, minimal, readable. `reverse_proxy`, `file_server`, `php_fastcgi`, `respond` cover most needs. Snippets (`(name) { }` + `import`) DRY up repeated config.\n- **Matchers.** Named matchers (`@api { path \u002Fapi\u002F* }`) select requests for handlers; `handle` blocks route exclusively (first match wins), `route` blocks run in order. Understanding `handle` vs `route` prevents routing surprises.\n- **Reverse proxy.** `reverse_proxy localhost:3000` with automatic header passing (X-Forwarded-For\u002FProto set correctly), health checks (active\u002Fpassive), and load balancing across upstreams. The defaults are right for most apps.\n- **TLS details.** `tls` directive for DNS challenge (wildcards), custom certs, or internal CA; on-demand TLS for many dynamic domains (with rate-limit care); storage of certs (persist `\u002Fdata`!).\n- **ACME challenges.** HTTP\u002FTLS-ALPN automatic; DNS challenge via provider plugins for wildcards or firewalled servers. Staging CA for testing; watch rate limits with many domains.\n- **Static files.** `file_server` with `root`, `try_files` for SPAs, `encode gzip zstd` for compression, `header` for cache control. Precompressed file serving included.\n- **Logging.** Structured JSON logs by default; `log` directive per site; tune for your log pipeline. Access logs with latency fields make performance debugging easy.\n- **Security headers.** `header` directive for HSTS\u002FCSP\u002FX-Frame-Options — set deliberately; Caddy's defaults are safe but headers are your app's policy.\n- **Plugins (xcaddy).** DNS providers, crowdsec, layer4, and more via custom builds. Plugins are compiled in — plan the build; don't hand-roll crypto-adjacent plugins.\n- **API and config.** Caddy's admin API allows dynamic config changes (JSON); the Caddyfile adapts to JSON. Useful for automation; secure the admin endpoint (it's localhost-only by default).\n- **Clustering.** Multiple Caddy instances sharing cert storage (via storage plugins: Redis, S3, Consul) for HA — certs issued once, shared everywhere.\n- **Systemd\u002FDocker.** Official systemd unit and Docker image; run as non-root where possible; persist `\u002Fdata` (certs) and `\u002Fconfig`.\n\n## Practical workflow\n\n1. **Write the Caddyfile.** Site blocks per domain; reverse_proxy to apps; file_server for statics. Start minimal — Caddy's defaults handle TLS, HTTP→HTTPS, and headers.\n   ```\n   api.example.com {\n     reverse_proxy 127.0.0.1:3000 127.0.0.1:3001 {\n       lb_policy least_conn\n       health_uri \u002Fhealth\n     }\n   }\n   static.example.com {\n     root * \u002Fsrv\u002Fwww\n     file_server\n     encode gzip zstd\n     header Cache-Control \"public, max-age=31536000, immutable\"\n   }\n   ```\n2. **Use snippets for shared config.** Security headers, logging, and common proxy settings defined once:\n   ```\n   (secure) {\n     header {\n       Strict-Transport-Security \"max-age=31536000; includeSubDomains\"\n       X-Content-Type-Options \"nosniff\"\n       X-Frame-Options \"DENY\"\n     }\n   }\n   api.example.com {\n     import secure\n     reverse_proxy 127.0.0.1:3000\n   }\n   ```\n3. **Validate and format.** `caddy fmt --overwrite` for canonical formatting; `caddy validate` before reloads; `caddy reload` for zero-downtime changes.\n4. **Handle TLS edge cases.** DNS challenge for wildcards (`tls { dns cloudflare ... }` with plugin build); on-demand TLS with an `ask` endpoint for SaaS-style dynamic domains; persist `\u002Fdata` always.\n5. **Add matchers and routing.** `@api path \u002Fapi\u002F*` + `handle @api` blocks for path-based routing; `handle_path` stripping prefixes; test routing with curl before declaring victory.\n6. **Configure logging.** JSON access logs with relevant fields; per-site logs; ship to your log pipeline; watch for upstream error patterns.\n7. **Run in production.** Systemd unit (or Docker) with restart policies; non-root user; `\u002Fdata` and `\u002Fconfig` persisted and backed up; admin API bound to localhost.\n8. **Scale if needed.** Single Caddy handles surprising traffic; for HA, cluster with shared cert storage; monitor cert expiry and upstream health.\n\n## Common pitfalls\n\n- **Not persisting `\u002Fdata`** — certificates reissued on every restart, hitting rate limits; persist and back up.\n- **Testing ACME on production** — rate-limit lockout; use staging CA during setup.\n- **On-demand TLS without `ask`** — anyone triggering cert issuance for arbitrary domains; gate with an ask endpoint.\n- **`handle` vs `route` confusion** — routing behaving unexpectedly; `handle` is mutually exclusive, `route` is ordered.\n- **HTTP challenge blocked** — firewall\u002Fproxy preventing port 80; use DNS challenge instead.\n- **Forgetting `encode`** — uncompressed responses; enable gzip\u002Fzstd for text assets.\n- **Plugin builds unmanaged** — hand-built binaries drifting; version and automate xcaddy builds.\n- **Admin API exposed** — config API reachable remotely; keep it localhost-bound.\n- **No health checks** — traffic to dead upstreams; configure active\u002Fpassive checks.\n- **Overriding defaults badly** — disabling automatic HTTPS or HTTP→HTTPS redirect without reason; the defaults are secure.\n- **Single instance as SPOF** — no HA plan; cluster with shared storage when uptime demands it.\n- **Ignoring logs** — structured logs available but unshipped; wire into your pipeline from day one.\n- **Wildcard without DNS plugin** — HTTP challenge can't do wildcards; build with the DNS provider plugin.\n",{"name":5,"category":24,"description":7},"development","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-caddy-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 caddy-pro",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill caddy-pro",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill caddy-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-caddy-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",[],[]]