Skill constructor

Skill({
  1. Frontmatter? frontmatter,
  2. String? name,
  3. String? description,
  4. String instructions = '',
  5. Resources? resources,
  6. String version = '0.1.0',
  7. String? license,
  8. String? compatibility,
  9. String? allowedTools,
  10. Map<String, String>? metadata,
})

Implementation

Skill({
  Frontmatter? frontmatter,
  String? name,
  String? description,
  this.instructions = '',
  Resources? resources,
  this.version = '0.1.0',
  String? license,
  String? compatibility,
  String? allowedTools,
  Map<String, String>? metadata,
}) : frontmatter =
         frontmatter ??
         Frontmatter(
           name: name ?? '',
           description: description ?? '',
           license: license,
           compatibility: compatibility,
           allowedTools: allowedTools,
           metadata: metadata,
         ),
     resources = resources ?? Resources();