bluelibs/runner/core
Claude Code and agent skill by bluelibs/runner
- community
Checking that the SKILL.md file is still in the repository.
Primary skill for working with the BlueLibs Runner Framework. Use it for general Runner questions, framework implementation work, and Runner-specific topics such as resources, tasks, events and hooks, middleware, tags, runtime lifecycle, serialization and validation, observability, testing, Remote Lanes (RPC and Events), and Durable Workflows.
Install
npx vskill@latest install bluelibs/runner/coreSKILL.md
Runner
Start with ./references/readmes/COMPACT_GUIDE.md. It is the fast path for Runner's core mental model, public API shape, and common contracts.
BlueLibs Runner: Ultra Compact Guide
The Vibe
Runner is a contract-first composition engine. You define a typed graph of resources, tasks, events, hooks, middleware, tags, and errors. Then run(app) compiles that graph into a runtime that enforces behavior, isolation, lifecycle, and observability.
The first mental flip:
- You describe architecture first (
*.build()), and execution comes only afterrun(). - Bad wiring is usually a boot-time failure, not a runtime surprise.
Core Primitives
resource: lifecycle owner for shared state and service boundaries.task: typed business action with DI, middleware, validation, and typed output.error: typed domain failure contract.event+hook: explicit publish-and-react model.middleware: cross-cutting policy layer (identity, retries, timeout, caching, etc.).tag: typed metadata for discovery and policy attachment.
What Runner Changes for You
- Builder declarations are explicit and fail fast when composition is invalid.
localIdis your design language; canonical IDs are Runner’s runtime addressing.run(app)gives a stable runtime surface:runTask,emitEvent,getHealth,dispose, and mode/state.- Runtime lifecycle is intentional:
init → ready → running → cooldown → disposing. cooldown()stops accepting new external work;dispose()is final teardown.
The lifecycle line above is a compressed orientation. Use ./references/guide-units/03-runtime-lifecycle.md for the exact shutdown phases and disposal budgets.
Composition Is Real, Not Cosmetic
isolate and subtree policies make boundaries enforceable. You can define what a subtree exports, what it may depend on, and what is hidden by default.
local IDs are how teams think; canonical IDs are how the framework enforces ownership and visibility.
Context and Contract
Runner splits context cleanly:
executionContextfor runtime tracing and cancellation.asyncContextfor business/request state (tenant, user, identity, locale).
When this split is in place, observability and policy are easier to reason about.
Testing and Safe Evolution
Most teams evolve Runner systems with:
- a minimal root resource for tests,
run(...),r.override(...)for targeted behavior swaps.
This keeps behavior and contract changes isolated while preserving ids and topology.
Core Docs
Use ./references/guide-units/ for the structured framework chapters. Use this exact mapping (file -> concern):
./references/guide-units/02-resources.md→resources(state,lifecycle,ownership,health)./references/guide-units/02b-tasks.md→tasks(typed IO,DI,runtime execution,cancellation)./references/guide-units/02c-events-and-hooks.md→eventsandhooks(publish,subscribe,transaction,ordering)./references/guide-units/02d-middleware.md→middleware(cross-cutting,retry,timeout,rate/queue control,ratelimit,caching,identity)./references/guide-units/02e-tags.md→tags(metadata,discovery,discovery policy,contracts)./references/guide-units/02f-errors.md→errors(typed domain errors,structured data,remediation)./references/guide-units/03-runtime-lifecycle.md→runtime lifecycle(boot,ready,cooldown,shutdown)./references/guide-units/04-features.md→features(HTTP shutdown,signal propagation,executionContext,runtime behavior patterns)./references/guide-units/04b-serialization-validation.md→serializationandvalidation(schema contracts,boundary safety,custom types)./references/guide-units/04c-security.md→security(identity,access gates,scope,tenant/user partitioning)./references/guide-units/05-observability.md→observability(logs,metrics,traces,health)./references/guide-units/06-meta-and-internals.md→metaandinternals(docs,canonical ids,runtime services)./references/guide-units/08-testing.md→testing(unit,focused integration,full integration)
For documentation authoring or guide composition, also read:
./references/guide-units/DOCS_STYLE_GUIDE.md./references/guide-units/INDEX_GUIDE.md./references/guide-units/INDEX_README.md
Topic Docs
Use ./references/readmes/ for task-specific references and alternate viewpoints. Available docs include:
COMPACT_GUIDE.mdARCHITECTING_WITH_RUNNER.mdMULTI_PLATFORM.mdDURABLE_WORKFLOWS.mdDURABLE_WORKFLOWS_AI.mdREMOTE_LANES.mdREMOTE_LANES_AI.mdREMOTE_LANES_HTTP_POLICY.mdSERIALIZER_PROTOCOL.mdOOP.mdFUNCTIONAL.mdFLUENT_BUILDERS.mdCOMPARISON.mdENTERPRISE.mdBENCHMARKS.mdCRITICAL_THINKING.md
Read only the files that match the task.
For application structure, architectural boundaries, folder organization, subtree and isolate policy, tag reuse, and long-term maintainability, also read:
./references/readmes/ARCHITECTING_WITH_RUNNER.md
Snippets
Use ./references/snippets/ when the task matches a common Runner authoring shape and a canonical starting point is better than inventing one from scratch.
app-basic.snippetfor the smallest complete app shelltask-basic.snippetfor a normal runtime-backed task with DI and schemastask-resilient.snippetfor retry, timeout, health-gating, metadata, and cancellation-aware task designresource-service.snippetfor a long-lived dependency value withinit(...)anddispose(...)resource-complex.snippetfor typed config, child registration, context, health, and full lifecycle ownershipresource-isolate-subtree-identity.snippetfor exported surface control plus subtree identity and middleware policysecurity-identity-layering.snippetfor explicitidentityChecker, middlewareidentityScope, and subtree task identity gatesevent-hook-pipeline.snippetfor exact-event emission plus hook reactionevent-hook-transactional.snippetfor reversible transactional hooks with undo closuresmiddleware-task.snippetfor a canonical task middleware wrappertag-contract.snippetfor target-scoped tags with config schema and compile-time contractstest-runtime-task.snippetfor a runtime-backed task integration test
Prefer these snippets for starter shapes before writing custom examples. They are builder-first, use local ids, and aim to be runtime-complete rather than half-finished pseudocode. When a snippet needs failure paths, model them with typed Runner errors and prefer throw myError.new({ ... }) in examples for cleaner TypeScript inference and one less helper frame in the stack. Keep .throw(...) documented as valid shorthand, but do not treat it as the default style for new snippets.
Durable Workflows
- Read
./references/readmes/COMPACT_GUIDE.mdfirst. ./references/readmes/DURABLE_WORKFLOWS.mdfor the main guide and canonical examples../references/readmes/DURABLE_WORKFLOWS_AI.mdfor the shorter token-friendly field guide.
Remote Lanes
- Read
./references/readmes/COMPACT_GUIDE.mdfirst. ./references/readmes/REMOTE_LANES.mdfor the main guide and canonical examples../references/readmes/REMOTE_LANES_AI.mdfor the compact AI field guide when you need a faster refresher../references/readmes/REMOTE_LANES_HTTP_POLICY.mdonly when the task is specifically about HTTP transport policy.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/core/SKILL.md
Popularity
- Repository stars
- 83
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bluelibs/runner/core)