skills/HtmlPlayground/SKILL.md
Generate single-file HTML demos comparing techniques side-by-side. USE WHEN preview css, compare css, css demo, show options, visual comparison, html playground, render demo.
npx skillsauth add n4m3z/forge-core HtmlPlaygroundInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate a self-contained HTML file that renders techniques as side-by-side cards with realistic mock data. Open in browser for visual comparison before committing to production.
Before adding CSS to a project (snippets, themes, component styles), render the candidates visually so the user can compare and choose. One HTML file, no dependencies, no build step.
Identify the CSS techniques to compare. Sources: conversation context, research findings, user description, or files in the working directory. Each technique becomes one card.
For each technique, determine:
Generate a single HTML file at /tmp/css-preview-{topic}.html with this structure:
prefers-color-scheme media query with light mode fallbackOpen the file in the default browser.
Ask the user which techniques to adopt. Options: individual techniques by name, "all", or "none".
For adopted techniques, write the CSS to the appropriate location (snippet file, component stylesheet, or new file — based on context).
Each card is a self-contained demo. Use these conventions:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{Topic} — CSS Preview</title>
<style>
:root { /* dark mode variables */ }
@media (prefers-color-scheme: light) { :root { /* light overrides */ } }
/* page layout, card grid, shared base */
/* per-technique CSS in labeled sections */
</style>
</head>
<body>
<h1>{Topic}</h1>
<p class="subtitle">{Context line}</p>
<div class="grid">
<!-- one .card per technique -->
</div>
</body>
</html>
<style> block — no external sheets/tmp/ — never write preview HTML into the project directorydevelopment
Reactive correction and root-cause fix. USE WHEN something went wrong, user is frustrated, demands a correction, says wtf, what the hell, why did you, that's wrong, this is broken, no not that, stop. Executes the immediate fix, then hunts the upstream artifact that caused it and creates a corrective change.
development
Decompose a research question into sub-queries, spawn parallel WebResearcher agents per angle, synthesize findings with citations and explicit confidence. USE WHEN the user asks to research, investigate, look online, look up, dig into, find sources, gather evidence, or survey what's known about a topic. Single-pass; for multi-round adversarial research use ResearchCouncil in forge-council.
tools
Author project documentation that future humans (and AI sessions) actually read. Covers TLDRs for tools, READMEs, runbooks, journals. USE WHEN write documentation, create tldr, tool one-pager, document a cli, write readme, runbook, journal entry, capture knowledge about a tool, distill a session into reusable notes.
development
Review your own staged changes via a code-review TUI before triggering a commit. USE WHEN about to commit, walking through your own staged diff, self-reviewing before approval, tuicr, revdiff, git diff cached.