Skip to content
Skillv1.0.0

runtime

Runtime Module Contract

by Lurek2D(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from Lurek2D/lurek_2d (src/runtime/AGENTS.md). Install upstream with npx skills add Lurek2D/lurek_2d --skill runtime. Copyright stays with the author.

Runtime Module Contract

Mission & Scope

  • Own shared engine state, config, runtime modes, messages, and headless flow.
  • Keep shared state typed and observable.

Files

  • config.rs, mode.rs, os.rs: Runtime config, mode, and host facts.
  • shared_state.rs, resource_keys.rs: Shared handles and resource keys.
  • lua_execution.rs, messages.rs, log_messages.rs: Script execution and messages.
  • headless.rs: Headless runtime support.

Rules

  • Do not add untyped global state; extend shared_state.rs or a subsystem owner.
  • Keep resource keys stable and validate lookups before mutation.
  • Config defaults must be deterministic and documented at the field boundary.

Workflow

  • Validate with cargo test --test runtime_tests.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/lurek2d-lurek-2d-runtime/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

lurek2d-lurek-2d-runtime.ocm.jsonjson
{
  "ocm": "1",
  "id": "lurek2d-lurek-2d-runtime",
  "kind": "skill",
  "name": "runtime",
  "description": "Runtime Module Contract",
  "publisher": "Lurek2D",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "legal"
    ],
    "tags": [
      "skill-md",
      "github-agents"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Runtime Module Contract"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github-agents",
      "repository": "https://github.com/Lurek2D/lurek_2d",
      "path": "src/runtime/AGENTS.md",
      "ref": "5aa3adc8d81ae8f863a9533dfb4a7ac44c4b59e3",
      "url": "https://github.com/Lurek2D/lurek_2d/blob/5aa3adc8d81ae8f863a9533dfb4a7ac44c4b59e3/src/runtime/AGENTS.md",
      "key": "Lurek2D/lurek_2d/src/runtime/AGENTS.md"
    }
  },
  "instructions": "# Runtime Module Contract\n\n## Mission & Scope\n- Own shared engine state, config, runtime modes, messages, and headless flow.\n- Keep shared state typed and observable.\n\n## Files\n- `config.rs`, `mode.rs`, `os.rs`: Runtime config, mode, and host facts.\n- `shared_state.rs`, `resource_keys.rs`: Shared handles and resource keys.\n- `lua_execution.rs`, `messages.rs`, `log_messages.rs`: Script execution and messages.\n- `headless.rs`: Headless runtime support.\n\n## Rules\n- Do not add untyped global state; extend `shared_state.rs` or a subsystem owner.\n- Keep resource keys stable and validate lookups befo",
  "cost": {
    "context_tokens": 188
  }
}

Fetch it by URL: GET /api/v1/registry/lurek2d-lurek-2d-runtime/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.