Add iframe Example Path Validation to Standardization Check
Priority: Medium
Added: 2026-01-01
Description:
Add a new standardization check that validates sample iframe example URLs in index.md files to ensure they reference the correct GitHub Pages deployment path.
Problem Discovered:
During a routine check of docs/sims/*/index.md files, several MicroSims had incorrect iframe example paths:
Wrong repository name (e.g., microsims instead of intro-to-physics-course)
Typos in repository name (e.g., intro-to-physics missing -course)
Wrong directory name (e.g., basic-fft instead of fft-basic)
Proposed Implementation:
Add to references/standardization.md checklist:
#### 13. Sample iframe URL Validation
- Check that the sample iframe example URL matches the project's GitHub Pages URL
- Expected format: `https://<username>.github.io/<repo-name>/sims/<microsim-name>/main.html`
- The `<microsim-name>` in the URL must match the directory name
- The `<repo-name>` should be extracted from `mkdocs.yml` or detected from git remote
- If mismatch found: Add TODO to fix iframe example URL
Reference:
See /logs/check-iframe-example-path.md in the intro-to-physics-course project for the full analysis that identified this issue.
1---2name: 1082-todo-5046cda63description: MicroSim Utils - TODO4---5# MicroSim Utils - TODO67## Pending Enhancements89### Add iframe Example Path Validation to Standardization Check1011**Priority:** Medium12**Added:** 2026-01-011314**Description:**15Add a new standardization check that validates sample iframe example URLs in `index.md` files to ensure they reference the correct GitHub Pages deployment path.1617**Problem Discovered:**18During a routine check of `docs/sims/*/index.md` files, several MicroSims had incorrect iframe example paths:19- Wrong repository name (e.g., `microsims` instead of `intro-to-physics-course`)20- Typos in repository name (e.g., `intro-to-physics` missing `-course`)21- Wrong directory name (e.g., `basic-fft` instead of `fft-basic`)2223**Proposed Implementation:**24251. Add to `references/standardization.md` checklist:26 ```markdown27 #### 13. Sample iframe URL Validation28 - Check that the sample iframe example URL matches the project's GitHub Pages URL29 - Expected format: `https://<username>.github.io/<repo-name>/sims/<microsim-name>/main.html`30 - The `<microsim-name>` in the URL must match the directory name31 - The `<repo-name>` should be extracted from `mkdocs.yml` or detected from git remote32 - If mismatch found: Add TODO to fix iframe example URL33 ```34352. Add scoring to the rubric table:36 ```markdown37 |iframe URL correct|The sample iframe URL matches the project's GitHub Pages path|3|38 ```39403. Implementation details:41 - Extract `site_url` from `mkdocs.yml` to determine the correct base URL42 - Parse the iframe src attribute from the code block43 - Verify the URL contains the correct repository name44 - Verify the microsim directory name in the URL matches the actual directory4546**Detection Command:**47```bash48# Find incorrect paths (adjust exclusions as needed)49grep -r "github.io" docs/sims/*/index.md | grep -v "<expected-repo-name>" | grep -v "external-references"50```5152**Reference:**53See `/logs/check-iframe-example-path.md` in the intro-to-physics-course project for the full analysis that identified this issue.
Run npx skillmds@latest add tools-only/1082-todo-5046cda6 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
MicroSim Utils - TODO It is listed under Productivity on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tools-only (@tools-only) published this skill. Their other Agent Skills are listed on their SkillMD profile.