{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ruby-on-rails-gateway",
    "name": "Ruby On Rails Gateway",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/jessewaites/ruby-on-rails-gateway",
    "canonicalUrl": "https://clawhub.ai/jessewaites/ruby-on-rails-gateway",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/ruby-on-rails-gateway",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ruby-on-rails-gateway",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "skill.md",
      "references/usage.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/ruby-on-rails-gateway"
    },
    "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/ruby-on-rails-gateway",
    "agentPageUrl": "https://openagent3.xyz/skills/ruby-on-rails-gateway/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ruby-on-rails-gateway/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ruby-on-rails-gateway/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": "Rails Agent Gateway",
        "body": "This skill works in tandem with the\nagent_gateway Ruby gem,\na mountable Rails engine that must be installed and configured on the\nRails side (gem \"agent_gateway\" + initializer). This skill handles\nthe OpenClaw-side setup and usage for pulling data from that endpoint."
      },
      {
        "title": "Quick Workflow",
        "body": "Confirm required env vars are available.\nValidate endpoint connectivity with a non-destructive briefing fetch.\nPull briefing data for a selected period/resources.\nSummarize result counts, aggregations, and latest records.\nIf requested, prepare commands suitable for cron/automation."
      },
      {
        "title": "Required Environment",
        "body": "Require these variables before any live fetch:\n\nAGENT_GATEWAY_TOKEN (bearer token — set in the Rails app initializer as c.auth_token)\nAGENT_GATEWAY_SECRET (path secret — set as c.path_secret)\n\nThe OpenClaw helper script may also read:\n\nRAILS_GATEWAY_URL (full /briefing URL, e.g. https://myapp.com/agent-gateway/<secret>/briefing)\nRAILS_GATEWAY_TOKEN (maps to bearer token)\n\nIf env vars are missing, stop and show the exact export commands needed."
      },
      {
        "title": "Authentication",
        "body": "The gem uses two-layer auth:\n\nPath secret — embedded in the URL (/agent-gateway/<secret>/briefing). Wrong value returns 404 (endpoint appears nonexistent).\nBearer token — sent via Authorization header. Wrong/missing value returns 401.\n\nBoth are compared using timing-safe secure_compare."
      },
      {
        "title": "Direct curl",
        "body": "curl -H \"Authorization: Bearer $AGENT_GATEWAY_TOKEN\" \\\n  \"https://myapp.com/agent-gateway/$AGENT_GATEWAY_SECRET/briefing?period=7d&resources=users,orders\""
      },
      {
        "title": "Helper script",
        "body": "Prefer the local helper script when present:\n\n/home/node/.openclaw/workspace/scripts/rails-gateway-briefing --period 7d\n\nWith explicit env vars:\n\nRAILS_GATEWAY_URL='https://myapp.com/agent-gateway/<secret>/briefing' \\\nRAILS_GATEWAY_TOKEN='***' \\\n/home/node/.openclaw/workspace/scripts/rails-gateway-briefing --period 7d --resources users,orders"
      },
      {
        "title": "Query Parameters",
        "body": "ParamDescriptionExampleperiodTime window: 1d, 7d, 30d, 90d, 1y, all?period=30dresourcesComma-separated resource keys?resources=users,orderslatestOverride latest count for all resources?latest=10"
      },
      {
        "title": "Resource-Scoped Pulls",
        "body": "Resources are configured per-app via the gem's DSL. Common examples:\n\n--resources users\n--resources orders\n\nUse --latest N to cap detailed rows while keeping counts.\n\nThe gem DSL also supports aggregations (count, sum, avg) on numeric\ncolumns — these appear in the response alongside count and latest."
      },
      {
        "title": "Safety Rules",
        "body": "Never print or echo live tokens in user-visible output.\nRedact secrets in pasted commands.\nDo not perform external write actions unless explicitly asked.\nKeep pulls read-only (briefing endpoint usage only)."
      },
      {
        "title": "Troubleshooting",
        "body": "If calls fail:\n\nConfirm helper script exists and is executable.\nConfirm endpoint URL includes /agent-gateway/<secret>/briefing.\nConfirm bearer token is current (AGENT_GATEWAY_TOKEN).\nCheck two-layer auth: 404 = bad path secret, 401 = bad bearer token.\nRetry with minimal scope (--resources users --period 7d --latest 1).\nReport exact error class (auth/network/format), then propose a fix.\n\nFor reusable command snippets and output interpretation, read\nreferences/usage.md."
      }
    ],
    "body": "Rails Agent Gateway\n\nThis skill works in tandem with the agent_gateway Ruby gem, a mountable Rails engine that must be installed and configured on the Rails side (gem \"agent_gateway\" + initializer). This skill handles the OpenClaw-side setup and usage for pulling data from that endpoint.\n\nQuick Workflow\nConfirm required env vars are available.\nValidate endpoint connectivity with a non-destructive briefing fetch.\nPull briefing data for a selected period/resources.\nSummarize result counts, aggregations, and latest records.\nIf requested, prepare commands suitable for cron/automation.\nRequired Environment\n\nRequire these variables before any live fetch:\n\nAGENT_GATEWAY_TOKEN (bearer token — set in the Rails app initializer as c.auth_token)\nAGENT_GATEWAY_SECRET (path secret — set as c.path_secret)\n\nThe OpenClaw helper script may also read:\n\nRAILS_GATEWAY_URL (full /briefing URL, e.g. https://myapp.com/agent-gateway/<secret>/briefing)\nRAILS_GATEWAY_TOKEN (maps to bearer token)\n\nIf env vars are missing, stop and show the exact export commands needed.\n\nAuthentication\n\nThe gem uses two-layer auth:\n\nPath secret — embedded in the URL (/agent-gateway/<secret>/briefing). Wrong value returns 404 (endpoint appears nonexistent).\nBearer token — sent via Authorization header. Wrong/missing value returns 401.\n\nBoth are compared using timing-safe secure_compare.\n\nCommand Patterns\nDirect curl\ncurl -H \"Authorization: Bearer $AGENT_GATEWAY_TOKEN\" \\\n  \"https://myapp.com/agent-gateway/$AGENT_GATEWAY_SECRET/briefing?period=7d&resources=users,orders\"\n\nHelper script\n\nPrefer the local helper script when present:\n\n/home/node/.openclaw/workspace/scripts/rails-gateway-briefing --period 7d\n\n\nWith explicit env vars:\n\nRAILS_GATEWAY_URL='https://myapp.com/agent-gateway/<secret>/briefing' \\\nRAILS_GATEWAY_TOKEN='***' \\\n/home/node/.openclaw/workspace/scripts/rails-gateway-briefing --period 7d --resources users,orders\n\nQuery Parameters\nParam\tDescription\tExample\nperiod\tTime window: 1d, 7d, 30d, 90d, 1y, all\t?period=30d\nresources\tComma-separated resource keys\t?resources=users,orders\nlatest\tOverride latest count for all resources\t?latest=10\nResource-Scoped Pulls\n\nResources are configured per-app via the gem's DSL. Common examples:\n\n--resources users\n--resources orders\n\nUse --latest N to cap detailed rows while keeping counts.\n\nThe gem DSL also supports aggregations (count, sum, avg) on numeric columns — these appear in the response alongside count and latest.\n\nSafety Rules\nNever print or echo live tokens in user-visible output.\nRedact secrets in pasted commands.\nDo not perform external write actions unless explicitly asked.\nKeep pulls read-only (briefing endpoint usage only).\nTroubleshooting\n\nIf calls fail:\n\nConfirm helper script exists and is executable.\nConfirm endpoint URL includes /agent-gateway/<secret>/briefing.\nConfirm bearer token is current (AGENT_GATEWAY_TOKEN).\nCheck two-layer auth: 404 = bad path secret, 401 = bad bearer token.\nRetry with minimal scope (--resources users --period 7d --latest 1).\nReport exact error class (auth/network/format), then propose a fix.\n\nFor reusable command snippets and output interpretation, read references/usage.md."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/jessewaites/ruby-on-rails-gateway",
    "publisherUrl": "https://clawhub.ai/jessewaites/ruby-on-rails-gateway",
    "owner": "jessewaites",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ruby-on-rails-gateway",
    "downloadUrl": "https://openagent3.xyz/downloads/ruby-on-rails-gateway",
    "agentUrl": "https://openagent3.xyz/skills/ruby-on-rails-gateway/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ruby-on-rails-gateway/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ruby-on-rails-gateway/agent.md"
  }
}