Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: { setup-skill-name }
name: "{setup-skill-name}"
description: Sets up {module-name} module in a project. Use when the user requests to 'install {module-code} module', 'configure {module-name}', or 'setup {module-name}'.
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ def test_skill_md_frontmatter_substitution():
assert "{module-code}" not in skill_md


def test_template_frontmatter_uses_quoted_name_placeholder():
"""Test that the template frontmatter is valid before substitution."""
template_skill_md = (TEMPLATE_DIR / "SKILL.md").read_text()
assert 'name: "{setup-skill-name}"' in template_skill_md


def test_generated_files_written():
"""Test that module.yaml and module-help.csv contain generated content."""
with tempfile.TemporaryDirectory() as tmp:
Expand Down Expand Up @@ -201,6 +207,7 @@ def test_missing_source_file():
tests = [
test_basic_scaffold,
test_skill_md_frontmatter_substitution,
test_template_frontmatter_uses_quoted_name_placeholder,
test_generated_files_written,
test_anti_zombie_replaces_existing,
test_missing_target_dir,
Expand Down
Loading