Skills as XML Definitions
Use SuiteCloud Development Framework (SDF) to define and deploy a custom skill by adding an agentskill SDF custom object to a SuiteCloud project. The object identifies the skill and points to a File Cabinet folder that contains a SKILL.md file.
Custom Skill Definition
An SDF custom skill has two related components:
-
An
agentskillXML definition -
A skill content folder that contains
SKILL.md
The skillfolder element in the XML definition must refer to the skill content folder. The folder and its files must exist when you validate and deploy the SuiteCloud project.
The following table lists the XML items that define the custom skill.
|
XML Item |
Description |
|---|---|
|
|
Identifies the |
|
|
Specifies the skill name. It must match the |
|
|
Specifies the skill description. It must match the |
|
|
Specifies the File Cabinet folder that contains |
|
|
Indicates whether the skill is inactive. Use |
|
|
Indicates whether the skill is public and available for other users to invoke. It can be set to |
Skill Content in the Project
The location of the skill content folder depends on the SuiteCloud project type, as indicated in the following table.
|
Project Type |
Skill Content Location |
|
|---|---|---|
|
SuiteApp project |
The SuiteApp's directory |
|
|
account customization project (ACP) |
The |
|
The skill content folder must include a file named SKILL.md. The file must contain a Markdown instruction body for the skill that's not empty.
Skill Definition Validation
The skill is validated for the following during SuiteCloud project deployment:
-
The
skillfolderreference identifies an existing folder in the project. -
The folder contains
SKILL.md. -
The
nameanddescriptionvalues in the XML definition match the correspondingSKILL.mdfront-matter values exactly. -
The
SKILL.mdfile contains the instructions for the skill.
Skill XML Example
The following example defines an active custom skill in a SuiteApp project:
<agentskill scriptid="customskill_simple_test_skill">
<name>simple-test-skill</name>
<description>Tiny deterministic test skill for confirming skill discovery and invocation.</description>
<skillfolder>[/SuiteApps/com.netsuite.sdfskills/simple-test-skill/]</skillfolder>
<isinactive>F</isinactive>
<ispublic>F</ispublic>
</agentskill>