{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ngamux",
    "name": "Ngamux",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/hadihammurabi/ngamux",
    "canonicalUrl": "https://clawhub.ai/hadihammurabi/ngamux",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/ngamux",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ngamux",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.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/ngamux"
    },
    "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/ngamux",
    "agentPageUrl": "https://openagent3.xyz/skills/ngamux/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ngamux/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ngamux/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 this skill",
        "body": "Use this skill when the user needs to:\n\nDefine HTTP endpoints: Create new routes for various HTTP methods (e.g., mux.Get(\"/users/:id\", getUserHandler)) including dynamic path segments (/users/{id}) and wildcards (/files/*filePath).\nImplement request preprocessing/postprocessing: Add global middlewares (e.g., for authentication, logging, CORS) or group-specific middlewares to handle requests before they reach the main handler or after they are processed. For example, mux.Use(authMiddleware) or apiGroup.Use(loggingMiddleware).\nExtract incoming data from requests:\n\nURL Parameters: Retrieve values from dynamic path segments (e.g., req.Params(\"id\")).\nQuery Parameters: Access query string values (e.g., req.Query(\"name\", \"Guest\")).\nForm Data: Parse application/x-www-form-urlencoded or multipart/form-data (e.g., req.FormValue(\"username\"), req.FormFile(\"image\")).\nJSON Payloads: Decode application/json request bodies into Go structs (e.g., req.JSON(&user)).\n\n\nConstruct and send various response types:\n\nJSON Responses: Send structured data as JSON (e.g., ngamux.Res(rw).Status(http.StatusOK).Json(data)).\nText Responses: Send plain text (e.g., ngamux.Res(rw).Status(http.StatusOK).Text(\"Hello, World!\")).\nHTML Responses: Render HTML templates (e.g., ngamux.Res(rw).Status(http.StatusOK).HTML(\"template.html\", data)).\nCustom Status Codes: Set specific HTTP status codes for responses.\n\n\nConfigure router behavior: Adjust global settings like automatically removing trailing slashes (ngamux.WithTrailingSlash()), setting the logging verbosity (ngamux.WithLogLevel(slog.LevelDebug)), or providing custom json.Marshal/json.Unmarshal functions for specific serialization needs.\nOrganize routes with grouping: Create nested route groups to apply common path prefixes and middlewares to a set of routes (e.g., /api/v1).\nDebug routing or handler issues: Inspect route definitions, middleware chains, request context, and logging output to diagnose and resolve problems."
      },
      {
        "title": "Key Functionality",
        "body": "Route Definition: ngamux provides methods like mux.Get(), mux.Post(), mux.Put(), mux.Delete(), mux.Patch(), mux.Head(), and mux.All() to register http.HandlerFuncs for specific HTTP methods and paths. It supports path parameters (e.g., /{id}) and wildcards (/*filePath). Routes are efficiently stored and matched using a tree-like structure, leveraging the mapping package for optimized key-value storage.\nMiddleware Application: The mux.Use() method allows global middleware registration, while mux.Group() and mux.With() enable group-specific middlewares. Middlewares are MiddlewareFunc types that wrap http.HandlerFuncs, allowing for a chain of responsibility pattern. The WithMiddlewares utility from common.go handles the functional chaining.\nRequest Handling: The Request struct (wrapped *http.Request) offers convenience methods:\n\nReq().Params(key string): Retrieves URL path parameters parsed during routing.\nReq().Query(key string, fallback ...string): Accesses URL query string parameters.\nReq().QueriesParser(data any): Automatically binds query parameters to a Go struct using query tags and reflection.\nReq().FormValue(key string): Gets form field values.\nReq().FormFile(key string, maxFileSize ...int64): Handles file uploads from multipart forms.\nReq().JSON(store any): Decodes JSON request bodies into a provided Go interface.\nReq().Locals(key any, value ...any): Manages request-scoped data in the context.\n\n\nResponse Handling: The Response struct (wrapped http.ResponseWriter) provides a fluent API for crafting responses:\n\nRes(rw).Status(code int): Sets the HTTP status code.\nRes(rw).Text(data string): Sends text/plain content.\nRes(rw).JSON(data any): Sends application/json content, using the configured JSON marshaller.\nRes(rw).HTML(path string, data any): Renders HTML templates using html/template.\n\n\nConfiguration: Global Config options are set via ngamux.New() and functional options like ngamux.WithTrailingSlash() and ngamux.WithLogLevel(). Custom JSON marshalling/unmarshalling can be provided.\nRoute Grouping: The mux.Group(path string) and mux.GroupFunc(path string, router func(mux *Ngamux)) methods allow hierarchical organization of routes, where child groups inherit path prefixes and can apply their own set of middlewares, leading to cleaner code organization and shared logic."
      }
    ],
    "body": "When to use this skill\n\nUse this skill when the user needs to:\n\nDefine HTTP endpoints: Create new routes for various HTTP methods (e.g., mux.Get(\"/users/:id\", getUserHandler)) including dynamic path segments (/users/{id}) and wildcards (/files/*filePath).\nImplement request preprocessing/postprocessing: Add global middlewares (e.g., for authentication, logging, CORS) or group-specific middlewares to handle requests before they reach the main handler or after they are processed. For example, mux.Use(authMiddleware) or apiGroup.Use(loggingMiddleware).\nExtract incoming data from requests:\nURL Parameters: Retrieve values from dynamic path segments (e.g., req.Params(\"id\")).\nQuery Parameters: Access query string values (e.g., req.Query(\"name\", \"Guest\")).\nForm Data: Parse application/x-www-form-urlencoded or multipart/form-data (e.g., req.FormValue(\"username\"), req.FormFile(\"image\")).\nJSON Payloads: Decode application/json request bodies into Go structs (e.g., req.JSON(&user)).\nConstruct and send various response types:\nJSON Responses: Send structured data as JSON (e.g., ngamux.Res(rw).Status(http.StatusOK).Json(data)).\nText Responses: Send plain text (e.g., ngamux.Res(rw).Status(http.StatusOK).Text(\"Hello, World!\")).\nHTML Responses: Render HTML templates (e.g., ngamux.Res(rw).Status(http.StatusOK).HTML(\"template.html\", data)).\nCustom Status Codes: Set specific HTTP status codes for responses.\nConfigure router behavior: Adjust global settings like automatically removing trailing slashes (ngamux.WithTrailingSlash()), setting the logging verbosity (ngamux.WithLogLevel(slog.LevelDebug)), or providing custom json.Marshal/json.Unmarshal functions for specific serialization needs.\nOrganize routes with grouping: Create nested route groups to apply common path prefixes and middlewares to a set of routes (e.g., /api/v1).\nDebug routing or handler issues: Inspect route definitions, middleware chains, request context, and logging output to diagnose and resolve problems.\nKey Functionality\nRoute Definition: ngamux provides methods like mux.Get(), mux.Post(), mux.Put(), mux.Delete(), mux.Patch(), mux.Head(), and mux.All() to register http.HandlerFuncs for specific HTTP methods and paths. It supports path parameters (e.g., /{id}) and wildcards (/*filePath). Routes are efficiently stored and matched using a tree-like structure, leveraging the mapping package for optimized key-value storage.\nMiddleware Application: The mux.Use() method allows global middleware registration, while mux.Group() and mux.With() enable group-specific middlewares. Middlewares are MiddlewareFunc types that wrap http.HandlerFuncs, allowing for a chain of responsibility pattern. The WithMiddlewares utility from common.go handles the functional chaining.\nRequest Handling: The Request struct (wrapped *http.Request) offers convenience methods:\nReq().Params(key string): Retrieves URL path parameters parsed during routing.\nReq().Query(key string, fallback ...string): Accesses URL query string parameters.\nReq().QueriesParser(data any): Automatically binds query parameters to a Go struct using query tags and reflection.\nReq().FormValue(key string): Gets form field values.\nReq().FormFile(key string, maxFileSize ...int64): Handles file uploads from multipart forms.\nReq().JSON(store any): Decodes JSON request bodies into a provided Go interface.\nReq().Locals(key any, value ...any): Manages request-scoped data in the context.\nResponse Handling: The Response struct (wrapped http.ResponseWriter) provides a fluent API for crafting responses:\nRes(rw).Status(code int): Sets the HTTP status code.\nRes(rw).Text(data string): Sends text/plain content.\nRes(rw).JSON(data any): Sends application/json content, using the configured JSON marshaller.\nRes(rw).HTML(path string, data any): Renders HTML templates using html/template.\nConfiguration: Global Config options are set via ngamux.New() and functional options like ngamux.WithTrailingSlash() and ngamux.WithLogLevel(). Custom JSON marshalling/unmarshalling can be provided.\nRoute Grouping: The mux.Group(path string) and mux.GroupFunc(path string, router func(mux *Ngamux)) methods allow hierarchical organization of routes, where child groups inherit path prefixes and can apply their own set of middlewares, leading to cleaner code organization and shared logic."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/hadihammurabi/ngamux",
    "publisherUrl": "https://clawhub.ai/hadihammurabi/ngamux",
    "owner": "hadihammurabi",
    "version": "0.1.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ngamux",
    "downloadUrl": "https://openagent3.xyz/downloads/ngamux",
    "agentUrl": "https://openagent3.xyz/skills/ngamux/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ngamux/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ngamux/agent.md"
  }
}