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, Any?> = 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

if any field violates the frontmatter specification.

Constructors

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

Properties

Link copied to clipboard

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

Link copied to clipboard

The compatibility of the skill.

Link copied to clipboard

A description of the skill.

Link copied to clipboard

The license of the skill.

Link copied to clipboard

Additional metadata about the skill.

Link copied to clipboard

The name of the skill.