Skip to content
Back to skills

Playground

ASecurity

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...

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
ai-agentsjavascriptgojava

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add Mouad1/moskills --skill playground --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Playground?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Playground
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mouad1-playground/badge)](https://www.skillsdirectory.com/skills/mouad1-playground)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.