Frontmatter class
L1 skill metadata parsed from SKILL.md frontmatter.
- Implemented types
Constructors
-
Frontmatter({required String name, required String description, String? license, String? compatibility, String? allowedTools, Map<
String, String> ? metadata, Map<String, Object?> ? extraFields}) - Creates validated skill frontmatter metadata.
-
Frontmatter.fromMap(Map<
String, Object?> value, {bool allowUnknownFields = true}) -
Parses frontmatter from a decoded map.
factory
Properties
- allowedTools → String?
-
Optional allowed-tools selector expression.
final
- compatibility → String?
-
Optional compatibility note shown to agents/users.
final
- description → String
-
Short skill description.
final
-
extraFields
→ Map<
String, Object?> -
Unknown frontmatter fields preserved when allowed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- license → String?
-
Optional license identifier.
final
-
metadata
→ Map<
String, String> -
Free-form string metadata map.
final
- name → String
-
Canonical skill name.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
{bool byAlias = false}) → Map< String, Object?> - Converts this frontmatter object back into a plain map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited