os-rust-backend

os-rust-backend is a skill for Claude Code, Codex from open-software-network/os-clovy. It costs 246 tokens per session (4,434 once invoked), scanned A, original, MIT.

A set of conventions for building Rust backends as Cargo workspaces, which organise related Rust packages into one project, using seven separate crates for areas such as domain logic, storage, APIs, and the application.

In plain words
What is it for?
It helps scaffold services, add API endpoints, define standard responses, manage configuration, and extend backends that follow the Open Software Network style.
Why use it?
It gives new services a consistent structure and keeps business rules separate from HTTP, PostgreSQL, and external providers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

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/open-software-network/os-clovy/os-rust-backend
Any agent
npx skills add open-software-network/os-clovy --skill os-rust-backend
Clone the repo
git clone --depth 1 https://github.com/open-software-network/os-clovy

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 os-rust-backend

README.md
[![agentmods](https://agentmods.dev/badge/skills/open-software-network/os-clovy/os-rust-backend.svg)](https://agentmods.dev/skills/open-software-network/os-clovy/os-rust-backend)
Your own site
<a href="https://agentmods.dev/skills/open-software-network/os-clovy/os-rust-backend"><img src="https://agentmods.dev/badge/skills/open-software-network/os-clovy/os-rust-backend.svg" alt="Measured on agentmods" height="20"></a>
Per session 246 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,434 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.1 $0.00246 $0.04434
Opus 5 $0.00123 $0.02217
Sonnet 5 $0.00049 $0.00887
Haiku 4.5 $0.00025 $0.00443

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

Security

Grade A, and why

os-rust-backend 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 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.

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.

.agents/skills/os-rust-backend/SKILL.md · 260 lines

How it starts

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

Open Software backend (Rust)

This skill captures the house style used by os-accounts and os-platform (the fellow codebase). Both repositories were built independently and converged on the same shape — that convergence is not coincidence, it is the recipe. Follow it when starting a new service or extending one of these two, and your code will look at home in either repo.

The recipe in one sentence: a Cargo workspace of small, pointed crates where the domain doesn't know about HTTP, services don't know about Postgres, the API doesn't know about Privy or Stripe, and the binary wires it all together.

Read this file, then open the reference that matches the work.

Route the request first

If the user asks for... Open first Non-negotiable
"scaffold a new backend" / "start a service like os-accounts" workspace-layout.md Seven crates, exact names: domain / services / persistence / providers / config / api / app.
"add an endpoint" / "what should this handler return" api-envelope.md Every endpoint returns ApiResponse<T>. Error code bands map to HTTP status.
"where do I read DATABASE_URL" / "add a new config knob" config-and-providers.md Never std::env::var. Add a typed field to *-config, plumb it down.
"wire up Stripe / Privy / a new external API" config-and-providers.md Define a trait in *-domain, implement in *-providers, inject Arc<dyn Trait> in app/main.rs.
"add a table / write a query / run a migration" persistence.md sqlx + MIGRATIONS!. Repository structs in *-persistence. Enum columns get CHECK constraints.
"test the new endpoint" / "how do I mock Privy" testing.md Unit = no I/O; integration = real Postgres + wiremock; e2e = HTTP against a deployed service.
"containerize it for GHCR" dockerfile.md cargo-chef multi-stage, debian-slim runtime, non-root user, ENTRYPOINT is the binary.

Read the full file on GitHub · 260 lines

Files

What ships with it

6 files 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. 6d ago First seen · 260 lines · 246 tokens per session scan A fd9c4c34848c

Subscribe to this mod's changes

os-rust-backend is a skill published in the GitHub repository open-software-network/os-clovy (357 stars, last pushed 5d ago), licensed MIT. It adds 246 tokens to every session and 4,434 once invoked, about $0.0012 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

personal-commands

Edit hex.config.ts, not .hex-sdk. Config and installed dependencies execute with the user's normal permissions; use only trusted packages and avoid network, filesystem, environment, or subprocess access unless the requested command requires it. Run bun run check after editing.

anomalyco/hex · 0 tokens

hex-personal-commands

Configure HEX personal voice commands, voice-dictation control phrases, and deterministic transcript transformations. Use when the user wants to add or change commands or transformations for the HEX macOS voice app.

anomalyco/hex · 44 tokens

rust-unit-tests

Write, improve, and run Rust unit tests in the warp Rust codebase.

warpdotdev/warp · 20 tokens

starcat-cli-release

Starcat CLI 与 Homebrew Formula 联动发版流程。用于用户要准备、执行或排查 starcat-cli 的稳定版/预发布版,更新 CHANGELOG、运行 Go 发布门禁、创建版本 tag、触发 GitHub Release、验证多平台产物与 attestations,或确认 homebrew-starcat-cli Formula 和 Audit Action 是否同步成功的场景。.

starcat-app/Starcat · 85 tokens

architecture-audit

Systematic architecture audit and refactoring methodology for Rust + TypeScript codebases. Use when performing refactoring, cleanup, unification, code review, dead code removal, module reorganization, or tech debt elimination. Ensures no naming confusion, semantic overloading, hidden defaults, duplicate logic, or…

org2AI/ORG2 · 70 tokens

starcat-supports-ops

Starcat supports 后端运维专用流程。用于用户要启动、停止、查看 Starcat 自建 Go API 服务,处理 supports/start-all.sh、supports/Makefile、Fly.io secrets 同步、Fly 状态和健康检查、/data 卷备份恢复、API key 生成、wiki 缓存预热、生产 API key 写入 Configs/Secrets.xcconfig 等后端运维任务。.

starcat-app/Starcat · 97 tokens