agentleFS
theseus-runtheseus-run/theseus/.agents/skills/server-runtime/SKILL.md

server-runtime

Skill1 starsChanged 7 months agoMITView on GitHub

Use when working on packages/theseus-server RPC/HTTP process assembly, runtime layer wiring, server handlers, provider configuration, or server-side serialization.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill for packages/theseus-server.

    line 8
  2. Distinctive:

    Do not add plugin routing, dynamic extension loading, or extension registry semantics in server.

    line 28
  3. Distinctive:

    Do not leak raw causes through RPC responses unless the API contract says so.

    line 36
  4. Very specific:

    Run bun run typecheck after runtime, handler, or RPC schema changes.

    line 40
  5. Distinctive:

    Run relevant server/core tests when dispatch lifecycle, persistence, or serialization behavior changes.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Server Runtime

Use this skill for packages/theseus-server. For runtime host, systems, sinks, projections, active registry, tool catalog, or SQLite runtime stores, use the runtime-engine skill instead.

Read First

  • packages/theseus-server/src/handlers.ts
  • packages/theseus-server/src/index.ts
  • packages/theseus-server/src/serialize.ts
  • packages/theseus-runtime/src/index.ts
  • packages/theseus-runtime/src/live.ts

Boundaries

  • Handlers stay at the transport boundary. They call TheseusRuntime and map runtime errors to RPC errors.
  • TheseusRuntime owns dispatch lifecycle, tool hydration, current capsule binding, registry updates, and persistence side effects.
  • Tool catalog code lives in packages/theseus-runtime. Do not let handlers hydrate tools directly.
  • Serialization belongs in serialize.ts; do not scatter wire-shape conversion through runtime logic.
  • SQLite persistence belongs behind runtime store/capsule services or runtime projections, not server handlers.
  • Server may assemble layers and providers. It must not become the runtime.
  • Do not add plugin routing, dynamic extension loading, or extension registry semantics in server. Server exposes/adapts runtime commands and queries; it does not define the harness extension model.

Error Rules

  • Runtime errors should be typed tagged errors.
  • Handler error mapping should be explicit and stable for clients.
  • Do not leak raw causes through RPC responses unless the API contract says so.

Verification

  • Run bun run typecheck after runtime, handler, or RPC schema changes.
  • Run relevant server/core tests when dispatch lifecycle, persistence, or serialization behavior changes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.