# `Jido.AI.Skill.Spec`
[🔗](https://github.com/agentjido/jido_ai/blob/v2.2.0/lib/jido_ai/skill/spec.ex#L1)

Specification struct for skills, supporting both compile-time modules and runtime-loaded SKILL.md files.

Follows the agentskills.io spec with Jido-specific extensions.

# `body_ref`

```elixir
@type body_ref() :: {:file, String.t()} | {:inline, String.t()} | nil
```

# `source`

```elixir
@type source() :: {:module, module()} | {:file, String.t()}
```

# `t`

```elixir
@type t() :: %Jido.AI.Skill.Spec{
  actions: [module()],
  allowed_tools: [String.t()],
  body_ref: body_ref(),
  compatibility: String.t() | nil,
  description: String.t(),
  diagnostics: Jido.AI.Skill.Diagnostics.t() | nil,
  license: String.t() | nil,
  metadata: map() | nil,
  name: String.t(),
  plugins: [module()],
  source: source() | nil,
  tags: [String.t()],
  vsn: String.t() | nil
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
