From 3bedd8a7ea7d2eed2d0fe6b338239c813d7492e4 Mon Sep 17 00:00:00 2001 From: Willie Date: Wed, 18 Mar 2026 17:50:41 +0800 Subject: [PATCH] docs: note that ParseFrontmatterFields does not resolve metadata fields --- internal/utils/frontmatter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/utils/frontmatter.go b/internal/utils/frontmatter.go index 516d88cd3..50bf0a95e 100644 --- a/internal/utils/frontmatter.go +++ b/internal/utils/frontmatter.go @@ -152,6 +152,7 @@ func extractFrontmatterRaw(filePath string) string { // ParseFrontmatterFields reads a SKILL.md file once and returns the values of // multiple frontmatter fields. This avoids opening the same file repeatedly // when multiple fields are needed (e.g. description + license). +// Note: does not resolve metadata. — only reads top-level fields. func ParseFrontmatterFields(filePath string, fields []string) map[string]string { result := make(map[string]string, len(fields)) if len(fields) == 0 {