portal-relay-diagnose SKILL.md skillA

portal-relay-diagnose from gosuda/portal-tunnel is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add gosuda/portal-tunnel/portal-relay-diagnose@git:20261108.f9aaa73

Pins git:20261108.f9aaa73 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
gosuda/portal-tunnel
Path
plugins/portal-relay/skills/portal-relay-diagnose/SKILL.md
Versions recorded
1
Latest version
git:20261108.f9aaa73, committed Nov 8, 2026
Size
5,358 bytes
Repository stars
301
License
MIT

Find which layer of a self-hosted Portal relay is failing - container and process, open ports, embedded DNS and NS/glue delegation, DNSSEC and the parent DS, TLS and SNI routing, the QUIC UDP backhaul and TCP/UDP lease ports, or approval and source policy - with bounded read-only checks, then report the cause and the fix. Use when a relay operator says the relay, its DNS, its certificates, its tunnels, or its game ports do not work. Do not use when the user is a publisher or visitor of one…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 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 portal` is running and not restarting.
- `docker compose logs portal --tail 200`: look for bind errors (`address already in use` on `443` or `53`), `permission denied` on `IDENTITY_PATH` (the image runs as uid/gid `65532`), embedded DNS start failures, and the `ds_record` line.
- `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`.

## 2. Ports (outside)
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add gosuda/portal-tunnel/portal-relay-diagnose@sha256:265c39d886bb92d3

The line at the top of this page pins the label git:20261108.f9aaa73, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_4o577qfnx2jhsnyd.svg)](https://markdownregistry.com/a/art_4o577qfnx2jhsnyd)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Nov 8, 2026.

versioncommittedcommitsizeaudit
git:20261108.f9aaa73 latest2026-11-08 f9aaa73 5,358 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5358 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

gosuda/portal-tunnel · 301 stars · license MIT · pushed 2026-11-08 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_4o577qfnx2jhsnyd
GET https://markdownregistry.com/api/v1/resolve?ref=gosuda/portal-tunnel/portal-relay-diagnose
GET https://markdownregistry.com/api/v1/blob/265c39d886bb92d3f4fd7a62216ddd3060cf57328fe3b3de825fe64a1b5a7184

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from gosuda/portal-tunnel

AGENTS.md AGENTS.md file
gosuda/portal-tunnel · AGENTS.md
git:20261004.21b5eda · audit A · 301 stars
AGENTS.md@frontend AGENTS.md file
gosuda/portal-tunnel · frontend/AGENTS.md
git:20261107.870adda · audit A · 301 stars
CLAUDE.md@frontend CLAUDE.md file
gosuda/portal-tunnel · frontend/CLAUDE.md
git:20260304.96dd745 · audit B · 301 stars
llms.txt llms.txt file
gosuda/portal-tunnel · llms.txt
git:20261108.f9aaa73 · audit B · 301 stars
portal-connect SKILL.md skill
gosuda/portal-tunnel · plugins/portal-deploy/skills/portal-connect/SKILL.md · Deprecated alias of the portal-connect skill, which moved to the portal-tunnel plugin. Use when the user asks to reach…
git:20261108.f9aaa73 · audit A · 301 stars
portal-expose SKILL.md skill
gosuda/portal-tunnel · plugins/portal-deploy/skills/portal-expose/SKILL.md · Deprecated alias of the portal-expose skill, which moved to the portal-tunnel plugin. Use when the user asks to expose…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay SKILL.md skill
gosuda/portal-tunnel · plugins/portal-deploy/skills/portal-relay/SKILL.md · Deprecated alias of the portal-relay skill, which moved to the portal-relay plugin. Use when the user asks to run…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay-admin SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-admin/SKILL.md · Operate a running Portal relay through its admin and policy API - sign in with the relay ADMIN_TOKEN without exposing…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay-aws SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-aws/SKILL.md · Create an AWS host for a Portal relay - an EC2 instance with a security group and an Elastic IP, or a Lightsail…
git:20261108.f9aaa73 · audit B · 301 stars
portal-relay-cloudflare SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-cloudflare/SKILL.md · Configure a Cloudflare-hosted parent zone for a Portal relay - the NS delegation of the relay subdomain to the relay's…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay-hetzner SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-hetzner/SKILL.md · Create a Hetzner Cloud server for a Portal relay with the hcloud CLI, attach a Hetzner Cloud Firewall that opens only…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay-oracle SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-oracle/SKILL.md · Create an Oracle Cloud Infrastructure (OCI) compute instance for a Portal relay, including Always Free Ampere A1…
git:20261108.f9aaa73 · audit A · 301 stars

Every file in gosuda/portal-tunnel

Browse by kind, by grade A, or by owner.