Builds one throwaway HTML page with sliders, toggles and selects, so the user can change values and see the result: parameters, a trade-off, a comparison of options. Writes a single static file under .moskills/scratch/ with no build and no network, and deletes pages older than 7 days. Use when the user wants to compare options interactively, see how a parameter changes a result, says \"let me play with the numbers\" or \"show me the trade-off\", or when the output ladder of the standard reach...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Playground?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mouad1-playground)
---
name: playground
description: "Builds one throwaway HTML page with sliders, toggles and selects, so the user can change values and see the result: parameters, a trade-off, a comparison of options. Writes a single static file under .moskills/scratch/ with no build and no network, and deletes pages older than 7 days. Use when the user wants to compare options interactively, see how a parameter changes a result, says \"let me play with the numbers\" or \"show me the trade-off\", or when the output ladder of the standard reaches rung 3, even if the user does not say playground. Not for designing a feature or app screens; that is /preview."
---
# Playground
Primary goal: The user changes a value on one page and sees the result, with no build and no server.
```mermaid
flowchart LR
I[One insight] --> V[1 to 5 inputs]
V --> P[One static HTML file]
P --> S[.moskills/scratch/]
S --> U[User opens it and changes values]
```
Labels: the page carries one insight; the inputs are the values the user changes.
## Use When
- The reader must change a value to understand the result: rung 3 of the output ladder.
- The user compares options: plans, strategies, settings, algorithms.
- The user asks how a parameter changes an output.
## Steps
1. Name the one insight that the page must show. Write it as one sentence.
2. Pick 1 to 5 inputs: sliders, toggles or selects. Give each input a default and a range.
3. Write the formulas that turn the inputs into the output. Name the source of each constant in a comment.
4. Write one HTML file with inline CSS and vanilla JavaScript. Use no build step, no network and no external script.
5. Recompute the output on each input change. Show numbers, a table, or a chart drawn with SVG or canvas.
6. Create `.moskills/scratch/` when it does not exist. Save the page as `.moskills/scratch/<slug>-YYYY-MM-DD.html`.
7. Delete old pages: `find .moskills/scratch -name '*.html' -mtime +7 -delete`.
8. Give the user the path and the open command: `open <path>` on macOS, `xdg-open <path>` on Linux.
9. Add one sentence with the conclusion that the page shows at its default values.
## Rules
- The page is throwaway. Do not commit it, test it, or import it from project code.
- Keep the page under about 300 lines. One page carries one insight.
- Never put secrets, tokens or personal data in the page.
- A durable design, a mockup or app screens belong to `/preview`, not to this skill.
- When the answer is a plain fact or a short procedure, write text instead.