Skip to content

Get started

Quickstart

Use a published skill or create one with your agent. Start with a prompt; manual runtime commands are optional.

Use a skill or create one

Choose Use a skill for an existing workflow, or Create a skill with your agent for a new one. Install the skill, then copy the prompt into your coding agent.

Prerequisites

Node.js 22.13 or newer is required for the runtime. Use a coding agent with shell access, such as Claude Code or Codex.

bash
node --version
Expected output: v22.13.0
Node 22.13.0 or newer required.

1. Use a skill

Choose a workflow from the registry. Here is tdd-refactor as an example.

Install only skills you trust

Skills can run guard code with the full privileges of your account. The runtime does not sandbox that code. Review guards before installing or updating a skill; static vetting is optional. See SECURITY.md for the trust model.

bash
npx skills add Reactive-Skills/skills --skill tdd-refactor -g
Install tdd-refactor with skills.sh.

Then ask your agent:

text
Use the tdd-refactor skill to [describe your task].

First, expect a runtime compatibility check before the task begins. You are done with setup when the agent starts your task. Continue in the same conversation.

2. Create a skill with your agent

Ask your agent to use skill-manager. It asks about missing requirements, shows a plan, and builds after you approve.

bash
npx skills add Reactive-Skills/skills --skill skill-manager -g
Get skill-manager with skills.sh.
text
Use skill-manager to create a reactive skill for [describe your task]. Ask about missing requirements, show me the plan, then build and validate it after I approve.

The first response checks prerequisites and asks for missing details. Review the file plan before approving it. You are done when the approved files are created and the agent reports their validation results.

Before authoring

Skill-manager must run from a registered authoring source, the folder where editable skill files live, with a compatible runtime. It asks you to select a source when needed and reports unavailable prerequisites without installing or configuring them. See source configuration.

Run a skill yourself (optional)

For direct runtime inspection, you can run these commands yourself. They are optional: the agent uses the runtime when you ask it to use a skill. Start an installed skill with invoke and follow the returned state instructions.

bash
npx -y @reactive-skills/axi invoke tdd-refactor
Expected output: invoke:
  skill_id: tdd-refactor
  current_state: INIT
  run_id: <run-id>
  event_id: <event-id>
prompt:
  raw_prompt: "...# tdd-refactor - INIT\n\nVerify access to the reactive runtime..."
  allowed_tools: none
  exit_conditions: "2"
Starts a run in the INIT state and prints its prompt. The agent follows the prompt, then emits the signal it names to advance.

Optional: inspect local runtime selection

During INIT, Reactive Skills checks local MCP and AXI capabilities and versions, selects one compatible runtime, and reuses it for the run. AXI remains the runtime interface, and npx is its zero-install launcher when a direct command is not installed.

bash
npx -y @reactive-skills/axi
Expected output: count: 1 skill total
skills[1]:
  -
    "skills[0]":
      name: tdd-refactor
      initial_state: INIT
      path: ~/.agents/skills/tdd-refactor
Launches the AXI dashboard to list installed skills and their initial states (output trimmed).

Optional: scaffold and customize a skill yourself

Generate a modular reactive skill directory. The init command scaffolds a verified baseline containing runtime bootloader states (INIT, SETUP_MCP), a starter domain state, strict execution safeguards (BYPASS_DETECTED), and initial prompt templates.

bash
npx -y @reactive-skills/axi init my-feature-flow
Expected output: ok: created skill my-feature-flow at skills/my-feature-flow/
Initializes a new reactive skill in skills/my-feature-flow/.

Scaffolding gives you the execution harness; customization shapes your domain workflow. You replace the placeholder states in skill.yaml with your chronological phases (e.g. RED_SPEC → GREEN_CODE → REFACTOR), author isolated prompt slices in states/*.md, and attach deterministic guard expressions to gate progress.

Two customization approaches

You can edit skill.yaml and states/*.md directly in your editor, or use an agent equipped with skill-manager to conduct an interactive Socratic discovery interview and auto-generate verified states.

Optional: inspect the statechart & guards

Inspect the state machine hierarchy, valid transition paths, and deterministic guard expressions in concise TOON format before executing.

bash
npx -y @reactive-skills/axi inspect skills/my-feature-flow
Expected output: skill:
  name: my-feature-flow
  initial_state: INIT
  state_count: "6"
  transition_count: "5"
transitions[5]{from_state,signal,target,guard}:
  INIT,RUNTIME_READY,START,""
  INIT,SETUP_REQUIRED,SETUP_MCP,""
  SETUP_MCP,SETUP_COMPLETE,START,payload.exit_code == 0
  SETUP_MCP,SETUP_FAILED,ERROR,payload.exit_code != 0
  START,DONE,DONE,""
Outputs states, transitions, signals, and guard conditions (output trimmed).

Optional: emit signals to advance state

Advance the state machine by dispatching typed signals. Deterministic guards evaluate context facts before transitions fire; rejected guards output immediate remediation actions.

bash
npx -y @reactive-skills/axi emit my-feature-flow RUNTIME_READY
Expected output: emit:
  skill_id: my-feature-flow
  signal: RUNTIME_READY
  transitioned: "true"
  previous_state: INIT
  current_state: START
Dispatches a signal into the event bus, advancing to the target state upon guard validation (output trimmed).

Optional: read the event ledger

Every signal, guard evaluation, and state transition appends to the authoritative event store (.reactive/skills/<skill>/events.jsonl + SQLite).

bash
npx -y @reactive-skills/axi events 5 my-feature-flow
Expected output: count: 5 events shown
events[5]{seq,timestamp,type,state}:
  "2",<timestamp>,STATE_VISITED,INIT
  "3",<timestamp>,SIGNAL_EMITTED,INIT
  "4",<timestamp>,GUARD_EVALUATED,INIT
  "5",<timestamp>,STATE_TRANSITION,START
  "6",<timestamp>,STATE_VISITED,START
Reads the last 5 entries of the append-only event ledger for audit and projection verification.

Optional: watch runs from inside Claude Code

The bq-vitals mod shows the active skill and state in the Claude Code status line, draws a live map of the state machine with /flow, and prints the path a finished run took with /flow-plan. It only reads the event ledger and the skill statechart.

text
/plugin install bq-vitals --marketplace Reactive-Skills/reactive-skills
Type this at the Claude Code prompt, not in a shell. Answer y to add the marketplace, then pick a scope. See the [Mods page](/mods) for details.

Optional: connect MCP for host-integrated workflows

When the host uses MCP tool integration, run the stdio server from the same package. The MCP transport exposes the same reactive runtime through host-managed tools.

bash
npx -y @reactive-skills/axi mcp
Starts the stdio MCP server. It prints nothing and waits for an MCP client to connect over stdin and stdout.

Runtime selection

INIT selects a compatible local transport and persists it for the run. AXI provides compact, line-oriented TOON shell output, while MCP provides host-integrated tools. The npx command launches AXI without a separate installation.