How a Senpi trading strategy interacts with the runtime engine (@senpi-ai/runtime) on Hyperliquid: a strategy runs from a runtime.yaml pointing at a Python module that exports scan(inputs, ctx), which the runtime supervises and calls each interval, then owns execution, risk guard_rails, and two-phase DSL trailing-stop exits. Use when working with runtime.yaml, the scan(inputs, ctx) contract, external_scanner, ctx, or the DSL exit engine — including verifying open positions are protected by DSL (have a working stop-loss). The shared runtime contract the lifecycle skills reference. NOT for building, installing, or picking a strategy (→ senpi-strategy-author / senpi-strategy-ops / senpi-strategy-discover).
$npx -y skills add senpi-ai/senpi-skills --skill senpi-trading-runtimeInstalls into the current project.
Run `npx skills use "https://github.com/senpi-ai/senpi-skills" --skill "senpi-ai/senpi-skills/senpi-trading-runtime"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/senpi-ai/senpi-skills" that are relevant to the current task. Run `npx skills add "https://github.com/senpi-ai/senpi-skills"` and select the relevant skills, then follow their instructions.