# defineCustomSkill

> API reference for defineCustomSkill: parameters, properties, and return types.

Defines a custom skill and its source.

```ts
import { defineCustomSkill } from '@rippling/rippling-sdk';
```

## Properties

| Property | Required | Type | Description |
| --- | --- | --- | --- |
| `apiName` | Required | `` `${string}__c` `` | — |
| `content` | Required | `string` | Markdown instruction content for the skill. |
| `description` | Required | `null \| string` | Description used to explain when the skill applies.<br>Use `null` to clear this field when updating an existing skill. |
| `name` | Required | `string` | Display name shown in Rippling AI. |
| `status` | Required | `[CustomSkillStatus](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/CustomSkillStatus-9ac6073d)` | Whether the skill is active or inactive. |
| `path` | Optional | `null \| string` | Optional folder path for organizing skills. Use `null` to clear this field when updating an existing skill. |
| `sourceSkillId` | Optional | `never` | — |
| `sourceType` | Optional | `[CustomSkillSourceType](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/CustomSkillSourceType-b4e741c3)` | Skill visibility. `user` creates a personal skill; `company` creates a company skill.<br>Optional visibility, preserved when reconstructing a pulled skill. |

[Complete options type](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/DefinedCustomSkillProps-13882aba)

TypeScript signature

```ts
defineCustomSkill(props: DefinedCustomSkillProps): CustomSkill;
```

## Returns

```
CustomSkill
```

## Availability

| Capability | Support |
| --- | --- |
| Pull into a project | Supported |
| Runtime operations | Not available for this helper |

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/defineCustomSkill

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
