跳到正文
TakoAPI
返回技能列表

ruby-on-rails-gateway

由 jessewaites 提供

Coding Agents & IDEs
275下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Configure and operate a Ruby On Rails Agent Gateway integration.

描述

该技能的功能

Configures and operates the OpenClaw side of a Rails Agent Gateway integration. Pulls briefing data from a Rails app's `/agent-gateway/:secret/briefing` endpoint using two-layer authentication. Handles env var validation, connectivity testing, and scheduled data pulls.

Pairing this with the agent_gateway gem gives a read-only, token-secured data pull path without exposing a full API or admin credentials.

何时使用

  • Pull a 7-day user and order summary from a Rails app
  • Validate gateway token setup before running automated reports
  • Schedule recurring briefing fetches via cron
  • Diagnose 401/404 auth failures on the gateway endpoint
  • Generate aggregated resource counts for a reporting workflow

示例工作流

输入

User asks: Pull a 30-day briefing for users and orders from my Rails app

智能体
  1. 1

    Check that AGENT_GATEWAY_TOKEN, AGENT_GATEWAY_SECRET, and RAILS_GATEWAY_URL are set

  2. 2

    Validate connectivity with a minimal fetch (--resources users --period 1d --latest 1)

  3. 3

    Run full pull: --period 30d --resources users,orders

  4. 4

    Parse response for counts, aggregations, and latest records

  5. 5

    Return summarized results with secrets redacted from output

输出

Summary of user and order counts, aggregations, and latest rows for the past 30 days

前置要求

  • AGENT_GATEWAY_TOKEN environment variable (bearer token set in the Rails app initializer)
  • AGENT_GATEWAY_SECRET environment variable (path secret set in the Rails app initializer)
  • RAILS_GATEWAY_URL environment variable (full briefing endpoint URL)
  • agent_gateway Ruby gem installed and configured in the target Rails application

安装

clawhub install jessewaites/ruby-on-rails-gateway

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接