agentleFS
agentjidoagentjido/jido-skills/.agents/skills/jido-core/SKILL.md

jido-core

Skill1 starsChanged 8 months agoApache-2.0View on GitHub

Jido ecosystem overview, conventions, and foundational patterns. Load this skill when working with any Jido package. Covers the ecosystem map, Elixir/OTP conventions, project structure, and core design principles. Use when asked about Jido, building agents, or working in a Jido-based project.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Always use Jido.Agent with name, description, and schema.

    line 55
  2. Distinctive:

    Keep actions pure — side effects belong in directives.

    line 57
  3. Distinctive:

    Use NimbleOptions schemas for all validation.

    line 58
  4. Very specific:

    Follow standard Elixir naming: PascalCase modules, snake_case functions.

    line 59
  5. Very specific:

    Run mix test and mix quality before committing.

    line 60
  6. Very specific:

    Prefer @moduledoc and @doc on all public modules and functions.

    line 61
  7. Distinctive:

    When working in a Jido project:

    line 131

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Jido Core

Foundational skill for the Jido agent framework ecosystem.

Jido Ecosystem

PackagePurposeKey macro/module
jido (core)Agent frameworkuse Jido.Agent, cmd/2, directives, plugins, AgentServer
jido_actionComposable validated actionsuse Jido.Action, schema, run/2
jido_signalCloudEvents-based signals and routingJido.Signal, Jido.Signal.Router
jido_aiAI/LLM integration for agentsJido.AI, tool-calling, prompt chains
req_llmHTTP client for LLM APIsAnthropic, OpenAI, Google, Ollama

Core Design Principles

  1. Agents are immutable data structures — plain structs, no hidden state.
  2. cmd/2 is the single entry point — actions in → updated agent + directives out.
  3. State changes are pure data transformations — actions receive params, return maps.
  4. Side effects are directives — typed descriptions executed by the runtime, never inline.
  5. Built on OTP — agents run as GenServer processes (AgentServer) in production.

Project Structure Convention

my_app/
├── lib/my_app/
│   ├── agents/          # Agent modules (use Jido.Agent)
│   ├── actions/         # Action modules (use Jido.Action)
│   ├── plugins/         # Plugin modules extending agents
│   └── sensors/         # Sensor modules for external input
├── test/
├── config/
├── mix.exs
└── AGENTS.md

Elixir/OTP Conventions for Jido

  • Always use Jido.Agent with name, description, and schema.
  • Define signal_routes for runtime signal handling in AgentServer.
  • Keep actions pure — side effects belong in directives.
  • Use NimbleOptions schemas for all validation.
  • Follow standard Elixir naming: PascalCase modules, snake_case functions.
  • Run mix test and mix quality before committing.
  • Prefer @moduledoc and @doc on all public modules and functions.

Key Types

TypeDescription
Jido.Agent.t()The agent struct — immutable, holds state and metadata
Jido.Instruction.t()Action + params tuple passed to cmd/2
Jido.Signal.t()CloudEvents envelope carrying event data

Directive Types

DirectiveEffect
EmitDispatch a signal to the bus
SpawnSpawn a BEAM child process
SpawnAgentSpawn a child Jido agent
StopChildStop a tracked child process
ScheduleSend a delayed message
StopStop the agent process

Quick Example

defmodule MyApp.Agents.Counter do
  use Jido.Agent,
    name: "counter",
    description: "A simple counter agent",
    schema: [
      count: [type: :integer, default: 0]
    ],
    actions: [MyApp.Actions.Increment]

  signal_routes do
    on "counter.increment", do: act(MyApp.Actions.Increment)
  end
end

defmodule MyApp.Actions.Increment do
  use Jido.Action,
    name: "increment",
    description: "Increment the counter by a given amount",
    schema: [
      amount: [type: :integer, default: 1]
    ]

  @impl true
  def run(params, context) do
    current = context.state.count
    {:ok, %{count: current + params.amount}}
  end
end

# Usage
{:ok, agent} = Counter.new()
{agent, directives} = Counter.cmd(agent, {Increment, %{amount: 5}})
agent.state.count
#=> 5

Available Reference Docs

For deeper information, read these files:

  • reference/agents.md — Agent definition, schema, cmd/2, plugins, AgentServer
  • reference/actions.md — Action behaviour, run/2, schema validation, composition
  • reference/directives.md — Directive types, runtime processing, custom directives

Workflow

When working in a Jido project:

  1. Identify the package — which Jido library is involved?
  2. Check the agent — read the agent module for schema and actions.
  3. Trace through cmd/2 — follow action → state update → directives.
  4. Run tests — mix test for correctness, mix quality for lint/format/dialyzer.
  5. Load deeper skills — load package-specific skills (jido-actions, jido-signals, jido-ai) as needed.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.