# McpSkill constructor

Kind: Constructor  
Namespace: `Sisk.ModelContextProtocol`  
Assembly: `Sisk.ModelContextProtocol.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.ModelContextProtocol.McpSkill.-ctor.html

## McpSkill(string, JsonObject, string, IReadOnlyDictionary&lt;string, byte[]>?) {#Sisk_ModelContextProtocol_McpSkill__ctor_System_String_LightJson_JsonObject_System_String_System_Collections_Generic_IReadOnlyDictionary_System_String_System_Byte____}

Creates a skill, generating SKILL.md from JSON-compatible YAML frontmatter and a Markdown body.

```csharp
public McpSkill(string path, JsonObject frontmatter, string body, IReadOnlyDictionary<string, byte[]>? files = null)
```

### Parameters

`path` [string](https://learn.microsoft.com/dotnet/api/system.string)

The skill path, ending in the frontmatter name, for example acme/refunds.

`frontmatter` JsonObject

All frontmatter fields, including name and description.

`body` [string](https://learn.microsoft.com/dotnet/api/system.string)

The Markdown instructions, without frontmatter.

`files` [IReadOnlyDictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlydictionary\-2)<[string](https://learn.microsoft.com/dotnet/api/system.string), [byte](https://learn.microsoft.com/dotnet/api/system.byte)\[\]\>?

Optional supporting files, keyed by relative path. Their bytes are copied at registration.
