{
  "schemaVersion": "1.0",
  "item": {
    "slug": "nginx",
    "name": "Nginx",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ivangdavila/nginx",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/nginx",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/nginx",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=nginx",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "examples.md",
      "performance.md",
      "proxy.md",
      "ssl.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/nginx"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/nginx",
    "agentPageUrl": "https://openagent3.xyz/skills/nginx/agent",
    "manifestUrl": "https://openagent3.xyz/skills/nginx/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/nginx/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "When to Use",
        "body": "User needs Nginx expertise — from basic server blocks to production configurations. Agent handles reverse proxy, SSL, caching, and performance tuning."
      },
      {
        "title": "Quick Reference",
        "body": "TopicFileReverse proxy patternsproxy.mdSSL/TLS configurationssl.mdPerformance tuningperformance.mdCommon configurationsexamples.md"
      },
      {
        "title": "Location Matching",
        "body": "Exact = first, then ^~ prefix, then regex ~/~*, then longest prefix\nlocation /api matches /api, /api/, /api/anything — prefix match\nlocation = /api only matches exactly /api — not /api/\nlocation ~ \\.php$ is regex, case-sensitive — ~* for case-insensitive\n^~ stops regex search if prefix matches — use for static files"
      },
      {
        "title": "proxy_pass Trailing Slash",
        "body": "proxy_pass http://backend preserves location path — /api/users → /api/users\nproxy_pass http://backend/ replaces location path — /api/users → /users\nCommon mistake: missing slash = double path — or unexpected routing\nTest with curl -v to see actual backend request"
      },
      {
        "title": "try_files",
        "body": "try_files $uri $uri/ /index.html for SPA — checks file, then dir, then fallback\nLast argument is internal redirect — or =404 for error\n$uri/ tries directory with index — set index index.html\nDon't use for proxied locations — use proxy_pass directly"
      },
      {
        "title": "Proxy Headers",
        "body": "proxy_set_header Host $host — backend sees original host, not proxy IP\nproxy_set_header X-Real-IP $remote_addr — client IP, not proxy\nproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for — append to chain\nproxy_set_header X-Forwarded-Proto $scheme — for HTTPS detection"
      },
      {
        "title": "Upstream",
        "body": "Define servers in upstream block — upstream backend { server 127.0.0.1:3000; }\nproxy_pass http://backend uses upstream — load balancing included\nHealth checks with max_fails and fail_timeout — marks server unavailable\nkeepalive 32 for connection pooling — reduces connection overhead"
      },
      {
        "title": "SSL/TLS",
        "body": "ssl_certificate is full chain — cert + intermediates, not just cert\nssl_certificate_key is private key — keep permissions restricted\nssl_protocols TLSv1.2 TLSv1.3 — disable older protocols\nssl_prefer_server_ciphers on — server chooses cipher, not client"
      },
      {
        "title": "Common Mistakes",
        "body": "nginx -t before nginx -s reload — test config first\nMissing semicolon — syntax error, vague message\nroot inside location — prefer in server, override only when needed\nalias vs root — alias replaces location, root appends location\nVariables in if — many things break inside if, avoid complex logic"
      },
      {
        "title": "Variables",
        "body": "$uri is decoded, normalized path — /foo%20bar becomes /foo bar\n$request_uri is original with query string — unchanged from client\n$args is query string — $arg_name for specific parameter\n$host from Host header — $server_name from config"
      },
      {
        "title": "Performance",
        "body": "worker_processes auto — matches CPU cores\nworker_connections 1024 — per worker, multiply by workers for max\nsendfile on — kernel-level file transfer\ngzip on only for text — gzip_types text/plain application/json ...\ngzip_min_length 1000 — small files not worth compressing"
      },
      {
        "title": "Logging",
        "body": "access_log off for static assets — reduces I/O\nCustom log format with log_format — add response time, upstream time\nerror_log level: debug, info, warn, error — debug is verbose\nConditional logging with map and if — skip health checks"
      }
    ],
    "body": "When to Use\n\nUser needs Nginx expertise — from basic server blocks to production configurations. Agent handles reverse proxy, SSL, caching, and performance tuning.\n\nQuick Reference\nTopic\tFile\nReverse proxy patterns\tproxy.md\nSSL/TLS configuration\tssl.md\nPerformance tuning\tperformance.md\nCommon configurations\texamples.md\nLocation Matching\nExact = first, then ^~ prefix, then regex ~/~*, then longest prefix\nlocation /api matches /api, /api/, /api/anything — prefix match\nlocation = /api only matches exactly /api — not /api/\nlocation ~ \\.php$ is regex, case-sensitive — ~* for case-insensitive\n^~ stops regex search if prefix matches — use for static files\nproxy_pass Trailing Slash\nproxy_pass http://backend preserves location path — /api/users → /api/users\nproxy_pass http://backend/ replaces location path — /api/users → /users\nCommon mistake: missing slash = double path — or unexpected routing\nTest with curl -v to see actual backend request\ntry_files\ntry_files $uri $uri/ /index.html for SPA — checks file, then dir, then fallback\nLast argument is internal redirect — or =404 for error\n$uri/ tries directory with index — set index index.html\nDon't use for proxied locations — use proxy_pass directly\nProxy Headers\nproxy_set_header Host $host — backend sees original host, not proxy IP\nproxy_set_header X-Real-IP $remote_addr — client IP, not proxy\nproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for — append to chain\nproxy_set_header X-Forwarded-Proto $scheme — for HTTPS detection\nUpstream\nDefine servers in upstream block — upstream backend { server 127.0.0.1:3000; }\nproxy_pass http://backend uses upstream — load balancing included\nHealth checks with max_fails and fail_timeout — marks server unavailable\nkeepalive 32 for connection pooling — reduces connection overhead\nSSL/TLS\nssl_certificate is full chain — cert + intermediates, not just cert\nssl_certificate_key is private key — keep permissions restricted\nssl_protocols TLSv1.2 TLSv1.3 — disable older protocols\nssl_prefer_server_ciphers on — server chooses cipher, not client\nCommon Mistakes\nnginx -t before nginx -s reload — test config first\nMissing semicolon — syntax error, vague message\nroot inside location — prefer in server, override only when needed\nalias vs root — alias replaces location, root appends location\nVariables in if — many things break inside if, avoid complex logic\nVariables\n$uri is decoded, normalized path — /foo%20bar becomes /foo bar\n$request_uri is original with query string — unchanged from client\n$args is query string — $arg_name for specific parameter\n$host from Host header — $server_name from config\nPerformance\nworker_processes auto — matches CPU cores\nworker_connections 1024 — per worker, multiply by workers for max\nsendfile on — kernel-level file transfer\ngzip on only for text — gzip_types text/plain application/json ...\ngzip_min_length 1000 — small files not worth compressing\nLogging\naccess_log off for static assets — reduces I/O\nCustom log format with log_format — add response time, upstream time\nerror_log level: debug, info, warn, error — debug is verbose\nConditional logging with map and if — skip health checks"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/nginx",
    "publisherUrl": "https://clawhub.ai/ivangdavila/nginx",
    "owner": "ivangdavila",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/nginx",
    "downloadUrl": "https://openagent3.xyz/downloads/nginx",
    "agentUrl": "https://openagent3.xyz/skills/nginx/agent",
    "manifestUrl": "https://openagent3.xyz/skills/nginx/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/nginx/agent.md"
  }
}