feat: initialize math-modeling-trainer open-source skill repository #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate Skills & Markdown | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Validate SKILL.md Frontmatter | |
| run: | | |
| python -c ' | |
| import re, sys, os | |
| skill_files = [ | |
| "skills/math-modeling-daily-review/SKILL.md", | |
| ".cursor/skills/math-modeling-daily-review/SKILL.md" | |
| ] | |
| for fpath in skill_files: | |
| if not os.path.exists(fpath): | |
| print(f"Error: Missing {fpath}") | |
| sys.exit(1) | |
| with open(fpath, "r", encoding="utf-8") as f: | |
| content = f.read() | |
| if not content.startswith("---"): | |
| print(f"Error: {fpath} must start with YAML frontmatter ---") | |
| sys.exit(1) | |
| if "name:" not in content or "description:" not in content: | |
| print(f"Error: {fpath} missing name or description in frontmatter") | |
| sys.exit(1) | |
| print(f"✓ Validated: {fpath}") | |
| print("All skills validated successfully!") | |
| ' |