MicroSim Standardization Skill
Prompt
Run the skill-generation skill. Create a new skill called 'microsim-standardization'. It will get passed a directory of a current MicroSim. The MicroSim might use a variety of javaScript libraries. However, they all need to have specific features. Your task is to go through a checklist of things the MicroSim should have and create a TODO list of all the upgrade to a MicroSim standard. Then present the user with that TODO list. Ask the user if you should proceed (y/n) and then if the user says yes, make the changes. Here is a list:
- Check if the index.md file is present
- Check that the index.md file has yml metadata at the top (title, description, quality_score, images for social preview) etc.
- Check that the title is immediatly after the yml metadata in level 1 header
- Check that an iframe element is after the level 1 title and that the iframe references the main.html
- Check that a sample iframe in a html block is after the iframe with the text "Copy this iframe to your website:"
- Check that there is a metadata.json file with Dublin core data in the file
- Validate the metadata.json file with the microsim schema in the assets of the skill
- Make sure there is a Run in fullscreen after the iframe example
- If the MicroSim is a p5.js MicroSim, check if there is a link such as Edit in the p5.js Editor link, if the link does not exist, prompt the user for a path to their sketch.
- Check if there is a level 2 header after this frontmatter that describes the MicroSim and how to use it.
- If a Lesson Plan does not exist in level 2 header, ask the user if you should create it
- Where appropriate, add a level 2 Reference