All skills
paulrberg avatar

/html-playground

@23d7851
by Paul Bergpaulrberg/agent-skills94 stars
7

Use to build interactive single-file HTML playgrounds, explorers, or tools with visual controls, live preview, and prompt copy-out.

Use this Skill: https://skilld.dev/gh/paulrberg/agent-skills/html-playground

This session only. Nothing lands on disk.

templatesdata-explorer.md

≈801 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Data Explorer Template

Use this template when the playground is about data queries, APIs, pipelines, or structured configuration: SQL builders, API designers, regex builders, pipeline visuals, cron schedules.

Layout

+-------------------+----------------------+
|                   |                      |
|  Controls         |  Formatted output    |
|  grouped by:      |  (syntax-highlighted |
|  • Source/tables  |   code, or a         |
|  • Columns/fields |   visual diagram)    |
|  • Filters        |                      |
|  • Grouping       |                      |
|  • Ordering       |                      |
|  • Limits         |                      |
|                   +----------------------+
|                   |  Prompt output       |
|                   |  [ Copy Prompt ]     |
+-------------------+----------------------+

Control types by decision

Decision Control Example
Select from available items Clickable cards/chips table names, columns, HTTP methods
Add filter/condition rows Add button → row of dropdowns + input WHERE column op value
Join type or aggregation Dropdown per row INNER/LEFT/RIGHT, COUNT/SUM/AVG
Limit/offset Slider result count 1–500
Ordering Dropdown + ASC/DESC toggle order by column
On/off features Toggle show descriptions, include header

Preview rendering

Render syntax-highlighted output using <span> tags with color classes:

function renderPreview() {
  const el = document.getElementById("preview");
  // Color-code by token type
  el.innerHTML = sql
    .replace(/\b(SELECT|FROM|WHERE|JOIN|ON|GROUP BY|ORDER BY|LIMIT)\b/g, '<span class="kw">$1</span>')
    .replace(/\b(users|orders|products)\b/g, '<span class="tbl">$1</span>')
    .replace(/'[^']*'/g, '<span class="str">$&</span>');
}

For pipeline-style playgrounds, render a horizontal or vertical flow diagram using positioned divs with arrow connectors.

Prompt output for data

Frame it as a specification of what to build, not the raw query itself:

"Write a SQL query that joins orders to users on user_id, filters for orders after 2024-01-01 with total > $50, groups by user, and returns the top 10 users by order count."

Include the schema context (table names, column types) so the prompt is self-contained.

Example topics

  • SQL query builder (tables, joins, filters, group by, order by, limit)
  • API endpoint designer (routes, methods, request/response field builder)
  • Data transformation pipeline (source → filter → map → aggregate → output)
  • Regex builder (sample strings, match groups, live highlight)
  • Cron schedule builder (visual timeline, interval, day toggles)
  • GraphQL query builder (type selection, field picker, nested resolvers)

Source: SKILL.md on GitHub

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill facilitates the creation of interactive HTML tools that process user-provided data, such as code snippets and comments. This creates a surface for indirect prompt injection if the generated output is used in subsequent agent interactions. It also dynamically generates and executes HTML and JavaScript files.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 23d7851. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month

README badge

README badge for paulrberg/agent-skills/html-playground