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())

Types

Link copied to clipboard
class Builder

Fluent builder for Frontmatter, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

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.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.