---
title: "SkillResource"
description: "The `SkillResource` entity."
section: "Reference"
group: "Types"
order: 192
---

## Definition

```ts
interface SkillResource {
  id: string;
  skillId: string;
  path: string;
  content?: string | undefined;
}
```

## Fields

| Field     | Type                  | Notes                                                                                                         |
| --------- | --------------------- | ------------------------------------------------------------------------------------------------------------- |
| `id`      | `string`              | `readonly` `required`                                                                                         |
| `skillId` | `string`              | `required` — Skill this resource is bundled with.                                                             |
| `path`    | `string`              | `required` — Relative path of the resource within the skill (e.g. 'references/foo.md').                       |
| `content` | `string \| undefined` | `optional` — Resource file contents. Only returned from `skills.getResource`; list/retrieve omits this field. |
