html-tools

Build single-file HTML tools that bundle HTML, JavaScript, and CSS into one file and require no build step. Intended for practical, tool-oriented single-file web apps—such as converters, viewers, debuggers, or small interactive tools—that solve specific problems and can be hosted as static files.

Last repository push
GitHub Stars
16
Forks
0
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "html-tools" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-20e06cab74bb515a0cb7bbcc1e33d1d93fe1e7136973e32b53f49216305a7b00. Verify the upstream source and version against https://github.com/nbbaier/agent-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Build single-file HTML tools that bundle HTML, JavaScript, and CSS into one file and require no build step. Intended for practical, tool-oriented single-file web apps—such as converters, viewers, debuggers, or small interactive tools—that solve specific problems and can be hosted as static files.

0 Downloads

Introduction source: third_party · nbbaier · 0.0.1 Reference

SkillPi interpretation

Tasks
Build single-file HTML tools — self-contained HTML+JS+CSS applications that solve a specific problem without a build step. Use this skill whenever the user asks to build a utility, converter, viewer, debugger, or any small interactive web tool. Also trigger when the user says "build me a tool that...", "make a quick app for...", "I need a single-file HTML page that...", or wants to create something that could be hosted as a static file. This skill is specifically for practical, utility-focused tools (not landing pages, portfolios, or marketing sites — use frontend-design for those).
Audience
Use this when the user wants a **utility or tool** — something interactive that transforms, displays, debugs, converts, or processes data. Common types: Converters (JSON↔YAML, Markdown→HTML, CSV→table, format transformers) Viewers/Inspectors (clipboard contents, EXIF data, keyboard events, CORS checks) Processors (image croppers, OCR, diff generators, text transformers) API-powered tools (calling CORS-enabled APIs like GitHub, PyPI, Bluesky, iNaturalist) LLM-powered tools (calling OpenAI/Anthropic/Gemini APIs directly via CORS) Developer utilities (regex testers, color pickers, encoding tools, hash generators) If the user wants a polished marketing page or portfolio, use the `frontend-design
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: html-tools
description: Build single-file HTML tools — self-contained HTML+JS+CSS applications that solve a specific problem without a build step. Use this skill whenever the user asks to build a utility, converter, viewer, debugger, or any small interactive web tool. Also trigger when the user says "build me a tool that...", "make a quick app for...", "I need a single-file HTML page that...", or wants to create something that could be hosted as a static file. This skill is specifically for practical, utility-focused tools (not landing pages, portfolios, or marketing sites — use frontend-design for those).

HTML Tools

Build single-file HTML applications that combine HTML, JavaScript, and CSS into one portable file. These tools solve specific problems, load instantly, require no build step, and can be hosted anywhere as static files.

This skill codifies patterns from building 150+ such tools. The goal is always: one file, no build step, no framework overhead, maximum utility.

When to Use This Skill

Use this when the user wants a utility or tool — something interactive that transforms, displays, debugs, converts, or processes data. Common types:

  • Converters (JSON↔YAML, Markdown→HTML, CSV→table, format transformers)
  • Viewers/Inspectors (clipboard contents, EXIF data, keyboard events, CORS checks)
  • Processors (image croppers, OCR, diff generators, text transformers)
  • API-powered tools (calling CORS-enabled APIs like GitHub, PyPI, Bluesky, iNaturalist)
  • LLM-powered tools (calling OpenAI/Anthropic/Gemini APIs directly via CORS)
  • Developer utilities (regex testers, color pickers, encoding tools, hash generators)

If the user wants a polished marketing page or portfolio, use the frontend-design skill instead.

Core Principles

  1. Single file: All HTML, JS, and CSS in one .html file. Trivially copyable, hostable, and shareable.

  2. No React, no build step: Avoid React (JSX requires transpilation). Use vanilla JS or lightweight CDN libraries. If the user specifically requests React, explain the tradeoff and offer both options.

  3. CDN dependencies only: Load from cdnjs.cloudflare.com or cdn.jsdelivr.net with pinned versions. Fewer dependencies is better, but don't reinvent well-solved problems.

  4. Keep it small: A few hundred lines is ideal. At this size, the code is easy to understand, easy to rewrite, and easy to hand to another LLM for modification.

  5. Copy-paste as primary I/O: Many great tools accept pasted input, transform it, and offer a "Copy to clipboard" button for the output. Default to this interaction pattern unless the problem calls for something else.

File Template

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>[Tool Name]</title>
    <!-- CDN dependencies with pinned versions -->
    <style>
        /* All CSS inline */
    </style>
</head>
<body>
    <!-- Tool UI -->
    <script>
        /* All JS inline */
    </script>
</body>
</html>

Always include the viewport meta tag for mobile. Use semantic HTML where practical.

Pattern Selection Guide

When building a tool, consider which patterns from references/patterns.md apply. Here is a quick decision framework:

How does data get in?

  • User types/pastes text → paste input pattern
  • User has a file → file input pattern (no server needed, JS reads it directly)
  • Tool is configured by a link → URL parameter pattern
  • User drags something in → drag-and-drop pattern

How does data get out?

  • User needs text output → copy-to-clipboard button (always include this)
  • User needs a file → downloadable file via Blob URL
  • User needs a visual → render directly in the page

Does the tool need to remember anything?

  • Small state, shareable → persist in URL hash/query params
  • Larger state or secrets (API keys) → localStorage
  • Nothing → keep it stateless

Does the tool need external data?

  • Public API with CORS → fetch directly from the browser
  • LLM API → store user's API key in localStorage, call API via CORS
  • No CORS on the API → explain limitation, suggest a proxy or different approach

Does the tool need heavy computation?

  • Python logic → Pyodide (Python compiled to WebAssembly, loads from CDN)
  • Other compiled tools → check if a WebAssembly port exists (Tesseract.js, FFmpeg.wasm, etc.)
  • Pure JS is fine → just use it

Read references/patterns.md for detailed code examples and implementation guidance for each pattern.

Implementation Checklist

When building an HTML tool, verify:

  • [ ] Single .html file with inline CSS and JS
  • [ ] No build step required
  • [ ] Dependencies loaded from CDN with pinned versions
  • [ ] Mobile-friendly (viewport meta tag, responsive layout)
  • [ ] "Copy to clipboard" button if tool produces text output
  • [ ] Clear, descriptive <title> tag
  • [ ] Error handling for common failure modes (bad input, network errors, missing APIs)
  • [ ] Loading indicators for async operations
  • [ ] Clean, functional UI — not fancy, but usable and clear

Style Notes

HTML tools are utilities, not showcases. Prioritize clarity and function over visual flair. A clean sans-serif font, sensible spacing, and clear visual hierarchy are enough. Don't over-design.

That said, the tool should look intentional, not broken. Use a system font stack, consistent padding, and visible interactive affordances (buttons look like buttons, inputs look like inputs).

Remixing and Composition

When the user has an existing HTML tool and wants to extend it or build something similar, read the existing tool's source first. Working tools are the best documentation for browser API patterns, library usage, and interaction flows. Use them as a starting point rather than building from scratch.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 专注于构建实用型单文件 HTML 工具,解决用户明确的转换、查看、调试等需求
  • 无需构建步骤,可直接静态托管,极大提升开发效率和部署便利性
Trigger Precision95/100

Highlights

  • 触发词描述清晰完整,覆盖多种用户表达方式(如'帮我构建一个工具'、'快速制作一个应用')
  • 明确区分了与前端设计技能的边界,避免误触
Structure and Standards75/100

Areas to improve

  • 缺少完整可运行代码示例 Reported severity: Minor

    文档提供了模板和部分模式说明,但缺少一个完整的、可直接运行的 HTML 工具示例

    Recommendation: 建议添加一个完整的示例工具(如 JSON↔YAML 转换器),展示从输入到输出的完整流程

  • 文档过长 Reported severity: Minor

    当前文档约600行,超出理想长度,可能影响用户快速理解核心要点

    Recommendation: 考虑将部分详细说明移至 references/patterns.md 或其他参考文件中,保持主文档简洁

Highlights

  • 结构完整,包含使用场景、核心原则、模板、模式选择指南和实现清单
  • frontmatter 完整,逻辑清晰,便于用户理解和执行
Execution Reliability80/100

Areas to improve

  • 未覆盖浏览器兼容性处理 Reported severity: Minor

    文档未提及如何处理不同浏览器的兼容性问题或特定 API 不可用时的降级方案

    Recommendation: 建议在 Implementation Checklist 中添加浏览器兼容性检查和降级处理的相关条目

Highlights

  • 强调使用 CDN 依赖并固定版本,确保依赖稳定性
  • 包含错误处理和加载指示器,提升用户体验
Evidence Verifiability (mean of the first four)84/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 84

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.