# Class LittleGhost::Skills::Skill

Documentation version: Edge

Canonical HTML: https://littleghostai.org/docs/LittleGhost/Skills/Skill.html

Holds the metadata and instructions loaded from one `SKILL.md`
file. `path` is shown to the model; `source_path` is the local file used for
boundary validation and resource discovery.

## Inheritance

`LittleGhost::Skills::Skill < Data`

## Attributes

<a id="attribute-i-allowed_tools"></a>
### `allowed_tools` (R)

Informational tool names from front matter; this is not authorization.

<a id="attribute-i-compatibility"></a>
### `compatibility` (R)

Optional compatibility guidance from front matter.

<a id="attribute-i-description"></a>
### `description` (R)

The short description used for model-visible discovery.

<a id="attribute-i-instructions"></a>
### `instructions` (R)

The complete instructions loaded on activation.

<a id="attribute-i-name"></a>
### `name` (R)

The skill name declared in front matter.

<a id="attribute-i-path"></a>
### `path` (R)

The model-visible skill path.

<a id="attribute-i-source_path"></a>
### `source_path` (R)

The trusted local source path used for boundary checks.

## Class methods

<a id="method-c-new"></a>
### `.new`

```ruby
new(name:, description:, instructions:, path:, source_path:,
    allowed_tools:, compatibility:) -> Skill
```

Collects one validated skill definition loaded by Skills::Catalog.
