Skip to content

Fix silent failures when loading skills with front matter errors#134

Merged
spachava753 merged 1 commit intomainfrom
issue-133-skill-front-matter-errors
Jan 12, 2026
Merged

Fix silent failures when loading skills with front matter errors#134
spachava753 merged 1 commit intomainfrom
issue-133-skill-front-matter-errors

Conversation

@spachava753
Copy link
Copy Markdown
Owner

Summary

Skills with YAML syntax errors in their SKILL.md files were silently ignored, making it difficult to diagnose why a skill wasn't loading.

Changes

  • Added io.Writer parameter to SystemPromptTemplate and related functions for configurable warning output
  • Print warnings to stderr when skill parsing fails
  • Added test for YAML syntax error reporting

Testing

  • All agent package tests pass
  • Added TestSkillsReportsYAMLSyntaxErrors to verify warnings are printed

Fixes #133

Skills with YAML syntax errors in their SKILL.md files were silently
ignored, making it difficult to diagnose why a skill wasn't loading.

Now prints warnings to stderr when skill parsing fails, indicating
which skill had the error and what went wrong.

Fixes #133
@spachava753 spachava753 merged commit 8eb7e46 into main Jan 12, 2026
@spachava753 spachava753 deleted the issue-133-skill-front-matter-errors branch April 10, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Skills with front matter syntax errors fail silently

1 participant