rust-server-architecture

rust-server-architecture is a skill for Claude Code, Codex from Robdel12/OrbitDock. It costs 63 tokens per session (1,504 once invoked), scanned A, original, MIT.

A set of design and coding rules for building OrbitDock's Rust server, including its data model, state changes, storage, and boundaries between parts of the system. Rust is a programming language that checks many mistakes before the program runs.

In plain words
What is it for?
Use it when adding, reviewing, or refactoring OrbitDock server features, especially work involving persistence, database changes, restoration, or server data flow.
Why use it?
It helps prevent invalid server states and keeps important data changes consistent as the application grows.

Skill for Claude CodeCodex

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/robdel12/orbitdock/rust-server-architecture
Any agent
npx skills add Robdel12/OrbitDock --skill rust-server-architecture
Clone the repo
git clone --depth 1 https://github.com/Robdel12/OrbitDock

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 rust-server-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/robdel12/orbitdock/rust-server-architecture.svg)](https://agentmods.dev/skills/robdel12/orbitdock/rust-server-architecture)
Your own site
<a href="https://agentmods.dev/skills/robdel12/orbitdock/rust-server-architecture"><img src="https://agentmods.dev/badge/skills/robdel12/orbitdock/rust-server-architecture.svg" alt="Measured on agentmods" 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 1,504 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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 $0.00063 $0.01504
Opus 5 $0.00032 $0.00752
Sonnet 5 $0.00013 $0.00301
Haiku 4.5 $0.00006 $0.00150

Measured 4d ago against content hash f78ccaec8ac7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rust-server-architecture 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 4d 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.

.codex/skills/rust-server-architecture/SKILL.md · 178 lines

How it starts

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

Rust Server Architecture

Use this skill when the work touches orbitdock-server/ and the quality of the design matters as much as the patch itself.

The goal is not just "make the tests pass." The goal is to make the server own durable truth, make invalid states hard or impossible to represent, and let the compiler force correct updates when the model changes.

Start Here

Before changing code, read only the docs that match the task:

  • docs/GETTING_STARTED.md for setup, build commands, and the make rust-* workflow
  • docs/ARCHITECTURE.md for server-authoritative state, typed-boundary expectations, and client/server guardrails
  • docs/OPERATIONS.md when schema, persistence, restore, deployment, or database troubleshooting are involved
  • docs/data-flow.md when HTTP, WebSocket, session surfaces, or conversation rows are involved

If tests are part of the task, also use testing-philosophy.

Workflow

1. State the invariant first

Write down the user-facing or system-facing truth the server must protect.

Examples:

  • "steer rows are not user prompts"
  • "only the server owns durable approval state"
  • "conversation rows get sequence numbers from one writer"

Do not start from the existing shape of the code if that shape is already suspicious.

2. Find the authority boundary

Decide which layer owns the truth:

  • domain/ for business rules and pure state transitions
  • runtime/ for orchestration, actors, registries, and command flow
  • transport/ for HTTP and WebSocket mapping
  • infrastructure/ for SQLite, filesystem, auth, crypto, and external concerns
  • connectors/ for provider-specific translation

If multiple layers can independently "decide" the same thing, the design is probably wrong.

3. Make invalid states unrepresentable

Prefer:

  • enums over booleans when there are meaningful modes
  • dedicated structs or enum variants over "same shape, different meaning"
  • newtypes over raw String or u64 when identity matters
  • typed params structs over long positional argument lists

Read the full file on GitHub · 178 lines

Files

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.

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. 4d ago First seen · 178 lines · 63 tokens per session scan A f78ccaec8ac7

Subscribe to this mod's changes

rust-server-architecture is a skill published in the GitHub repository Robdel12/OrbitDock (95 stars, last pushed 4mo ago), licensed MIT. It adds 63 tokens to every session and 1,504 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories