html-portal-generator
БесплатноБез исполняемых скриптовНе проверенConvert a codebase into a self-contained HTML portal app for ingestion into AI application systems. Produces a single deployable HTML file with embedded CSS…
от athola★ 70 звёзд на GitHubОб этом скилле
HTML Portal Generator
Convert any codebase into a single, self-contained HTML portal application. The output is one .html file with embedded styles, scripts, and data that works offline, on file:// protocol, and can be uploaded into AI application portals.
When to Use
- You have a codebase (CLI tool, library, API, framework) and need an interactive HTML representation of its functionality
- The HTML will be uploaded into a smart AI portal or application integration system
- You need all features to work standalone without a running server
- You want users to explore, validate, analyze, and interact with the product from a browser
Process
Follow these phases in order. Each phase builds on the previous.
Phase 1: Codebase Analysis
Understand what the product does before writing any HTML.
- Read project documentation: README, CLAUDE.md, architecture docs, changelogs
- Identify core crates/packages: Map each module's purpose and public API
- Catalog user-facing features: CLI commands, API endpoints, configuration options
- Extract data structures: Response types, configuration schemas, enum values
- Find existing UI code: Dashboards, templates, stylesheets (reuse their design language)
Produce a mental inventory:
- Feature list (what the product does)
- Data catalog (what entities/types exist)
- Command/API reference (how users interact)
- Visual identity (colors, fonts, layout patterns from existing UI)
Phase 2: Reference Analysis (if provided)
If the user provides a reference HTML app:
- Read the first and last ~3KB to understand structure (large files may be minified)
- Identify the design pattern: CSS variables, layout system, component structure
- Note the interaction model: controls bar, status bar, grid layout, tab navigation
- Extract the color palette and typography from CSS custom properties
Phase 3: Architecture Design
Design the portal as a single-page app with tab navigation.
Required structural elements:
- Sticky header with product name, version badge, and summary stats
- Tab navigation bar for switching between views
- Main container with
max-widthfor readability - Sticky status bar footer with links to docs/repo
- Toast notification system for user feedback
View planning - map each product feature to a view:
| Feature Type | View Pattern |
|---|---|
| Entity browsing (skills, packages, endpoints) | Card grid with search/filter/sort and detail panel |
| Validation/checking | Split editor (textarea input) and results panel |
| Analysis/metrics | Input, stat cards, and bar charts |
| Configuration/creation | Form inputs, live preview, and download |
| Format conversion | Side-by-side input/output with target selector |
| Reference docs (commands, APIs) | Searchable/filterable list with copy-on-click |
| Status/compatibility | Matrix grid or table |
| Dashboard/overview | Stat cards, quick actions, and recent items |
Every view must work 100% standalone. No external API calls required. Embed demo data. Add optional live-server connection as a bonus.
Phase 4: Data Embedding
Convert real product data into JavaScript arrays embedded in the HTML.
- Scan the actual codebase for entities (skills, commands, endpoints, types)
- Extract metadata from source files (frontmatter, doc comments, type definitions)
- Generate realistic validation states based on actual product rules
- Include failure reasons as tooltip/detail text so users understand why things pass/fail
- Store as
constarrays in the<script>block - no external JSON files
For large datasets (100+ items), use a build script to extract and format the data rather than hand-writing it.
If the product has local files users might want to scan:
- Add a "Scan Local" button using the File System Access API (
showDirectoryPicker) - Walk directories recursively, parse file frontmatter/headers
- Replace the embedded data with live-scanned results
- Store full file content on scanned items for downstream analysis
Phase 5: Implementation
Build the HTML file following these rules:
Single-file architecture:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Product - Portal</title>
<style>/* All CSS here */</style>
</head>
<body>
<!-- All HTML here -->
<script>/* All JS here, wrapped in IIFE */</script>
</body>
</html>
CSS requirements:
- Use CSS custom properties (
:root { --bg: ...; }) for theming - Support dark mode (default) and light mode via
@media (prefers-color-scheme: light) - Reuse the product's existing color palette if it has one
- Mobile-responsive with
@media (max-width: ...)breakpoints - Style scrollbars, focus states, and transitions
JavaScript requirements:
- Wrap everything in an IIFE:
(function() { 'use strict'; ... })(); - No inline
onclickhandlers - useaddEventListenerexclusi
Установить html-portal-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл html-portal-generator?
Convert a codebase into a self-contained HTML portal app for ingestion into AI application systems. Produces a single deployable HTML file with embedded CSS, JS, and data.
Как установить скилл html-portal-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл html-portal-generator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic