# Frontmatter

data class Frontmatter(val name: String, val description: String, val license: String? = null, val compatibility: String? = null, val allowedTools: String? = null, val metadata: Map<String, String> = emptyMap())

Represents the frontmatter of a skill, containing metadata about the skill.

Validation is enforced at construction time: any attempt to instantiate a `Frontmatter` with fields that violate the specification (e.g. invalid name characters, oversized description) will fail with IllegalArgumentException. As a result, every `Frontmatter` instance is guaranteed to be well-formed.

#### Throws

IllegalArgumentException

if any field violates the frontmatter specification.

## Constructors

Frontmatter
Link copied to clipboard
constructor(name: String, description: String, license: String? = null, compatibility: String? = null, allowedTools: String? = null, metadata: Map<String, String> = emptyMap())

## Properties

allowedTools
Link copied to clipboard
val allowedTools: String? = null

The tools that are allowed to be used by the skill.

compatibility
Link copied to clipboard
val compatibility: String? = null

The compatibility of the skill.

description
Link copied to clipboard
val description: String

A description of the skill.

license
Link copied to clipboard
val license: String? = null

The license of the skill.

metadata
Link copied to clipboard
val metadata: Map<String, String>

Additional metadata about the skill.

name
Link copied to clipboard
val name: String

The name of the skill.