一键导入
reactive-agents
Orient to the Reactive Agents framework, understand the builder API shape, and select the right capability skills for your task.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Orient to the Reactive Agents framework, understand the builder API shape, and select the right capability skills for your task.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Agentic harness diagnostic + improvement loop. Probes the framework with real model runs, uses the rax-diagnose CLI to root-cause failures from structured trace data, ships ONE coordinated architectural fix, verifies via before/after diff, commits with empirical evidence. Use at the start of any harness improvement session — replaces ad-hoc grep + log-spelunking with a deterministic feedback loop.
Use when the architecture may have drifted from documentation, packages have grown complex, dead code or disabled systems are suspected, or before planning a major refactor — scoped to the reactive-agents-ts 22-package monorepo.
Reactive Agents framework architecture — layer stack, dependency graph, build order, and package structure. Use when planning work, understanding package relationships, or determining build dependencies.
Use when analyzing the Reactive Agents codebase for architectural improvements, abstraction opportunities, composability gaps, or Effect-TS engineering quality — before proposing refactors, during design reviews, or when codebase complexity is growing.
LLMService API contract — the correct signatures for complete(), stream(), embed(), and response types. Use when calling LLMService from any layer, writing reasoning strategies, or building LLM-dependent features.
LLM provider streaming patterns and per-provider quirks. Use when adding a new provider, implementing adapter hooks, or debugging streaming tool call behavior in packages/llm-provider.
| name | reactive-agents |
| description | Orient to the Reactive Agents framework, understand the builder API shape, and select the right capability skills for your task. |
| compatibility | Reactive Agents TypeScript projects using @reactive-agents/* |
| metadata | {"author":"reactive-agents","version":"2.0","tier":"discovery"} |
After loading this skill you know: (1) what the framework does, (2) the canonical builder chain pattern, (3) which capability skills to load for the task at hand.
Reactive Agents is an Effect-TS layered runtime for building autonomous AI agents in TypeScript. Agents are composed via a fluent ReactiveAgentBuilder — each .withX() call wires in an optional capability layer. The runtime ships 25 packages covering reasoning, memory, tools, MCP, guardrails, identity, observability, orchestration, cost, verification, eval, A2A networking, and web framework integrations (React, Vue, Svelte).
Six LLM providers are supported: anthropic, openai, gemini, ollama, litellm, and test.
createAgent(config) (declarative) and ReactiveAgents.create().withX() (fluent)
are the same API — same key names, same nesting, validated against the same
AgentConfigSchema. Prefer createAgent for static definitions (the 90% case);
reach for the builder when construction is conditional/imperative or needs a
code-only escape hatch (.withHook, .withLayers, .compose).
createAgent(config) (front door)import { createAgent } from "@reactive-agents/runtime";
const agent = await createAgent({
name: "my-agent",
provider: "anthropic", // required
model: "claude-sonnet-4-6", // optional — provider default if omitted
reasoning: { defaultStrategy: "adaptive", maxIterations: 10 },
tools: {}, // enables built-in tools
memory: { tier: "enhanced", dbPath: "./agent.db" },
observability: { verbosity: "normal", live: true },
});
const result = await agent.run("Your task here");
console.log(result.output);
console.log(result.metadata.stepsCount, result.metadata.strategyUsed);
import { ReactiveAgents } from "@reactive-agents/runtime";
const agent = await ReactiveAgents.create()
.withName("my-agent")
.withProvider("anthropic")
.withModel("claude-sonnet-4-6")
.withReasoning({ defaultStrategy: "adaptive", maxIterations: 10 })
.withTools()
.withMemory({ tier: "enhanced", dbPath: "./agent.db" })
.withObservability({ verbosity: "normal", live: true })
.build(); // always await — returns Promise<ReactiveAgent>
| Building... | Load these skills |
|---|---|
| Any agent (start here) | builder-api-reference |
| Task agent (research, analysis, coding) | reasoning-strategy-selection, tool-creation |
| Agent that runs shell commands | shell-execution-sandbox |
| Agent with persistent memory | memory-patterns, context-and-continuity |
| Agent using MCP tools | mcp-tool-integration |
| Always-on / scheduled agent | gateway-persistent-agents |
| Multi-agent workflow | multi-agent-orchestration |
| Agent embedded in a web app | ui-integration, interaction-autonomy |
| Production / multi-tenant agent | identity-and-guardrails, cost-budget-enforcement |
| Agent with output quality guarantees | reasoning-strategy-selection, quality-assurance |
| Agent-to-agent networking | a2a-agent-networking |
| Custom provider behavior or local models | provider-patterns |
Load a recipe skill for a full working example:
| Recipe | What it builds |
|---|---|
recipe-research-agent | Research/analysis agent with memory + verification |
recipe-code-assistant | Code generation + sandboxed shell execution |
recipe-persistent-monitor | Always-on monitoring via gateway + crons |
recipe-orchestrated-workflow | Multi-agent pipeline, lead/worker pattern |
recipe-saas-agent | Multi-tenant agent with identity + cost controls |
recipe-embedded-app-agent | Agent in React/Vue/Svelte with streaming UI |
createAgent(config) // declarative front door — validate + build in one call
ReactiveAgents.create() // blank builder
ReactiveAgents.fromConfig(config) // from AgentConfig object → builder
ReactiveAgents.fromJSON(json) // from JSON string
ReactiveAgents.runOnce("task", builder) // build + run + dispose in one call
builder.buildEffect() // returns Effect<ReactiveAgent> for Effect runtimes
.build() is async — always await it; forgetting causes silent "agent is undefined" errors.withProvider() is required — there is no default provider.withTools() with no args enables 5 standard tools: web-search, http-get, file-read, file-write, code-execute. Shell execution is opt-in only via .withTools({ terminal: true }); use allowedTools to restrict standard tools"plan-execute-reflect" — not "plan-execute" (throws StrategyNotFoundError)"standard" and "enhanced" — not "1" and "2" (those are deprecated)"groq" and "openrouter" are not valid provider names — use "litellm" for proxy/router providers