Token导航 LogoToken导航

Agent Skill · 待分类

gateway(gateway 搜索)

gateway 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

gateway 是待分类类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在待分类类的 11,209 个 Skill 里排第 3,483。

总安装 998周安装 40GitHub Stars 55下载 323核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gateway(gateway 搜索)
来源仓库:https://github.com/joelhooks/joelclaw
仓库路径:skills/gateway
安装命令:
npx skills add https://github.com/joelhooks/joelclaw --skill gateway
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/joelhooks/joelclaw --skill gateway

这个 Skill 是做什么的

这个 Skill 的分类还没最终确定,用法以来源仓库的说明为准。

gateway 用于网关相关功能的信息处理。适合在 Codex、Claude、Cursor、Gemini CLI 中处理仓库协作信息。支持围绕仓库状态或代码变更进行信息整理。gateway 属于待分类类 Skill,可作为该场景下的辅助能力补充。安装前建议确认权限范围和维护状态后再使用。

可结合来源仓库和原始 README 进一步核验具体用法。

来源仓库内路径:skills/gateway

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/joelhooks/joelclaw --skill gateway;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

gateway 怎么安装?

在终端执行 npx skills add https://github.com/joelhooks/joelclaw --skill gateway。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

gateway 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

gateway 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

gateway 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

gateway 用的人多吗?

公开数据是累计安装 998 次,近一周安装 40 次,下载 323 次,GitHub 55 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

gateway 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理待分类类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

待分类类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
infsh-cli

infsh CLI · Codex、Claude

4,374,576382权限未标注未明确未收录
ai-video-generation

AI 视频生成 · Codex、Claude

4,313,376382调用外部服务未明确有提醒
lark-openapi-explorer

云雀 OpenAPI 浏览器 · Codex、Claude

2,064,1209,011需要联网未明确有提醒
lark-workflow-standup-report

Lark 工作流程站立报告 · Codex、Claude

2,041,6328,978需要联网未明确通过
use-my-browser

使用我的浏览器 · Codex、Claude

1,848,49140操作浏览器未明确未通过
gateway

gateway 搜索 · 本页

99855需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Gateway Operations

The gateway daemon is the always-on pi session that receives events from Inngest functions, Telegram, and webhooks. It's the system's notification and communication layer.

Rule: Always use joelclaw gateway CLI. Never use launchctl, curl, or log file grep directly.

CLI Commands

joelclaw gateway status    # Daemon availability, runtime mode, session pressure, Redis health
joelclaw gateway restart   # Roll daemon, clean Redis, fresh session
joelclaw gateway enable    # Re-enable launch agent + start daemon
joelclaw gateway test      # Push test event, verify delivery (Redis bridge path)
joelclaw gateway push --type <type> [--payload JSON]  # Push an event to all sessions
joelclaw gateway events    # Peek at pending events per session
joelclaw gateway drain     # Clear all event queues
joelclaw gateway stream    # NDJSON stream of all gateway events (ADR-0058)
joelclaw gateway behavior {add|list|promote|remove|apply|stats}  # ADR-0211 behavior control plane

joelclaw gateway restart is the canonical restart. It kills the process, cleans Redis state, re-enables com.joel.gateway if launchd disabled it, waits for launchd to respawn, and verifies the new session. joelclaw gateway enable is the direct recovery path when launchd drift disabled the service. Never use launchctl bootout/bootstrap directly.

Quick Triage

Substrate precheck first (avoid chasing secondary gateway symptoms):

colima status --json
kubectl get nodes -o wide
kubectl get pods -n joelclaw redis-0 inngest-0

If Colima is down or node/core pods are not healthy, recover substrate before gateway operations.

Run in order, stop at first failure:

joelclaw gateway status    # 1. Is it alive? Sessions registered?
joelclaw gateway test      # 2. Can events flow end-to-end?
joelclaw gateway events    # 3. Are events piling up? (backpressure)
joelclaw gateway restart   # 4. If stuck, restart

If joelclaw gateway status shows pending > 0 on sessions, the agent is mid-stream or stuck. If it persists after a minute, restart.

Redis-degraded mode (ADR-0214)

joelclaw gateway status now distinguishes:

  • mode: normal — Redis bridge healthy
  • mode: redis_degraded — daemon/channels/session available, but Redis-backed capabilities are degraded

When mode=redis_degraded:

  • direct human conversation can still work
  • Redis-backed commands/inspections are only partially trustworthy
  • joelclaw gateway test validates the Redis bridge path, so expect joelclaw gateway diagnose to skip that layer intentionally
  • use joelclaw gateway diagnose to see the degraded capability list and session pressure fields

Do not report redis_degraded as “gateway down” unless process/session health is also failing.

Gateway context refresh scoping (ADR-0204)

Gateway rolling context refresh is useful only when it stays scoped.

Hard rule:

  • do not treat automated digests, gateway event wrappers, recovery summaries, or terse acknowledgements as recall seeds
  • if there is no real conversational topic, skip refresh rather than querying generic global memory

Why:

  • a bad hidden context-refresh injection poisons the live gateway session even when joelclaw gateway status still reports healthy
  • this showed up as unrelated voice/livekit notes bleeding into the gateway transcript

If Joel says the gateway session feels "fucked" while health checks look green, inspect the gateway session transcript for hidden context-refresh / gateway-recovery / memory-recall messages before trusting the CLI summary.

Session pressure visibility (ADR-0218 rank 3 slice)

joelclaw gateway status / joelclaw gateway diagnose now expose session-pressure specifics instead of just a coarse health word:

  • context usage % + next action
  • next threshold summary (compact at 65%... / rotate at 75%... / rotate immediately)
  • last compaction age + session age
  • thread counts (active / warm / total)
  • fallback state + activation count + consecutive prompt failures
  • pressure reasons (context_usage, context_ceiling, compaction_gap, session_age)
  • last alert health/time + cooldown state

The daemon emits OTEL under daemon.session-pressure (session_pressure.alert.sent|suppressed|failed). Operator paging is stricter now: only critical pressure states page Telegram, while elevated / recovered transitions stay in status/diagnose/OTEL.

Idle maintenance is autonomous for time-based pressure:

  • watchdog evaluates idle session pressure even when no turn is active
  • overdue compaction gaps trigger autonomous compaction instead of waiting for the next human/event turn
  • age-triggered rotation can also happen from the watchdog path, seeding the fresh session with the compression summary before the next inbound turn
  • those watchdog-triggered runs emit the same daemon.maintenance.started|completed|failed telemetry as turn-bound maintenance

Interruptibility and supersession (ADR-0196 / ADR-0218 rank 4 slice)

For direct human turns across Telegram, Discord, iMessage, and Slack invoke paths, the latest message now wins.

Runtime contract:

  • new human turns get a short 1.5s batching window before dispatch
  • batching is per source, so rapid follow-ups collapse into one queued prompt
  • if that source is already active, gateway supersedes immediately instead of waiting on the timer
  • stale queued prompts from that source are dropped
  • durable queue replay must not self-drop the freshest human message; supersession only applies when a genuinely newer same-source message exists
  • daemon requests session.abort() on the stale turn
  • stale response text is suppressed instead of being delivered late
  • joelclaw gateway status exposes supersession plus supersession.batching
  • joelclaw gateway diagnose adds an interruptibility layer with supersession and batching details

Passive intel / background event routes are excluded from this path.

Operator ack/timeout tracing (ADR-0218 rank 5 slice)

Telegram operator actions now get trace ids and explicit lifecycle tracking.

Current covered paths:

  • cmd:* command-menu callbacks
  • worktree:* callbacks
  • pitch:* ADR pitch callbacks
  • default Telegram callback actions and external callback-route handoffs
  • direct Telegram slash commands registered through the command handler
  • native Telegram /stop, /esc, and /kill commands

Gateway now tracks kind=callback|command plus ack/dispatched/completed/failed/timed_out state for those paths, exposes canonical operatorTracing in joelclaw gateway status (with callbackTracing kept as a compatibility alias), and adds an operator-tracing layer in joelclaw gateway diagnose.

Queued Telegram agent commands now keep their trace id through downstream gateway execution, complete on the real turn completion path, and fail on prompt error / assistant error / supersession instead of lying at enqueue time. Agent-backed command traces use a longer timeout window than simple callback ack paths.

External callback routes now have a Redis trace-result handoff too: the gateway leaves routed callbacks active, downstream consumers can publish completed / failed back with the same traceId, and the in-tree Restate Telegram route is wired to close traces on real downstream resolution.

Still open: any out-of-tree external callback consumer that doesn't adopt the handoff will still timeout as untracked work.

Channel runtime contracts (ADR-0218 rank 6 slice)

joelclaw gateway status now exposes a canonical channels surface plus summarized channelHealth for Telegram, Discord, iMessage, and Slack. joelclaw gateway diagnose adds a channel-health layer so owner/passive/fallback and half-dead channel states are visible before a full outage.

Current rank-6 behavior also sends immediate degrade/recover alerts from the daemon, emits OTEL under daemon.channel-health, respects joelclaw gateway known-issues mute state so known flaky channels stop crying wolf, and now tracks guarded heal policy state per channel.

channelHealth.healing now shows restart/manual policy, degraded streaks, cooldown, attempt counts, last result, plus manualRepairRequired, manualRepairSummary, and manualRepairCommands when the watchdog cannot fix the channel itself. gateway diagnose adds channel-healing, spells out manual operator repair steps, and the watchdog can attempt guarded restarts for restart-eligible degraded channels while leaving ownership/lease conflicts as manual/operator work.

Telegram retrying getUpdates conflicts no longer read as healthy fallback: when polling is down and only retrying, the ownership contract degrades visibly in /health, gateway status, and gateway diagnose.

Low-signal operator-spam guardrails now also apply:

  • treat restate / restate/* sources as automation for batching, so successful queue-dispatch DAG completions don’t hit the live gateway session immediately
  • suppress test.gateway-e2e from operator delivery by default
  • route Joel Slack passive intel through the canonical Redis signal pipeline (slack.signal.received) instead of bypassing relay policy
  • use packages/gateway/src/operator-relay.ts as the single heuristics surface for normalize → score → correlate → route across Slack/email signals
  • ingest vip.email.received after the VIP pipeline delivers its direct Telegram brief so the gateway keeps correlation context without sending a duplicate alert, while allowing lower-signal email/Slack items to batch into a correlated digest by project/contact/conversation keys
  • drop low-signal-only digests (heartbeat-only / queue-dispatch-complete-only) instead of prompting the model for a pointless HEARTBEAT_OK
  • routine fallback swap/recovery notices are not operator-facing during quiet hours, and recovery notices are log/OTEL-only unless some higher-signal path escalates them
  • suppress direct operator-only Knowledge Watchdog Alert messages during quiet hours
  • add proactive-compaction hysteresis (30m cooldown unless context meaningfully worsens)
  • require a minimum dwell on fallback before probing primary again, so fallback swap→restore chatter doesn’t flap immediately
  • when the primary model is claude-opus-4-6, floor fallbackTimeoutMs to 240000; 120000 is now treated as stale and too aggressive for real Opus TTFT
  • clear fallback timeout state immediately on empty/aborted message_end events so aborted turns cannot poison the next turn's latency/fallback monitoring
  • emit structured fallback decision telemetry (model_fallback.decision) with reason buckets / probe counts / probe backoff so OTEL can separate real provider sickness from a noisy control loop
  • back off primary recovery probes after transient/persistent probe failures instead of hammering the same sick provider every interval
  • treat compaction/rotation as explicit maintenance windows: surface them in gateway status, emit maintenance lifecycle telemetry, and let idle-wait/watchdog logic extend for genuine maintenance work before declaring the turn dead

Muted degraded channels now also flip to manual with the known-issue reason surfaced as repair guidance, instead of falsely advertising a restart policy that the watchdog will skip while muted.

Still not done: stricter cross-channel ownership enforcement and richer/native repair automation beyond CLI-guided manual steps.

Runtime guardrail enforcement (ADR-0189)

Gateway runtime now enforces two operator-visible guardrails:

  1. Tool-budget checkpoint tripwire

- channel turns: forced checkpoint after the 2-tool budget is exceeded - internal/background turns: forced checkpoint after the 4-tool budget is exceeded - telemetry: daemon.guardrails:guardrail.checkpoint.*

  1. Automatic post-push deploy verification

- after successful git push where HEAD touched apps/web/ or root config (turbo.json, package.json, pnpm-lock.yaml) - daemon schedules vercel ls --yes 2>&1 | head -10 after ~75s - failures alert Telegram and emit daemon.guardrails:guardrail.deploy_verification.failed

Use joelclaw gateway status to inspect live guardrails state, and joelclaw gateway diagnose when a checkpoint or deploy verification is active.

Behavior Control Plane (ADR-0211)

Gateway behavior is now explicit + deterministic:

  • Runtime authority: Redis active contract (joelclaw:gateway:behavior:contract)
  • History/candidates: Typesense gateway_behavior_history
  • Write authority: CLI only (joelclaw gateway behavior...)

Operator directives can be entered directly via CLI or in-channel using strict syntax:

  • KEEP:...
  • MORE:...
  • LESS:...
  • STOP:...
  • START:...

Gateway extension passively captures those lines and shells to joelclaw gateway behavior add.... It does not write Redis or Typesense directly.

Daily review is advisory-only: candidates are generated by cron and must be promoted manually via joelclaw gateway behavior promote --id <candidate-id>.

Sending Events from Inngest Functions

Every Inngest function receives gateway via middleware (ADR-0035):

async ({ event, step, ...rest }) => {
  const gateway = (rest as any).gateway as GatewayContext | undefined;

  await step.run("notify", async () => {
    if (!gateway) return;
    await gateway.notify("my.event.type", {
      message: "Human-readable summary",
      data: "structured-payload",
    });
  });
}
MethodPurposeRouting
gateway.progress(msg, extra?)Pipeline/loop progressOrigin session + central gateway
gateway.notify(type, payload?)Notifications (task done, webhook)Origin session + central gateway
gateway.alert(msg, extra?)System warnings (disk, service down)Central gateway only

Import: import type {GatewayContext} from "../middleware/gateway";

Always null-check gateway — functions can run without a gateway session.

Low-Level: pushGatewayEvent()

For code outside the middleware:

import { pushGatewayEvent } from "./agent-loop/utils";

await pushGatewayEvent({
  type: "video.downloaded",
  source: "inngest/video-download",
  payload: { message: "Downloaded: My Talk" },
  originSession: event.data.originSession,
});

Common Failure Modes

SymptomLikely CauseFix
Status shows healthy but messages don't arriveSession stuck mid-stream on hung tool calljoelclaw gateway restart
Pending events growing on a sessionAgent processing or blockedWait 1min, then joelclaw gateway restart
Telegram messages not deliveredHTML parsing error in responseCheck joelclaw gateway status, restart
Slack passive firehose looks dead (mentions still work)SLACK_ALLOWED_USER_ID not derived at startupEnsure slack_user_token lease works; gateway-start.sh derives user id via auth.test, then joelclaw gateway restart
Slack replies have no default targetSLACK_DEFAULT_CHANNEL_ID not derived at startupEnsure slack_bot_token lease works; gateway-start.sh derives DM channel via conversations.open, then restart
Gateway restarts every few secondsCrash loop — bad secret lease or code errorCheck /tmp/joelclaw/gateway.err, fix cause
Redis connection failedRedis pod down or Colima/k8s substrate downCheck colima status --json, then joelclaw status/kubectl for cluster health
langfuse-cost optional dependency warningLangfuse tracing dependency missing for pi extension runtimeObservability degradation only; do not treat as message-path blocker

Architecture

launchd (com.joel.gateway)
  └─ gateway-start.sh (leases secrets, sets env)
       └─ bun run daemon.ts
            ├─ createAgentSession() → headless pi session (reads SOUL.md)
            ├─ Redis channel (joelclaw:notify:gateway)
            ├─ Telegram channel (@JoelClawPandaBot)
            ├─ WebSocket (port 3018, for TUI attach)
            ├─ Command queue (serial — one prompt at a time)
            └─ Heartbeat runner (periodic autonomous checks)

The gateway reads ~/.pi/agent/ at boot for identity/prompt context (SOUL.md, AGENTS.md, MEMORY.md, daily log), but the gateway extension itself is context-local:

  • Canonical source: ~/Code/joelhooks/joelclaw/pi/extensions/gateway/index.ts
  • Active path: ~/.joelclaw/gateway/.pi/extensions/gateway (symlink)
  • Do not install/restore ~/.pi/agent/extensions/gateway globally

Daemon startup enforces this invariant and will fail if local extension is missing or a global gateway extension is detected.

This keeps gateway automation hooks out of normal interactive pi sessions.

Key Files

FilePurpose
packages/gateway/src/daemon.tsDaemon entry — session creation, channels, heartbeat
packages/gateway/src/channels/redis.tsRedis subscribe, drain, prompt build
packages/gateway/src/channels/telegram.tsTelegram bot channel
packages/gateway/src/command-queue.tsSerial FIFO queue → session.prompt()
packages/gateway/src/heartbeat.tsPeriodic autonomous task runner
packages/system-bus/src/inngest/middleware/gateway.tsMiddleware injecting gateway context
packages/cli/src/commands/gateway.tsCLI subcommands
~/.joelclaw/scripts/gateway-start.shlaunchd start script
/tmp/joelclaw/gateway.{log,err,pid}Runtime logs and PID

ADR anchors

  • ADR-0213 — session lifecycle guards and anti-thrash behavior
  • ADR-0146 — Langfuse observability integration (must fail open when optional dependency is missing)

Related

  • ADR-0038: Gateway daemon architecture
  • ADR-0049: Gateway hung session detection + bash timeout
  • ADR-0058: Gateway NDJSON streaming
  • Skill: joelclaw — event bus CLI
  • Skill: webhooks — inbound webhook providers

平台分布

Codex

33.1%
按下载量换算107

Claude

30.01%
按下载量换算97

Cursor

20.46%
按下载量换算66

Gemini CLI

9.38%
按下载量换算30

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills