Files
2026-04-07 11:05:47 -04:00

20 lines
595 B
Dart

// Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
String buildFrontmatter({
String name = 'Skill-Name',
String description = 'A test skill',
String? compatibility,
}) {
final sb = StringBuffer();
sb.writeln('---');
sb.writeln('name: $name');
sb.writeln('description: $description');
if (compatibility != null) {
sb.writeln('compatibility: $compatibility');
}
sb.writeln('---');
return sb.toString();
}