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.
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-self-checkSkill
- biome-grit-rulesSkill
- biome-toolingSkill
- bun-testSkill
- bun-workspaceSkill
- cleanup-auditSkill
- code-reviewSkill
- dispatch-satelliteSkill
- docs-managementSkill
- docs-readingSkill
- effect-concurrency-lifecycleSkill
- effect-errors-schemaSkill
- effect-observability-timeSkill
- effect-services-layersSkill
- effect-testing-runtimeSkill
- effect-v4Skill
- jsx-md-authoringSkill
- monorepo-maintenanceSkill
- refactoring-disciplineSkill
- roadmap-managementSkill
- runtime-engineSkill
- testing-patternsSkill
- theseus-designSkill
- tool-authoringSkill
- typescript-strictSkill
- ui-layout-disciplineSkill
- theseus-designSkill
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
- Very specific: line 8
Use this skill for packages/theseus-server.
- Distinctive: line 28
Do not add plugin routing, dynamic extension loading, or extension registry semantics in server.
- Distinctive: line 36
Do not leak raw causes through RPC responses unless the API contract says so.
- Very specific: line 40
Run bun run typecheck after runtime, handler, or RPC schema changes.
- Distinctive: line 41
Run relevant server/core tests when dispatch lifecycle, persistence, or serialization behavior changes.
≈ “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.
Files
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.tspackages/theseus-server/src/index.tspackages/theseus-server/src/serialize.tspackages/theseus-runtime/src/index.tspackages/theseus-runtime/src/live.ts
Boundaries
- Handlers stay at the transport boundary. They call
TheseusRuntimeand map runtime errors to RPC errors. TheseusRuntimeowns 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 typecheckafter runtime, handler, or RPC schema changes. - Run relevant server/core tests when dispatch lifecycle, persistence, or serialization behavior changes.
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
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.

