debug-gateway

debug-gateway is a skill for Claude Code, Codex from kirodotdev/KiroCrew. It costs 63 tokens per session (2,212 once invoked), scanned A, original, Apache-2.0.

A guide for investigating whether a change reached a running service and for correctly reading the service's debugging tools. It focuses on a live gateway, which is a service that routes requests to other parts of an application.

In plain words
What is it for?
Use it to query the gateway before declaring a change ineffective, interpret debugging responses, investigate sandbox and authorisation issues, and understand common 400, 403, 404, and 501 errors.
Why use it?
A running process may still use code from before a change, making a correct fix look broken. This guidance helps check the live revision first and distinguish an old process from a policy refusal or other response.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to query the gateway before declaring a change ineffective, interpret debugging responses, investigate sandbox and authorisation issues, and understand common 400, 403, 404, and 501 errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kirodotdev/kirocrew/debug-gateway
About the project

Kiro Crew is a persistent development workspace where agents continue multi-step software work across sessions, schedules, and connected interfaces. Developers use it locally or remotely through a desktop app, web dashboard, CLI, Slack, or Discord, with unattended tasks and recurring jobs. The catalogue contains skills and instructions for working with this workspace.

kirodotdev/KiroCrew · 4,449 stars · on GitHub · kiro.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kirodotdev/KiroCrew --skill debug-gateway
Clone the repo
git clone --depth 1 https://github.com/kirodotdev/KiroCrew

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debug-gateway

README.md
[![agentmods](https://agentmods.dev/badge/skills/kirodotdev/kirocrew/debug-gateway/github.svg)](https://agentmods.dev/skills/kirodotdev/kirocrew/debug-gateway)
Your own site
<a href="https://agentmods.dev/skills/kirodotdev/kirocrew/debug-gateway"><img src="https://agentmods.dev/badge/skills/kirodotdev/kirocrew/debug-gateway/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for debug-gateway

Your own site · 80×15
<a href="https://agentmods.dev/skills/kirodotdev/kirocrew/debug-gateway"><img src="https://agentmods.dev/badge/skills/kirodotdev/kirocrew/debug-gateway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,212 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.02212
Opus 5.5 $0.00025 $0.00885
Sonnet 5.5 $0.00013 $0.00442
Haiku 4.5 $0.00006 $0.00221

Measured 8d ago against content hash 7273102b390b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debug-gateway scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/kiro_crew/builtin_skills/debug-gateway/SKILL.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reading the kirocrew-debug tools

Five read-only tools answer five questions about the live gateway. The tool descriptions say what each one covers, and docs/reference/debug/README.md carries the rest. This skill is the part neither of them has: which question to ask first, and how to read an answer without drawing the opposite conclusion.

Where the surrounding material lives, all in one reference doc. An installed build does not carry the repository's docs tree, so read it at Debugging a running gateway, or at docs/reference/debug/README.md in a checkout:

  • symptom table: section "Symptom to tool"
  • the sandbox traps, including the empty placeholder mounts: section "Sandbox traps"
  • who may take each reading: section "Authorization"
  • why the server is opt-in, and how to grant it: the paragraph above the five questions

Ask before you conclude

  1. Before reporting that a change did not work, call debug_gateway. A gateway that started before your commit is executing the previous revision, and a daemon that outlived the change hands out backends built from the old checkout. Both look exactly like a broken fix.
  2. A refusal is blocked-by-policy's job; debug_refusals gives it the class.
  3. Before calling a refused path protected, read that class. Only sensitive_path_match means the path is protected. unverifiable_path means the path was never judged, and the row's own action line says what to do.

Fields that read as the opposite of what they mean

debug_gateway

gateway_predates_head has three readings, not two. null is neither true nor false: the start time comes from procfs, so it is absent off Linux, and HEAD's commit time needs a git checkout, so it is absent on an installed wheel. Treat null as unmeasured and say so, rather than concluding the gateway is current.

mcp_gateway_daemon.matches_this_install false has two meanings, so read fingerprint beside it. A real fingerprint that differs means the daemon is serving backends built from another checkout, and a directive tool can report success against one. unknown (pre-fingerprint build) means the daemon cannot be compared at all, which is unmeasured rather than stale. A null matches_this_install has two causes, told apart by running beside it: running: false is a measured absence (no daemon), while running: null is a FAILED probe — the daemon could not be described — which is unmeasured, not a confirmed absence. Do not read a failed probe as "no daemon". recorder.available false means the build carries no diagnostics package, which is also why three of the five tools cannot answer on it.

Read the full file on GitHub · 142 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago Changed · +6 lines 7273102b390b
  2. 9d ago Changed · +4 lines e56c58bfc515
  3. 22d ago First seen · 132 lines · 63 tokens per session scan A 4ac600ad4c2e

Subscribe to this mod's changes

debug-gateway is a skill published in the GitHub repository kirodotdev/KiroCrew (4,449 stars, last pushed today), licensed Apache-2.0. It adds 63 tokens to every session and 2,212 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-24.