neuron-workflow

neuron-workflow is a skill for Claude Code, Codex from neuron-core/neuron-laravel. It costs 66 tokens per session (8,347 once invoked), scanned A, original, MIT.

A guide for building event-driven workflow graphs in Neuron AI. These workflows pass typed events between steps, and can include branching, saved state, streaming, and human approval pauses.

In plain words
What is it for?
Use it to create or change Neuron workflows with nodes, events, middleware, parallel paths, persistence, streaming, or human-in-the-loop interruptions.
Why use it?
It provides a defined structure for coordinating several agent or application steps instead of putting all the logic in one operation. It helps keep inputs, results, and workflow state connected.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create or change Neuron workflows with nodes, events, middleware, parallel paths, persistence, streaming, or human-in-the-loop interruptions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neuron-core/neuron-laravel/neuron-workflow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add neuron-core/neuron-laravel --skill neuron-workflow
Clone the repo
git clone --depth 1 https://github.com/neuron-core/neuron-laravel

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for neuron-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/neuron-core/neuron-laravel/neuron-workflow/github.svg)](https://agentmods.dev/skills/neuron-core/neuron-laravel/neuron-workflow)
Your own site
<a href="https://agentmods.dev/skills/neuron-core/neuron-laravel/neuron-workflow"><img src="https://agentmods.dev/badge/skills/neuron-core/neuron-laravel/neuron-workflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for neuron-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/neuron-core/neuron-laravel/neuron-workflow"><img src="https://agentmods.dev/badge/skills/neuron-core/neuron-laravel/neuron-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,347 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.08347
Opus 5.5 $0.00026 $0.03339
Sonnet 5.5 $0.00013 $0.01669
Haiku 4.5 $0.00007 $0.00835

Measured 15d ago against content hash c3453e966fac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neuron-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

resources/boost/skills/neuron-workflow/SKILL.md · 1,115 lines

How it starts

The opening of the file, as written. The whole thing — 1,115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Neuron AI Workflow

This skill helps you build custom event-driven workflows in Neuron AI. Workflows are the foundation of the entire framework - Agent and RAG are built on top of Workflow.

Core Concepts

Event-Driven Architecture

Workflows operate through events flowing between nodes:

StartEvent → Node1 → Event2 → Node2 → Event3 → Node3 → StopEvent

Each node:

  1. Receives a typed Event
  2. Processes it
  3. Returns a new Event (or StopEvent to complete)

The Node Pattern

Nodes extend the Node base class:

use NeuronAI\Workflow\Events\Event;
use NeuronAI\Workflow\Events\StartEvent;
use NeuronAI\Workflow\Events\StopEvent;
use NeuronAI\Workflow\Node;
use NeuronAI\Workflow\WorkflowState;

class ValidationNode extends Node
{
    // The __invoke signature determines which event this node handles
    public function __invoke(StartEvent $event, WorkflowState $state): ProcessEvent
    {
        $input = $state->get('input');
        $validated = $this->validate($input);
        $state->set('validated', $validated);
        return new ProcessEvent($validated);
    }

    protected function validate(mixed $input): array
    {
        // Validation logic
        return ['valid' => true, 'data' => $input];
    }
}

Key Pattern: The workflow automatically maps events to nodes based on the first parameter type of __invoke().

Defining Custom Events

use NeuronAI\Workflow\Events\Event;

class UserValidatedEvent implements Event
{
    public function __construct(
        public readonly string $userId,
        public readonly array $userData
    ) {}
}

class ProcessCompleteEvent implements Event
{
    public function __construct(
        public readonly string $result
    ) {}
}

Events should:

  • Extend the abstract Event base class
  • Use readonly properties for immutability
  • Contain all data needed by the handling node

Creating a Workflow

Basic Workflow

use NeuronAI\Workflow\Workflow;
use NeuronAI\Workflow\WorkflowState;

$state = new WorkflowState([
    'input' => $userData,
]);

$workflow = Workflow::make(state: $state)
    ->addNodes([
        new ValidationNode(),
        new ProcessingNode(),
        new OutputNode(),
    ]);

$finalState = $workflow->run();
$result = $finalState->get('result');

Read the full file on GitHub · 1,115 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago First seen · 1,115 lines · 66 tokens per session scan A c3453e966fac

Subscribe to this mod's changes

neuron-workflow is a skill published in the GitHub repository neuron-core/neuron-laravel (122 stars, last pushed 16d ago), licensed MIT. It adds 66 tokens to every session and 8,347 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-01.