add-endpoint

add-endpoint is a skill for Claude Code from nikzlabs/shipit. It costs 76 tokens per session (1,964 once invoked), scanned A, original, Apache-2.0.

A step-by-step guide for adding server features to ShipIt, including HTTP endpoints, WebSocket messages, deployment targets, activity labels, and client-side hooks. HTTP usually handles one request and response; WebSocket keeps a live connection for streaming or tab-specific state.

In plain words
What is it for?
Use it when adding an API endpoint, a WebSocket message, a deployment target, or related tool activity in ShipIt.
Why use it?
It helps choose the right communication method and follow the complete path from server code through the client and tests.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions CLAUDE.md.

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.

agentmods
npx agentmods add skills/nikzlabs/shipit/add-endpoint
Any agent
npx skills add nikzlabs/shipit --skill add-endpoint
Clone the repo
git clone --depth 1 https://github.com/nikzlabs/shipit

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 add-endpoint

README.md
[![agentmods](https://agentmods.dev/badge/skills/nikzlabs/shipit/add-endpoint.svg)](https://agentmods.dev/skills/nikzlabs/shipit/add-endpoint)
Your own site
<a href="https://agentmods.dev/skills/nikzlabs/shipit/add-endpoint"><img src="https://agentmods.dev/badge/skills/nikzlabs/shipit/add-endpoint.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,964 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00076 $0.01964
Opus 5 $0.00038 $0.00982
Sonnet 5 $0.00015 $0.00393
Haiku 4.5 $0.00008 $0.00196

Measured 6d ago against content hash ae8e2f3753d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

add-endpoint scanned grade A with 1 finding 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 6d 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.

Makes network callslowCapability

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

- If you're unsure, start with HTTP. It's simpler to test (`app.inject()`), easier to debug (curl), and doesn't couple the operation to connection lifecycle. You can always add a WS broadcast for notifications on top.
.claude/skills/add-endpoint/SKILL.md · 84 lines

How it starts

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

Adding New Endpoints & Features

When to use WebSocket vs HTTP

ShipIt uses HTTP for most operations and reserves WebSocket for a narrow set of cases. When adding a new feature, use this decision framework:

Use HTTP (default) when:

  • The operation is a simple read (GET) or mutation (POST/PATCH/DELETE) with a single request-response cycle
  • The client needs the result directly (e.g., to update UI state from the response)
  • The operation is stateless — any client tab could make the same request
  • Examples: fetching file content, renaming a session, creating a PR, saving settings

Use WebSocket only when one of these applies:

  1. Streaming output — the server produces incremental data over time (Claude CLI events, deploy progress, terminal output). HTTP would require polling or SSE; WS gives us a natural push channel already connected.
  2. Per-connection state — the operation modifies state tied to this specific browser tab, not the user globally. Session activation (activate_session) attaches a runner and file watcher to the connection. Agent selection (set_agent) sets the agent for this tab only. These don't make sense as HTTP because they bind to the socket's lifecycle.
  3. Bidirectional real-time interaction — the client and server exchange messages in rapid succession as part of one logical flow: sending a prompt and receiving streamed tokens, answering permission questions mid-turn, interactive terminal I/O.
  4. Server-initiated push — the server needs to notify the client without a preceding request: file change events, preview status updates, session status broadcasts, queue notifications.

Gray area — lean HTTP:

  • If an operation triggers server-side effects that push WS events (e.g., fork_session triggers a session_list broadcast), that's fine — the trigger is HTTP, the notification is WS. Don't put the trigger on WS just because it has side effects.
  • If you're unsure, start with HTTP. It's simpler to test (app.inject()), easier to debug (curl), and doesn't couple the operation to connection lifecycle. You can always add a WS broadcast for notifications on top.

Read the full file on GitHub · 84 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. 6d ago First seen · 84 lines · 76 tokens per session scan A ae8e2f3753d3

Subscribe to this mod's changes

add-endpoint is a skill published in the GitHub repository nikzlabs/shipit (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 76 tokens to every session and 1,964 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

lanes-sessions

Use when managing Lanes issues or driving Claude Code sessions through the lanes MCP tools — creating issues, starting/stopping/inspecting sessions, batch-launching work across worktrees, reading terminal output, attaching labels and components by UUID, or moving issues across the…

lanes-sh/app · 101 tokens

lanes-forms

Use when the user wants a form backend or contact form set up (a live POST endpoint that captures submissions and emails them), OR wants an agent to fill in / submit to a form on their behalf. Lanes Forms creates and manages hosted form endpoints from Claude Code. Triggers on "set up a contact form", "provision a…

lanes-sh/app · 105 tokens

github-lanes-bridge

Use when bridging GitHub and Lanes — importing GitHub issues into Lanes for local Claude Code execution, batch-spawning sessions per ticket, decomposing one GitHub issue into multiple Lanes sub-issues with dependencies, or posting session results (PR links, comments, follow-up issues) back to GitHub. Triggers on…

lanes-sh/app · 161 tokens

linear-lanes-bridge

Use when bridging Linear and Lanes — importing Linear issues into Lanes for local Claude Code execution, batch-spawning sessions per Linear ticket, decomposing one Linear issue into multiple Lanes sub-issues with dependencies, or posting session results (PR links, comments, status updates) back to Linear. Triggers on…

lanes-sh/app · 142 tokens

setup-lanes-link

Use when installing or standing up Lanes Link, the self-hostable MCP endpoint that gives an agent someone's own accounts, memory, tasks, assets, skills, identity and vault. Triggers on "set up Lanes Link", "install Lanes Link", "connect my Gmail/Calendar/Notion to Claude", "one MCP for all my accounts", "lanes link…

lanes-sh/app · 137 tokens

install-lanes-desktop

Use when installing, updating, or repairing the Lanes desktop app on a Mac, or when someone wants the Lanes issue board running for the first time. Triggers on "install Lanes", "set up Lanes", "get Lanes running", "download Lanes", "update Lanes", "Lanes won't open", or any request to connect an agent to a Lanes app…

lanes-sh/app · 123 tokens