nexus-gateway: Skill for Claude Code

.claude/skills/linux-agent-deploy/SKILL.md

linux-agent-deploy is a skill for Claude Code from AlphaBitCore/nexus-gateway. It costs 222 tokens per session (4,770 once invoked), scanned B, original, Apache-2.0.

A procedure for installing and troubleshooting the Linux Nexus Agent on a host until it connects to the Hub and intercepts supported outbound TCP traffic. The Hub is the central service that monitors and manages agents.

In plain words
What is it for?
Use it to deploy the agent on Ubuntu or similar Linux hosts, enroll it with the Hub, verify its iptables rules and ports, and diagnose why traffic events are not appearing.
Why use it?
It provides checks for common deployment failures, including enrollment, startup, firewall redirection, listening ports, and missing traffic records. It also clarifies that UDP traffic such as QUIC is not intercepted.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is AlphaBitCore/nexus-gateway's own configuration. It tells Claude Code how to work on nexus-gateway itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nexus-gateway configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AlphaBitCore/nexus-gateway. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AlphaBitCore/nexus-gateway/main/.claude/skills/linux-agent-deploy/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AlphaBitCore/nexus-gateway

Made for: Claude Code.

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 linux-agent-deploy

README.md
[![agentmods](https://agentmods.dev/badge/skills/alphabitcore/nexus-gateway/linux-agent-deploy/github.svg)](https://agentmods.dev/skills/alphabitcore/nexus-gateway/linux-agent-deploy)
Your own site
<a href="https://agentmods.dev/skills/alphabitcore/nexus-gateway/linux-agent-deploy"><img src="https://agentmods.dev/badge/skills/alphabitcore/nexus-gateway/linux-agent-deploy/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 linux-agent-deploy

Your own site · 80×15
<a href="https://agentmods.dev/skills/alphabitcore/nexus-gateway/linux-agent-deploy"><img src="https://agentmods.dev/badge/skills/alphabitcore/nexus-gateway/linux-agent-deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 222 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,770 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00222 $0.04770
Opus 5.5 $0.00089 $0.01908
Sonnet 5.5 $0.00044 $0.00954
Haiku 4.5 $0.00022 $0.00477

Measured 2mo ago against content hash 7a2ef06af76d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

linux-agent-deploy 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 2mo 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.

| Ubuntu / Mint / Debian | `nexus-agent_<ver>_amd64.deb` | `sudo apt install -y ./nexus-agent_<ver>_amd64.deb` |

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sS -m15 -o /dev/null -w '%{http_code}\n' https://api.openai.com/v1/models -H 'authorization: Bearer sk-x'
.claude/skills/linux-agent-deploy/SKILL.md · 266 lines

How it starts

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

linux-agent-deploy

Drive a Linux Nexus Agent from a fresh box to a working, monitored node. The end state is verifiable: the node is online on the Hub, the NEXUS_AGENT iptables chain is installed, 127.0.0.1:19080 + [::1]:19080 are listening, and a request to an interception domain produces a traffic_event with source='agent'.

This skill does NOT build packages (that is build-agent / packages/agent/platform/linux/scripts/build-server.sh) and does NOT bring up the Hub/stack (that is run-local). It owns install → enroll → start → verify → troubleshoot on the target host.

Mental model (read first — most bugs come from violating one of these)

The agent sits in the host's outbound packet path:

  • It intercepts outbound TCP via an iptables REDIRECT: nat OUTPUT -j NEXUS_AGENT, and the NEXUS_AGENT chain is mark 0x4e58 RETURN / 127.0.0.0/8 RETURN / -p tcp -j REDIRECT --to-ports 19080.
  • It is TCP-only. QUIC / HTTP-3 (UDP 443) is NOT intercepted.
  • Loopback (127/8) is RETURN'd — never intercepted. So traffic a process sends to a local proxy (127.0.0.1:<port>) bypasses the agent entirely.
  • Its own upstream forward is stamped SO_MARK 0x4e58 so the chain RETURNs it instead of looping it back into 19080 (self-loop avoidance).
  • It needs a device certificate (enroll) before it starts the chain or the listener. No cert ⇒ pending-enrollment ⇒ no 19080, no chain.
  • For an inspected domain it MITM-bumps (terminates TLS with a leaf signed by the host's device CA), decodes, records, then re-dials the real provider.

Keep these in mind: they explain pending-enrollment, the loopback/proxy bypass, the QUIC bypass, the SO_MARK self-loop, and the CA-trust failures below.


Happy path

0. Dependencies

The deb/rpm/arch package bundles the binary and a postinstall that creates the nexus-agent user, generates the device CA and installs it into the OS trust store, and enables (does not start) the systemd service. Runtime needs:

Read the full file on GitHub · 266 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. 2mo ago First seen · 266 lines · 222 tokens per session scan B 7a2ef06af76d

Subscribe to this mod's changes

linux-agent-deploy is a skill published in the GitHub repository AlphaBitCore/nexus-gateway (25 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 222 tokens to every session and 4,770 once invoked, about $0.0009 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-08-30.