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.
npx skills add gosuda/portal-tunnel --skill portal-relay-diagnosegit clone --depth 1 https://github.com/gosuda/portal-tunnelWrote 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.
[](https://agentmods.dev/skills/gosuda/portal-tunnel/portal-relay-diagnose)<a href="https://agentmods.dev/skills/gosuda/portal-tunnel/portal-relay-diagnose"><img src="https://agentmods.dev/badge/skills/gosuda/portal-tunnel/portal-relay-diagnose/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.
<a href="https://agentmods.dev/skills/gosuda/portal-tunnel/portal-relay-diagnose"><img src="https://agentmods.dev/badge/skills/gosuda/portal-tunnel/portal-relay-diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00149 | $0.01410 |
| Opus 5.5 | $0.00060 | $0.00564 |
| Sonnet 5.5 | $0.00030 | $0.00282 |
| Haiku 4.5 | $0.00015 | $0.00141 |
Grade B, and why
portal-relay-diagnose scanned grade B with 2 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 9d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- `sudo ss -tulpn | grep -E ':(443|53) '`: the relay owns `443/tcp`, `53/tcp`, `53/udp`, and `443/udp` when UDP leases are on. Another process on `53` is often `systemd-resolved`. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
Work from the bottom layer up and stop at the first layer that fails: a DNS check means nothing while the container is down. Every check here is read-only and bounded (`curl --max-time 10`, `dig +time=3 +tries=1`, `--tai How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Diagnose a Portal relay
Work from the bottom layer up and stop at the first layer that fails: a DNS check means nothing while the container is down. Every check here is read-only and bounded (curl --max-time 10, dig +time=3 +tries=1, --tail 200 on logs). Do not restart, recreate, or reconfigure anything during diagnosis; propose the fix and let the operator approve it.
Run checks from two places when possible, because a check on the relay host passes through no cloud firewall:
- Host: a shell on the relay machine.
- Outside: any other network, for example the agent's own environment.
Say which place each result came from.
1. Process and container (host)
docker compose ps portalis running and not restarting.docker compose logs portal --tail 200: look for bind errors (address already in useon443or53),permission deniedonIDENTITY_PATH(the image runs as uid/gid65532), embedded DNS start failures, and theds_recordline.sudo ss -tulpn | grep -E ':(443|53) ': the relay owns443/tcp,53/tcp,53/udp, and443/udpwhen UDP leases are on. Another process on53is oftensystemd-resolved.
2. Ports (outside)
curl -fsS --max-time 10 https://<relay>/api/healthz. A timeout with the container healthy points to a cloud firewall or host firewall, not to Portal.dig +time=3 +tries=1 @<relay IP> <relay domain> SOAand the same with+tcp: one passing and one failing means only one of53/udpand53/tcpis open.- Compare with the provider's firewall rules. OCI images also reject inbound in host iptables; Lightsail and Hetzner use their own firewalls in front of the host.
3. DNS delegation (outside)
dig @<relay IP> test.<relay domain> Aanswers: the embedded DNS works.dig +short NS <relay domain> @1.1.1.1returnsns.<relay domain>, anddig +short A ns.<relay domain> @1.1.1.1(andAAAA) returns the relay address: the parent delegation and glue are right.- If 1 passes and 2 fails, the problem is at the parent zone: a missing NS, a wrong glue address (common after a public IP changed), a proxied glue record, or propagation still in progress. Read the parent's records with
dig @<parent NS> <relay domain> NS +norec. - An empty AAAA on an IPv4-only relay is expected.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 9d ago Changed 926e79959735
- 21d ago First seen · 64 lines · 149 tokens per session scan B 265c39d886bb
portal-relay-diagnose is a skill published in the GitHub repository gosuda/portal-tunnel (304 stars, last pushed today), licensed MIT. It adds 149 tokens to every session and 1,410 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-09.
portal-relay-diagnose compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| portal-relay-diagnosegosuda/portal-tunnel | Skill | 304 | today | MIT | B | 149 | Claude Code, Codex |
| gke-kueue-troubleshootinggoogle/skills | Skill | 25k | today | Apache-2.0 | A | 253 | Claude Code, Codex |
| smoke-testgarrytan/gbrain | Skill | 34k | today | MIT | A | 79 | Claude Code |
| competition-container-runtimezhaoxuya520/reverse-skill | Skill | 46k | 16d ago | MIT | A | 109 | Codex |
| fastgen-runtimeNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 55 | Claude Code, Codex |
| aks-troubleshootingmicrosoft/skills | Skill | 3.3k | today | MIT | A | 221 | Claude Code |
| debugging-executionsn8n-io/n8n | Skill | 213k | today | none | A | 86 | Claude Code, Codex |