Skip to content
Closed
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,6 +1,6 @@
---
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}'.
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}'."
---

# Module Setup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import tempfile
from pathlib import Path

import yaml

SCRIPT = Path(__file__).resolve().parent.parent / "scaffold-setup-skill.py"
TEMPLATE_DIR = Path(__file__).resolve().parent.parent.parent / "assets" / "setup-skill-template"

Expand Down Expand Up @@ -94,6 +96,16 @@ def test_skill_md_frontmatter_substitution():
assert "{module-name}" not in skill_md
assert "{module-code}" not in skill_md

frontmatter = skill_md.split("---", 2)[1]
parsed = yaml.safe_load(frontmatter)
assert parsed["name"] == "bmad-xyz-setup"
assert isinstance(parsed["name"], str)
assert parsed["description"] == (
"Sets up XYZ Studio module in a project. Use when the user requests "
"to 'install xyz module', 'configure XYZ Studio', or 'setup XYZ Studio'."
)
assert isinstance(parsed["description"], str)


def test_generated_files_written():
"""Test that module.yaml and module-help.csv contain generated content."""
Expand Down